mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-26 04:18:35 +00:00
fix(stock): apply precision to the additional cost amount in stock entry
(cherry picked from commit 6ac699d3bb)
This commit is contained in:
@@ -2005,6 +2005,8 @@ class StockEntry(StockController):
|
||||
] += flt(t.base_amount * multiply_based_on) / divide_based_on
|
||||
|
||||
if item_account_wise_additional_cost:
|
||||
precision = self.get_debit_field_precision()
|
||||
|
||||
for d in self.get("items"):
|
||||
for account, amount in item_account_wise_additional_cost.get(
|
||||
(d.item_code, d.name), {}
|
||||
@@ -2012,6 +2014,9 @@ class StockEntry(StockController):
|
||||
if not amount:
|
||||
continue
|
||||
|
||||
amount["amount"] = flt(amount["amount"], precision)
|
||||
amount["base_amount"] = flt(amount["base_amount"], precision)
|
||||
|
||||
gl_entries.append(
|
||||
self.get_gl_dict(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user