From 3e53660bba95c2ed812d6a77229488b1912431d5 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 17 Jul 2025 15:10:06 +0530 Subject: [PATCH] fix: precision issue for Sales Incoming Rate (cherry picked from commit 7b99275ceb4e6bccd5ef5b19dc4c4ff8c4a61ca2) --- erpnext/controllers/buying_controller.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index 4e726333a7f..73d8a42c505 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -447,13 +447,12 @@ class BuyingController(SubcontractingController): raise_error_if_no_rate=False, ) - d.sales_incoming_rate = flt(outgoing_rate * (d.conversion_factor or 1), d.precision("rate")) + d.sales_incoming_rate = flt(outgoing_rate * (d.conversion_factor or 1)) else: field = "incoming_rate" if self.get("is_internal_supplier") else "rate" d.sales_incoming_rate = flt( frappe.db.get_value(ref_doctype, d.get(frappe.scrub(ref_doctype)), field) - * (d.conversion_factor or 1), - d.precision("rate"), + * (d.conversion_factor or 1) ) def validate_for_subcontracting(self):