cfdi-admin/source/main/migrations/0005_detailtaxes.py

32 lines
1.4 KiB
Python

# Generated by Django 3.1.5 on 2021-01-16 13:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20210116_1206'),
]
operations = [
migrations.CreateModel(
name='DetailTaxes',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('type_tax', models.CharField(choices=[('T', 'Traslado'), ('R', 'Retención')], max_length=1, verbose_name='Tipo')),
('key_sat', models.CharField(blank=True, default='', max_length=5, verbose_name='Clave SAT')),
('base', models.DecimalField(decimal_places=6, max_digits=19, verbose_name='Base')),
('importe', models.DecimalField(decimal_places=6, max_digits=19, verbose_name='Importe')),
('type_factor', models.CharField(blank=True, default='', max_length=10, verbose_name='Tipo Factor')),
('rate', models.DecimalField(decimal_places=6, max_digits=19, null=True, verbose_name='Tasa')),
('detail', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='detail', to='main.cfdidetails')),
],
options={
'verbose_name': 'Impuesto',
'verbose_name_plural': 'Impuestos',
},
),
]