This commit is contained in:
anhduy-tech
2026-02-24 11:09:09 +07:00
parent f94611f973
commit 39aea8784e
11 changed files with 93 additions and 9 deletions

View File

@@ -1722,7 +1722,7 @@ class Payment_Schedule(AutoCodeModel):
class Invoice(models.Model):
link = models.CharField(max_length=100, null=True)
ref_code = models.CharField(max_length=30, null=True)
ref_code = models.CharField(max_length=30, null=False)
amount = models.DecimalField(max_digits=35, decimal_places=2)
payment = models.ForeignKey(Payment_Schedule, null=False, related_name='invoice', on_delete=models.PROTECT)
note = models.CharField(max_length=100, null=True)