fix: purchase receipt creation from SCR (#44095)

This commit is contained in:
rohitwaghchaure
2024-11-12 15:43:20 +05:30
committed by GitHub
parent 586864c8ea
commit 774845f886

View File

@@ -786,7 +786,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,
)