* fix: consider field precision while setting sle actual_qty (#35717) (cherry picked from commit 3f62e854e58346b86bf510a60712ae1a364a3e9c) # Conflicts: # erpnext/controllers/buying_controller.py * chore: `conflicts` --------- Co-authored-by: Sagar Sharma <sagarsharma.s312@gmail.com>
This commit is contained in:
parent
6dd5117f61
commit
50f83859db
@ -498,7 +498,7 @@ class BuyingController(SubcontractingController):
|
||||
continue
|
||||
|
||||
if d.warehouse:
|
||||
pr_qty = flt(d.qty) * flt(d.conversion_factor)
|
||||
pr_qty = flt(flt(d.qty) * flt(d.conversion_factor), d.precision("stock_qty"))
|
||||
|
||||
if pr_qty:
|
||||
|
||||
@ -574,7 +574,7 @@ class BuyingController(SubcontractingController):
|
||||
d,
|
||||
{
|
||||
"warehouse": d.rejected_warehouse,
|
||||
"actual_qty": flt(d.rejected_qty) * flt(d.conversion_factor),
|
||||
"actual_qty": flt(flt(d.rejected_qty) * flt(d.conversion_factor), d.precision("stock_qty")),
|
||||
"incoming_rate": 0.0,
|
||||
"serial_and_batch_bundle": d.rejected_serial_and_batch_bundle,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user