This commit is contained in:
anhduy-tech
2025-12-31 16:44:06 +07:00
parent 8425d84102
commit 633a401aa6
6 changed files with 81 additions and 33 deletions

View File

@@ -1200,8 +1200,7 @@ class People(models.Model):
issued_date = models.DateField(null=True)
address = models.CharField(max_length=200, null=True)
contact_address = models.CharField(max_length=200, null=True)
zalo = models.CharField(max_length=20, null=True)
facebook = models.CharField(max_length=100, null=True)
taxcode = models.CharField(max_length=100, null=True)
note = models.TextField(null=True)
country = models.ForeignKey(Country, null=True, related_name='+', on_delete=models.PROTECT, default=1)
company = models.ForeignKey(Company, null=True, related_name='+', on_delete=models.PROTECT)
@@ -1371,6 +1370,8 @@ class Transaction_Detail(AutoCodeModel):
code = models.CharField(max_length=30, null=True, unique=True)
date = models.DateField()
amount = models.DecimalField(max_digits=15, decimal_places=2, null=True)
amount_remaining = models.DecimalField(max_digits=15, decimal_places=2, null=True)
amount_received = models.DecimalField(max_digits=15, decimal_places=2, null=True)
due_date = models.DateField(null=True)
transaction = models.ForeignKey(Transaction, null=False, related_name='resvtxn', on_delete=models.PROTECT)
phase = models.ForeignKey(Transaction_Phase, null=False, related_name='+', on_delete=models.PROTECT)