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 Sep 5, 2024
2 parents 5442487 + 9d899f3 commit ef0682a
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 @@ -1048,7 +1048,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 @@ -1205,7 +1205,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 ef0682a

Please sign in to comment.