fix bug ofdistrivution key in transaction

This commit is contained in:
2025-09-28 12:24:09 +03:30
parent ee282482d1
commit 878fd96867

View File

@@ -170,6 +170,8 @@ class InventoryQuotaSaleTransactionSerializer(serializers.ModelSerializer):
)
total_price += item.total_price
# IF WE DO NOT HAVE DISTRIBUTION, THEN IT IS A FREE PRODUCT TRANSACTION
if 'quota_distribution' in item_data.keys():
# create extra sale for distribution
create_extra_sale(transaction=transaction, sale_item=item)