diff --git a/api/__pycache__/settings.cpython-312.pyc b/api/__pycache__/settings.cpython-312.pyc index cbaab4aa..2dab8f09 100644 Binary files a/api/__pycache__/settings.cpython-312.pyc and b/api/__pycache__/settings.cpython-312.pyc differ diff --git a/app/__pycache__/models.cpython-312.pyc b/app/__pycache__/models.cpython-312.pyc index 44da6259..b0d1afa5 100644 Binary files a/app/__pycache__/models.cpython-312.pyc and b/app/__pycache__/models.cpython-312.pyc differ diff --git a/app/migrations/0355_group_rights_is_edit_product_price_excluding_vat.py b/app/migrations/0355_group_rights_is_edit_product_price_excluding_vat.py new file mode 100644 index 00000000..8f501e8f --- /dev/null +++ b/app/migrations/0355_group_rights_is_edit_product_price_excluding_vat.py @@ -0,0 +1,23 @@ +# Generated by Django 5.1.7 on 2026-01-14 03:21 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('app', '0354_group_rights'), + ] + + operations = [ + migrations.AddField( + model_name='group_rights', + name='is_edit', + field=models.BooleanField(default=False, null=True), + ), + migrations.AddField( + model_name='product', + name='price_excluding_vat', + field=models.DecimalField(decimal_places=2, max_digits=15, null=True), + ), + ] diff --git a/app/models.py b/app/models.py index 09fc7f16..bfacce23 100644 --- a/app/models.py +++ b/app/models.py @@ -804,6 +804,7 @@ class Product(AutoCodeModel): policy = models.ForeignKey(Sale_Policy, null=True, related_name='+', on_delete=models.PROTECT) note = models.TextField(null=True) origin_price = models.DecimalField(max_digits=15, decimal_places=2, null=True) + price_excluding_vat = models.DecimalField(max_digits=15, decimal_places=2, null=True) product_type = models.CharField(max_length=255, null=True) template_name = models.CharField(max_length=255, null=True) link = models.UUIDField(default=uuid.uuid4, editable=False, unique=True, null=True) @@ -1117,6 +1118,7 @@ class Dealer_Rights(models.Model): class Group_Rights(models.Model): setting = models.ForeignKey(Biz_Setting, null=False, related_name='+', on_delete=models.PROTECT) group = models.ForeignKey(User_Type, null=False, related_name='+', on_delete=models.PROTECT) + is_edit = models.BooleanField(null=True, default=False) create_time = models.DateTimeField(null=True, auto_now_add=True) class Meta: