Skip to content

Commit

Permalink
Merge pull request #43065 from Ninad1306/merge_taxes_fix
Browse files Browse the repository at this point in the history
fix: Reset Value Conditionally Based on Merge Taxes
  • Loading branch information
ruthra-kumar authored and Ninad1306 committed Sep 24, 2024
1 parent f36a68b commit 4278b08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/delivery_note/delivery_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ def get_pending_qty(item_row):
},
"Sales Taxes and Charges": {
"doctype": "Sales Taxes and Charges",
"reset_value": True,
"reset_value": not (args and args.get("merge_taxes")),
"ignore": args.get("merge_taxes") if args else 0,
},
"Sales Team": {
Expand Down
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ def get_pending_qty(item_row):
},
"Purchase Taxes and Charges": {
"doctype": "Purchase Taxes and Charges",
"reset_value": True,
"reset_value": not (args and args.get("merge_taxes")),
"ignore": args.get("merge_taxes") if args else 0,
},
},
Expand Down

0 comments on commit 4278b08

Please sign in to comment.