fix: incorrect positional param for get_field_precision util (backport #50764) (#50795)

This commit is contained in:
mergify[bot]
2025-11-28 08:50:03 +00:00
committed by GitHub
parent 64e6b36d04
commit ff1ca9d480
4 changed files with 6 additions and 4 deletions

View File

@@ -289,7 +289,9 @@ def merge_similar_entries(gl_map, precision=None):
company_currency = erpnext.get_company_currency(company)
if not precision:
precision = get_field_precision(frappe.get_meta("GL Entry").get_field("debit"), company_currency)
precision = get_field_precision(
frappe.get_meta("GL Entry").get_field("debit"), currency=company_currency
)
# filter zero debit and credit entries
merged_gl_map = filter(