chore: Linting Issues

(cherry picked from commit 8af30bcc160c335f2d0898e52af85fd7673ba903)
This commit is contained in:
Deepesh Garg 2022-05-13 16:30:17 +05:30 committed by Mergify
parent edb3ef7222
commit 5ac4bf9750
2 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@
frappe.ui.form.on('GST Settings', {
refresh: function(frm) {
frm.add_custom_button('Send GST Update Reminder', () => {
frm.add_custom_button(__('Send GST Update Reminder'), () => {
return new Promise((resolve) => {
return frappe.call({
method: 'erpnext.regional.doctype.gst_settings.gst_settings.send_reminder'
@ -11,10 +11,10 @@ frappe.ui.form.on('GST Settings', {
});
});
frm.add_custom_button('Sync HSN Codes', () => {
frm.add_custom_button(__('Sync HSN Codes'), () => {
frappe.call({
"method": "erpnext.regional.doctype.gst_settings.gst_settings.update_hsn_codes"
})
});
});
$(frm.fields_dict.gst_summary.wrapper).empty().html(

View File

@ -334,6 +334,7 @@ class Gstr1Report(object):
self.item_hsn_map = frappe._dict()
self.nil_exempt_non_gst = {}
# nosemgrep
items = frappe.db.sql(
"""
select item_code, parent, taxable_value, base_net_amount, item_tax_rate, is_nil_exempt,