mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 00:01:18 +00:00
fix: Target field in Sales Invoice
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user