We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f5dca commit 44aa724Copy full SHA for 44aa724
d2h/overrides.py
@@ -9,8 +9,8 @@ def on_submit_purchase_receipt(doc, method):
9
"item_code": item.item_code,
10
"parent": item.purchase_order
11
})
12
- if(item_order.custom_good_in_transit_qty > item.qty):
13
- item_order.custom_good_in_transit_qty -= item.qty
+ if(item_order.custom_good_in_transit_qty > item.original_quantity):
+ item_order.custom_good_in_transit_qty -= item.original_quantity
14
else:
15
item_order.custom_good_in_transit_qty = 0
16
item_order.save(ignore_permissions=True)
0 commit comments