mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-25 21:05:19 +00:00
fix(selling): clamp pending qty to qty field precision
This commit is contained in:
@@ -471,7 +471,7 @@ def make_sales_invoice(
|
||||
if source.qty and source.billed_amt:
|
||||
billable_qty -= get_billed_qty_by_item().get(source.name, 0)
|
||||
|
||||
pending_qty_by_item[source.name] = max(flt(billable_qty), 0)
|
||||
pending_qty_by_item[source.name] = max(flt(billable_qty, source.precision("qty")), 0)
|
||||
|
||||
return pending_qty_by_item[source.name]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user