# Generated by Django 6.0.5 on 2026-06-07 07:21

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('contabilidad', '0012_cuenta_activa'),
    ]

    operations = [
        migrations.CreateModel(
            name='PeriodoContable',
            fields=[
                ('ano', models.IntegerField(help_text='Año fiscal', primary_key=True, serialize=False)),
                ('estado', models.CharField(choices=[('ABIERTO', 'ABIERTO'), ('CERRADO', 'CERRADO')], default='ABIERTO', max_length=10)),
                ('fecha_cierre', models.DateTimeField(blank=True, help_text='Fecha y hora en que se ejecutó el cierre', null=True)),
            ],
            options={
                'verbose_name': 'Período Contable',
                'verbose_name_plural': 'Períodos Contables',
                'ordering': ['-ano'],
            },
        ),
        migrations.AddField(
            model_name='asiento',
            name='estado',
            field=models.CharField(choices=[('BORRADOR', 'BORRADOR'), ('APROBADO', 'APROBADO')], default='APROBADO', help_text='Estado del asiento contable', max_length=20),
        ),
    ]
