Merge branch 'main' of https://github.com/MNPC-IR/Rasaddam_Backend
This commit is contained in:
@@ -20,7 +20,7 @@ class POSFreeProductSerializer(serializers.ModelSerializer):
|
|||||||
product = attrs['product']
|
product = attrs['product']
|
||||||
organization = attrs['organization']
|
organization = attrs['organization']
|
||||||
|
|
||||||
if self.Meta.model.objects.filter(organization=organization, product=product).exists():
|
if self.Meta.model.objects.filter(organization=organization, product=product,trash=False).exists():
|
||||||
raise FreePOSProductUniqueCheck()
|
raise FreePOSProductUniqueCheck()
|
||||||
|
|
||||||
return attrs
|
return attrs
|
||||||
|
|||||||
@@ -290,10 +290,12 @@ class InventoryQuotaSaleItemSerializer(serializers.ModelSerializer):
|
|||||||
"name",
|
"name",
|
||||||
"price_type",
|
"price_type",
|
||||||
"delivery_type",
|
"delivery_type",
|
||||||
|
"item_type",
|
||||||
"paid_type",
|
"paid_type",
|
||||||
"weight",
|
"weight",
|
||||||
"unit_price",
|
"unit_price",
|
||||||
"total_price",
|
"total_price",
|
||||||
|
"paid_price",
|
||||||
"livestock_statistic",
|
"livestock_statistic",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user