fix: Tax Declaration tests and amount precision

This commit is contained in:
Rucha Mahabal
2022-05-11 18:26:33 +05:30
committed by Nabin Hait
parent 5e96a46c87
commit 00adda7c8d
3 changed files with 41 additions and 30 deletions

View File

@@ -422,8 +422,8 @@ def calculate_annual_eligible_hra_exemption(doc):
return frappe._dict(
{
"hra_amount": hra_amount,
"annual_exemption": flt(annual_exemption, doc.precision("annual_hra_exemption")),
"monthly_exemption": flt(monthly_exemption, doc.precision("monthly_hra_exemption")),
"annual_exemption": annual_exemption,
"monthly_exemption": monthly_exemption,
}
)