mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 04:45:09 +00:00
fix: subcontracting valiation precision issue
(cherry picked from commit 8720d412bd)
This commit is contained in:
@@ -113,11 +113,10 @@ class SubcontractingController(StockController):
|
|||||||
)
|
)
|
||||||
item.sc_conversion_factor = service_item_qty / item.qty
|
item.sc_conversion_factor = service_item_qty / item.qty
|
||||||
|
|
||||||
if (
|
if self.doctype not in "Subcontracting Receipt" and item.qty > flt(
|
||||||
self.doctype not in "Subcontracting Receipt"
|
get_pending_sco_qty(self.purchase_order).get(item.purchase_order_item)
|
||||||
and item.qty
|
/ item.sc_conversion_factor,
|
||||||
> flt(get_pending_sco_qty(self.purchase_order).get(item.purchase_order_item))
|
frappe.get_precision("Purchase Order Item", "qty"),
|
||||||
/ item.sc_conversion_factor
|
|
||||||
):
|
):
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
|
|||||||
Reference in New Issue
Block a user