mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-11 02:45:08 +00:00
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com> fix: precision issue in production plan (#53370)
This commit is contained in:
@@ -1800,6 +1800,7 @@ def get_sub_assembly_items(
|
||||
skip_available_sub_assembly_item=False,
|
||||
):
|
||||
data = get_bom_children(parent=bom_no)
|
||||
precision = frappe.get_precision("Production Plan Sub Assembly Item", "qty")
|
||||
for d in data:
|
||||
if d.expandable:
|
||||
parent_item_code = frappe.get_cached_value("BOM", bom_no, "item")
|
||||
@@ -1837,7 +1838,7 @@ def get_sub_assembly_items(
|
||||
"is_sub_contracted_item": d.is_sub_contracted_item,
|
||||
"bom_level": indent,
|
||||
"indent": indent,
|
||||
"stock_qty": stock_qty,
|
||||
"stock_qty": flt(stock_qty, precision),
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user