Enzo Yair

se agregaron valores en elementos nuevos

# Generated by Django 4.1.9 on 2023-09-29 10:02
# Generated by Django 4.1.9 on 2023-09-29 14:34
from django.db import migrations, models
... ... @@ -10,33 +10,35 @@ class Migration(migrations.Migration):
]
operations = [
migrations.RenameField(
migrations.RemoveField(
model_name='comprobantepago',
old_name='monto',
new_name='monto_descuento',
name='monto',
),
migrations.AddField(
model_name='comprobantepago',
name='monto_descuento',
field=models.FloatField(editable=False, null=True),
),
migrations.AddField(
model_name='comprobantepago',
name='monto_subtotal',
field=models.FloatField(),
preserve_default=False,
field=models.FloatField(editable=False, null=True),
),
migrations.AddField(
model_name='comprobantepago',
name='monto_total',
field=models.FloatField(),
preserve_default=False,
field=models.FloatField(editable=False, null=True),
),
migrations.AddField(
model_name='edicto',
name='tiene_descuento',
field=models.BooleanField(editable=False),
field=models.BooleanField(default=False, editable=False),
preserve_default=False,
),
migrations.AddField(
model_name='precio',
name='precio_dia',
field=models.FloatField(max_length=50),
field=models.FloatField(default=90, max_length=50),
preserve_default=False,
),
migrations.AlterField(
... ...
... ... @@ -60,9 +60,9 @@ class ComprobantePago(models.Model):
verbose_name = 'ComprobantePago'
verbose_name_plural = 'ComprobantesPagos'
monto_subtotal = models.FloatField()
monto_total = models.FloatField()
monto_descuento = models.FloatField()
monto_subtotal = models.FloatField(editable=False, null=True)
monto_total = models.FloatField(editable=False, null=True)
monto_descuento = models.FloatField(editable=False, null=True)
numero_comprobante = models.CharField(max_length=300, blank=True, null=True)
fecha_pago = models.DateTimeField(blank=True, null=True)
edicto = models.OneToOneField(Edicto, on_delete=models.CASCADE)
... ...