Showing
2 changed files
with
3 additions
and
19 deletions
1 | -# Generated by Django 4.1.9 on 2023-09-27 13:02 | 1 | +# Generated by Django 4.1.9 on 2023-09-27 13:06 |
2 | 2 | ||
3 | from django.conf import settings | 3 | from django.conf import settings |
4 | from django.db import migrations, models | 4 | from django.db import migrations, models |
@@ -13,23 +13,9 @@ class Migration(migrations.Migration): | @@ -13,23 +13,9 @@ class Migration(migrations.Migration): | ||
13 | ] | 13 | ] |
14 | 14 | ||
15 | operations = [ | 15 | operations = [ |
16 | - migrations.RemoveField( | 16 | + migrations.AlterField( |
17 | model_name='comprobantepago', | 17 | model_name='comprobantepago', |
18 | name='monto', | 18 | name='monto', |
19 | - ), | ||
20 | - migrations.AddField( | ||
21 | - model_name='comprobantepago', | ||
22 | - name='monto_descuento', | ||
23 | - field=models.FloatField(editable=False, null=True), | ||
24 | - ), | ||
25 | - migrations.AddField( | ||
26 | - model_name='comprobantepago', | ||
27 | - name='monto_subtotal', | ||
28 | - field=models.FloatField(editable=False, null=True), | ||
29 | - ), | ||
30 | - migrations.AddField( | ||
31 | - model_name='comprobantepago', | ||
32 | - name='monto_total', | ||
33 | field=models.FloatField(editable=False, null=True), | 19 | field=models.FloatField(editable=False, null=True), |
34 | ), | 20 | ), |
35 | migrations.AlterField( | 21 | migrations.AlterField( |
@@ -58,9 +58,7 @@ class ComprobantePago(models.Model): | @@ -58,9 +58,7 @@ class ComprobantePago(models.Model): | ||
58 | verbose_name = 'ComprobantePago' | 58 | verbose_name = 'ComprobantePago' |
59 | verbose_name_plural = 'ComprobantesPagos' | 59 | verbose_name_plural = 'ComprobantesPagos' |
60 | 60 | ||
61 | - monto_total = models.FloatField(editable=False, null=True) | ||
62 | - monto_subtotal = models.FloatField(editable=False, null=True) | ||
63 | - monto_descuento = models.FloatField(editable=False, null=True) | 61 | + monto = models.FloatField(editable=False, null=True) |
64 | numero_comprobante = models.CharField(max_length=300, blank=True, null=True) | 62 | numero_comprobante = models.CharField(max_length=300, blank=True, null=True) |
65 | fecha_pago = models.DateTimeField(blank=True, null=True) | 63 | fecha_pago = models.DateTimeField(blank=True, null=True) |
66 | edicto = models.OneToOneField(Edicto, on_delete=models.CASCADE) | 64 | edicto = models.OneToOneField(Edicto, on_delete=models.CASCADE) |
-
Please register or login to post a comment