Skip to content

Commit

Permalink
feat: map po_no and po_detail to Purchase Invoice row
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Dec 31, 2024
1 parent 0ad6c78 commit d3c101b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ def create_purchase_invoice(source_name, target_doc=None):
def post_process(source, target: "PurchaseInvoice"):
target.set_missing_values()

def process_item_row(source, target, source_parent) -> None:
if source_parent.purchase_order:
target.purchase_order = source_parent.purchase_order

def process_tax_row(source, target, source_parent) -> None:
target.charge_type = "Actual"

Expand Down Expand Up @@ -414,6 +418,7 @@ def process_payment_term(source, target, source_parent):
"uom": "uom",
"net_rate": "rate",
},
"postprocess": process_item_row,
},
"E Invoice Trade Tax": {
"doctype": "Purchase Taxes and Charges",
Expand Down

0 comments on commit d3c101b

Please sign in to comment.