Merge pull request #44106 from frappe/mergify/bp/version-15-hotfix/pr-44095

fix: purchase receipt creation from SCR (backport #44095)
This commit is contained in:
ruthra kumar
2024-11-12 16:33:45 +05:30
committed by GitHub

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,
)