fix: map BOM while mapping the return SCR

This commit is contained in:
Sagar Sharma 2022-11-05 13:51:38 +05:30
parent 3ca9d53d1b
commit 54072ec9cd

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},