fix: purchase receipt creation from SCR (#44095)

(cherry picked from commit 774845f886)
This commit is contained in:
rohitwaghchaure
2024-11-12 15:43:20 +05:30
committed by Mergify
parent 73661ac633
commit e3d74684d5

View File

@@ -766,7 +766,11 @@ def make_purchase_receipt(source_name, target_doc=None, save=False, submit=False
"postprocess": update_item,
"condition": lambda doc: doc.name in po_sr_item_dict,
},
"Purchase Taxes and Charges": {"doctype": "Purchase Taxes and Charges", "reset_value": True},
"Purchase Taxes and Charges": {
"doctype": "Purchase Taxes and Charges",
"reset_value": True,
"condition": lambda doc: not doc.is_tax_withholding_account,
},
},
postprocess=post_process,
)