# Generated by Django 4.1 on 2026-07-07 18:18

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('app_venin_web_new1', '0130_rename_estado_civil_empleado_estadocivil'),
    ]

    operations = [
        migrations.CreateModel(
            name='TasaGeneral',
            fields=[
                ('id_tasaGeneral', models.AutoField(primary_key=True, serialize=False)),
                ('nombre', models.CharField(max_length=70)),
                ('porcentaje', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
            ],
            options={
                'db_table': 'tasa_general',
            },
        ),
        migrations.RenameField(
            model_name='empleado',
            old_name='remuneracion',
            new_name='jornal_diario',
        ),
        migrations.RenameField(
            model_name='planilladetalle',
            old_name='compra_vacaciones',
            new_name='dias_compra_vacaciones',
        ),
        migrations.RenameField(
            model_name='planilladetalle',
            old_name='condicion_trabajo_total',
            new_name='monto_compra_vacaciones',
        ),
        migrations.RenameField(
            model_name='planilladetalle',
            old_name='monto_descanso_medico',
            new_name='monto_vacaciones_truncas',
        ),
        migrations.RenameField(
            model_name='planilladetalle',
            old_name='monto_trabajado',
            new_name='total_condicion_trabajo',
        ),
        migrations.RenameField(
            model_name='planilladetalle',
            old_name='total_montos',
            new_name='total_ingresos',
        ),
        migrations.RemoveField(
            model_name='afptasasmensuales',
            name='comision_fija',
        ),
        migrations.RemoveField(
            model_name='afptasasmensuales',
            name='comision_mixta_sobre_flujo',
        ),
        migrations.RemoveField(
            model_name='afptasasmensuales',
            name='comision_mixta_sobre_saldo',
        ),
        migrations.RemoveField(
            model_name='cargo',
            name='jornal_base',
        ),
        migrations.AddField(
            model_name='banco',
            name='codigo_sunat',
            field=models.CharField(blank=True, max_length=10, null=True),
        ),
        migrations.AddField(
            model_name='planilla',
            name='clase',
            field=models.CharField(choices=[('ORDINARIA', 'ORDINARIA'), ('LIQUIDACION', 'LIQUIDACION'), ('CTS', 'CTS'), ('GRATIFICACION', 'GRATIFICACION'), ('VACACIONES', 'VACACIONES')], default='ORDINARIA', max_length=13),
        ),
        migrations.AddField(
            model_name='planilla',
            name='descripcion',
            field=models.CharField(default='', max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='planilla',
            name='neto_pagar',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='planilla',
            name='tasa_cstr',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True),
        ),
        migrations.AddField(
            model_name='planilla',
            name='tasa_essalud',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True),
        ),
        migrations.AddField(
            model_name='planilla',
            name='tasa_fcjmms',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True),
        ),
        migrations.AddField(
            model_name='planilla',
            name='tasa_pensionario',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True),
        ),
        migrations.AddField(
            model_name='planilladetalle',
            name='afp',
            field=models.ForeignKey(blank=True, db_column='id_afp', null=True, on_delete=django.db.models.deletion.RESTRICT, to='app_venin_web_new1.regimenpensionario'),
        ),
        migrations.AddField(
            model_name='planilladetalle',
            name='aplica_aporte_pensionario2',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='planilladetalle',
            name='aplica_fcjmms',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='planilladetalle',
            name='cargo',
            field=models.ForeignKey(blank=True, db_column='id_cargo', null=True, on_delete=django.db.models.deletion.RESTRICT, to='app_venin_web_new1.cargo'),
        ),
        migrations.AddField(
            model_name='planilladetalle',
            name='cuspp',
            field=models.CharField(blank=True, max_length=25, null=True),
        ),
        migrations.AddField(
            model_name='planilladetalle',
            name='departamento',
            field=models.ForeignKey(blank=True, db_column='id_departamento', null=True, on_delete=django.db.models.deletion.RESTRICT, to='app_venin_web_new1.departamento'),
        ),
        migrations.AddField(
            model_name='planilladetalle',
            name='dias_turno_dia',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=5),
        ),
        migrations.AddField(
            model_name='planilladetalle',
            name='id_tasa_afp',
            field=models.ForeignKey(blank=True, db_column='id_tasa_afp', null=True, on_delete=django.db.models.deletion.SET_NULL, to='app_venin_web_new1.afptasasmensuales'),
        ),
        migrations.AddField(
            model_name='planilladetalle',
            name='total_remuneracion',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AlterField(
            model_name='empleado',
            name='asignacion_familiar',
            field=models.DecimalField(decimal_places=2, max_digits=10, null=True),
        ),
    ]
