add livestovk statistic in sale item
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0 on 2025-09-22 09:20
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('warehouse', '0033_inventoryquotasaleitem_additional_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='inventoryquotasaleitem',
|
||||
name='livestock_statistic',
|
||||
field=models.JSONField(default=dict),
|
||||
),
|
||||
]
|
||||
@@ -174,6 +174,7 @@ class InventoryQuotaSaleItem(BaseModel):
|
||||
is_extra = models.BooleanField(default=False)
|
||||
is_pre_sale = models.BooleanField(default=False)
|
||||
additional = models.JSONField(default=dict)
|
||||
livestock_statistic = models.JSONField(default=dict)
|
||||
|
||||
@property
|
||||
def product(self):
|
||||
|
||||
@@ -223,7 +223,7 @@ class InventoryQuotaSaleItemSerializer(serializers.ModelSerializer):
|
||||
"weight",
|
||||
"unit_price",
|
||||
"total_price",
|
||||
|
||||
"livestock_statistic",
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user