# Generated by Django 3.2.6 on 2023-01-16 01:37

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('Main', '0006_configuracionextra_caja_st_expiracion'),
    ]

    operations = [
        migrations.CreateModel(
            name='ConfigFacturacionV1',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='Id')),
                ('estado_tareas', models.CharField(max_length=1, null=True, verbose_name='Estado envios:')),
                ('status_ws_sunat', models.CharField(max_length=20, null=True, verbose_name='Status Ws Sunat:')),
                ('fecha_status', models.DateTimeField(null=True, verbose_name='Fecha Status:')),
            ],
            options={
                'verbose_name': 'Configuracion Facturacion',
                'verbose_name_plural': 'Configuraciones Facturacion',
                'ordering': ['id'],
            },
        ),
        migrations.CreateModel(
            name='EmpresaSunat',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='Id')),
                ('ruc', models.CharField(max_length=12, null=True, verbose_name='ruc:')),
                ('razon', models.CharField(blank=True, max_length=200, null=True, verbose_name='razon:')),
                ('nombre', models.CharField(blank=True, max_length=200, null=True, verbose_name='nombre:')),
                ('ubigeo', models.CharField(blank=True, max_length=10, null=True, verbose_name='ubigeo:')),
                ('codigo_pais', models.CharField(blank=True, max_length=3, null=True, verbose_name='pais:')),
                ('departamento', models.CharField(blank=True, max_length=50, null=True, verbose_name='departamento:')),
                ('provincia', models.CharField(blank=True, max_length=50, null=True, verbose_name='provincia:')),
                ('distrito', models.CharField(blank=True, max_length=50, null=True, verbose_name='distrito:')),
                ('urb', models.CharField(blank=True, max_length=100, null=True, verbose_name='urbanizacion:')),
                ('direccion', models.CharField(blank=True, max_length=200, null=True, verbose_name='direccion:')),
                ('estado', models.BooleanField(default=True, verbose_name='estado')),
            ],
            options={
                'verbose_name': 'Empresa Sunat',
                'verbose_name_plural': 'Empresas Sunat',
                'ordering': ['id'],
            },
        ),
        migrations.CreateModel(
            name='ErroresFact',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='Id')),
                ('fecha', models.DateTimeField(auto_now=True, verbose_name='Fecha:')),
                ('id_fa', models.CharField(blank=True, max_length=15, null=True, verbose_name='id invoice:')),
                ('codigo', models.CharField(blank=True, max_length=10, null=True, verbose_name='codigo:')),
                ('descripcion', models.CharField(max_length=250, null=True, verbose_name='descripcion:')),
                ('notes', models.CharField(blank=True, max_length=500, null=True, verbose_name='notes:')),
                ('status', models.CharField(blank=True, max_length=4, null=True, verbose_name='status:')),
                ('serie', models.CharField(max_length=4, verbose_name='Serie:')),
                ('correlativo', models.IntegerField(default=0, verbose_name='Correlativo:')),
                ('ruc', models.CharField(blank=True, max_length=12, null=True, verbose_name='RUC:')),
            ],
            options={
                'verbose_name': 'Error Facturacion',
                'verbose_name_plural': 'Errores Facturacion',
                'ordering': ['id'],
            },
        ),
        migrations.CreateModel(
            name='SerieSunat',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='Id')),
                ('serie_b', models.CharField(max_length=4, null=True, verbose_name='serie boleta:')),
                ('serie_f', models.CharField(max_length=4, null=True, verbose_name='serie factura:')),
                ('correlativo_b', models.IntegerField(default=0, verbose_name='correlativo boleta:')),
                ('correlativo_f', models.IntegerField(default=0, verbose_name='correlativo factura:')),
                ('estado', models.BooleanField(default=True, verbose_name='estado')),
                ('id_empresa', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.empresasunat', verbose_name='Id Empresa:')),
            ],
            options={
                'verbose_name': 'Serie Sunat',
                'verbose_name_plural': 'Series Sunat',
                'ordering': ['id'],
            },
        ),
        migrations.CreateModel(
            name='CajaSunat',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='Id')),
                ('estado', models.BooleanField(default=True, verbose_name='estado')),
                ('id_caja', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.cajas', verbose_name='Id Caja:')),
                ('id_serie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.seriesunat', verbose_name='Id Serie:')),
            ],
            options={
                'verbose_name': 'Caja Sunat',
                'verbose_name_plural': 'Cajas Sunat',
                'ordering': ['id'],
            },
        ),
    ]
