refactor(UAE VAT 201): Update erpnext/regional/report/uae_vat_201/uae_vat_201.py

Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>
This commit is contained in:
Mohammad Hasnain Mohsin Rajan 2020-11-02 10:29:38 +05:30 committed by GitHub
parent 7b771d139c
commit d322181fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,14 +65,14 @@ def get_chart(emirates, amounts_by_emirate):
datasets.append({'name': _('Vat Amount (AED)'), 'values': vat_amount})
chart = {
"data": {
'labels': labels,
'datasets': datasets
}
"type": "bar",
"fieldtype": "Currency"
"data": {
'labels': labels,
'datasets': datasets
}
chart["type"] = "bar"
chart["fieldtype"] = "Currency"
}
return chart
def append_vat_on_sales(data, filters):
@ -333,4 +333,4 @@ def get_conditions(filters):
("to_date", " and posting_date<=%(to_date)s")):
if filters.get(opts[0]):
conditions += opts[1]
return conditions
return conditions