mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39: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": {
|
"field_map": {
|
||||||
'rate': 'rate',
|
'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'):
|
if source_doc.get('update_stock'):
|
||||||
item_field_map["field_map"].update({
|
item_field_map["field_map"].update({
|
||||||
source_document_warehouse_field: target_document_warehouse_field,
|
source_document_warehouse_field: target_document_warehouse_field,
|
||||||
|
|||||||
Reference in New Issue
Block a user