mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 19:55:29 +00:00
fix: set tax_withholding_category from Purchase Order while creating pi form po
(cherry picked from commit b9048ca6fa)
This commit is contained in:
@@ -769,6 +769,11 @@ def get_mapped_purchase_invoice(source_name, target_doc=None, ignore_permissions
|
|||||||
def postprocess(source, target):
|
def postprocess(source, target):
|
||||||
target.flags.ignore_permissions = ignore_permissions
|
target.flags.ignore_permissions = ignore_permissions
|
||||||
set_missing_values(source, target)
|
set_missing_values(source, target)
|
||||||
|
|
||||||
|
# set tax_withholding_category from Purchase Order
|
||||||
|
if source.apply_tds and source.tax_withholding_category and target.apply_tds:
|
||||||
|
target.tax_withholding_category = source.tax_withholding_category
|
||||||
|
|
||||||
# Get the advance paid Journal Entries in Purchase Invoice Advance
|
# Get the advance paid Journal Entries in Purchase Invoice Advance
|
||||||
if target.get("allocate_advances_automatically"):
|
if target.get("allocate_advances_automatically"):
|
||||||
target.set_advances()
|
target.set_advances()
|
||||||
|
|||||||
Reference in New Issue
Block a user