fix bug ofdistrivution key in transaction
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user