fix(Delivery Note): Assign Product Bundle's conversion_factor to Packed Items (#25840)
This commit is contained in:
parent
970f00922d
commit
c8b34798fe
@ -13,6 +13,7 @@
|
||||
"section_break_6",
|
||||
"warehouse",
|
||||
"target_warehouse",
|
||||
"conversion_factor",
|
||||
"column_break_9",
|
||||
"qty",
|
||||
"uom",
|
||||
@ -209,13 +210,18 @@
|
||||
"no_copy": 1,
|
||||
"print_hide": 1,
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "conversion_factor",
|
||||
"fieldtype": "Float",
|
||||
"label": "Conversion Factor"
|
||||
}
|
||||
],
|
||||
"idx": 1,
|
||||
"index_web_pages_for_search": 1,
|
||||
"istable": 1,
|
||||
"links": [],
|
||||
"modified": "2020-09-24 09:25:13.050151",
|
||||
"modified": "2021-05-26 07:08:05.111385",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Packed Item",
|
||||
|
@ -53,6 +53,7 @@ def update_packing_list_item(doc, packing_item_code, qty, main_item_row, descrip
|
||||
pi.parent_detail_docname = main_item_row.name
|
||||
pi.uom = item.stock_uom
|
||||
pi.qty = flt(qty)
|
||||
pi.conversion_factor = main_item_row.conversion_factor
|
||||
if description and not pi.description:
|
||||
pi.description = description
|
||||
if not pi.warehouse and not doc.amended_from:
|
||||
|
Loading…
x
Reference in New Issue
Block a user