Skip to content

Commit

Permalink
fix: set tax_withholding_category from Purchase Order while creating …
Browse files Browse the repository at this point in the history
…pi form po

(cherry picked from commit b9048ca)
  • Loading branch information
ljain112 authored and mergify[bot] committed Sep 16, 2024
1 parent 01f3068 commit 7027be8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erpnext/buying/doctype/purchase_order/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,11 @@ def get_mapped_purchase_invoice(source_name, target_doc=None, ignore_permissions
def postprocess(source, target):
target.flags.ignore_permissions = ignore_permissions
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
if target.get("allocate_advances_automatically"):
target.set_advances()
Expand Down

0 comments on commit 7027be8

Please sign in to comment.