fix: map BOM while mapping the return SCR

(cherry picked from commit 54072ec9cd)
This commit is contained in:
Sagar Sharma
2022-11-05 13:51:38 +05:30
committed by Mergify
parent cc8a184666
commit e629cba2b7

View File

@@ -503,7 +503,7 @@ def make_return_doc(doctype: str, source_name: str, target_doc=None):
doctype
+ " Item": {
"doctype": doctype + " Item",
"field_map": {"serial_no": "serial_no", "batch_no": "batch_no"},
"field_map": {"serial_no": "serial_no", "batch_no": "batch_no", "bom": "bom"},
"postprocess": update_item,
},
"Payment Schedule": {"doctype": "Payment Schedule", "postprocess": update_terms},