fix: Target field in Sales Invoice

This commit is contained in:
Deepesh Garg
2021-01-13 19:22:48 +05:30
parent 776d89c4de
commit d0ee3fc0cd

View File

@@ -1631,10 +1631,14 @@ def make_inter_company_transaction(doctype, source_name, target_doc=None):
],
"field_map": {
'rate': 'rate',
'name': target_detail_field
}
}
if self.doctype in ["Sales Invoice", "Sales Order"]:
item_field_map["field_map"].update({
"name": target_detail_field
})
if source_doc.get('update_stock'):
item_field_map["field_map"].update({
source_document_warehouse_field: target_document_warehouse_field,