Merge pull request #27660 from rtdany10/patch-8

fix: tax rate being overridden in case of 0.00
This commit is contained in:
Deepesh Garg 2021-10-05 14:11:27 +05:30 committed by GitHub
commit aa0698078f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,