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']
|
||||
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()
|
||||
|
||||
return attrs
|
||||
|
||||
@@ -290,10 +290,12 @@ class InventoryQuotaSaleItemSerializer(serializers.ModelSerializer):
|
||||
"name",
|
||||
"price_type",
|
||||
"delivery_type",
|
||||
"item_type",
|
||||
"paid_type",
|
||||
"weight",
|
||||
"unit_price",
|
||||
"total_price",
|
||||
"paid_price",
|
||||
"livestock_statistic",
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user