mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-06 03:52:15 +00:00
fix: add precision to rejected batch no qty calculation
(cherry picked from commit 838d245215)
This commit is contained in:
@@ -465,7 +465,10 @@ class StockController(AccountsController):
|
|||||||
if is_rejected:
|
if is_rejected:
|
||||||
serial_nos = row.get("rejected_serial_no")
|
serial_nos = row.get("rejected_serial_no")
|
||||||
type_of_transaction = "Inward" if not self.is_return else "Outward"
|
type_of_transaction = "Inward" if not self.is_return else "Outward"
|
||||||
qty = row.get("rejected_qty") * row.get("conversion_factor", 1.0)
|
qty = flt(
|
||||||
|
row.get("rejected_qty") * row.get("conversion_factor", 1.0),
|
||||||
|
frappe.get_precision("Serial and Batch Entry", "qty"),
|
||||||
|
)
|
||||||
warehouse = row.get("rejected_warehouse")
|
warehouse = row.get("rejected_warehouse")
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user