fix: typo.
This commit is contained in:
		@@ -54,7 +54,7 @@ class Product(models.Model):
 | 
				
			|||||||
        return self.name
 | 
					        return self.name
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class PyamentMethods(models.TextChoices):
 | 
					class PaymentMethods(models.TextChoices):
 | 
				
			||||||
    CASH = 'CASH', _('Cash')
 | 
					    CASH = 'CASH', _('Cash')
 | 
				
			||||||
    CONFIAR = 'CONFIAR', _('Confiar')
 | 
					    CONFIAR = 'CONFIAR', _('Confiar')
 | 
				
			||||||
    BANCOLOMBIA = 'BANCOLOMBIA', _('Bancolombia')
 | 
					    BANCOLOMBIA = 'BANCOLOMBIA', _('Bancolombia')
 | 
				
			||||||
@@ -112,8 +112,8 @@ class Payment(models.Model):
 | 
				
			|||||||
    date_time = models.DateTimeField()
 | 
					    date_time = models.DateTimeField()
 | 
				
			||||||
    type_payment = models.CharField(
 | 
					    type_payment = models.CharField(
 | 
				
			||||||
        max_length=30,
 | 
					        max_length=30,
 | 
				
			||||||
        choices=PyamentMethods.choices,
 | 
					        choices=PaymentMethods.choices,
 | 
				
			||||||
        default=PyamentMethods.CASH
 | 
					        default=PaymentMethods.CASH
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    amount = models.DecimalField(max_digits=9, decimal_places=2)
 | 
					    amount = models.DecimalField(max_digits=9, decimal_places=2)
 | 
				
			||||||
    reconciliation_jar = models.ForeignKey(
 | 
					    reconciliation_jar = models.ForeignKey(
 | 
				
			||||||
@@ -129,7 +129,7 @@ class Payment(models.Model):
 | 
				
			|||||||
    def get_reconciliation_jar_summary(cls):
 | 
					    def get_reconciliation_jar_summary(cls):
 | 
				
			||||||
        return ReconciliationJarSummary(
 | 
					        return ReconciliationJarSummary(
 | 
				
			||||||
            cls.objects.filter(
 | 
					            cls.objects.filter(
 | 
				
			||||||
                type_payment=PyamentMethods.CASH,
 | 
					                type_payment=PaymentMethods.CASH,
 | 
				
			||||||
                reconciliation_jar=None
 | 
					                reconciliation_jar=None
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user