Merge pull request #27803 from frappe/mergify/bp/version-13-hotfix/pr-27660

fix: tax rate being overridden in case of 0.00 (backport #27660)
This commit is contained in:
Marica
2021-10-05 16:44:16 +05:30
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@@ -176,7 +176,7 @@ def generate_taxes():
account = create_account(company=company_name, account_name="Output Tax CGST", account_type="Tax", parent_account=parent_account)
return {'taxes':[{
"account_head": account,
"rate": 0,
"rate": 9,
"description": "CGST",
"tax_amount": 10,
"total": 210

View File

@@ -56,8 +56,6 @@
},
{
"columns": 2,
"fetch_from": "account_head.tax_rate",
"fetch_if_empty": 1,
"fieldname": "rate",
"fieldtype": "Float",
"in_list_view": 1,
@@ -111,4 +109,4 @@
"sort_field": "modified",
"sort_order": "ASC",
"track_changes": 1
}
}