fix: Linting issues
This commit is contained in:
parent
c85242e03d
commit
e1fffdb262
@ -7,7 +7,7 @@ frappe.ui.form.on("Payment Entry", {
|
|||||||
'name': frm.doc.company
|
'name': frm.doc.company
|
||||||
},
|
},
|
||||||
'callback': function(r) {
|
'callback': function(r) {
|
||||||
me.frm.set_value('company_address', r.message);
|
frm.set_value('company_address', r.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -21,7 +21,7 @@ frappe.ui.form.on("Payment Entry", {
|
|||||||
'name': frm.doc.party
|
'name': frm.doc.party
|
||||||
},
|
},
|
||||||
'callback': function(r) {
|
'callback': function(r) {
|
||||||
me.frm.set_value('customer_address', r.message);
|
frm.set_value('customer_address', r.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
# Copyright (c) 2021, Frappe and Contributors
|
# Copyright (c) 2021, Frappe and Contributors
|
||||||
# License: GNU General Public License v3. See license.txt
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
import frappe
|
|
||||||
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
@ -62,7 +62,7 @@ class Gstr1Report(object):
|
|||||||
def get_data(self):
|
def get_data(self):
|
||||||
if self.filters.get("type_of_business") in ("B2C Small", "B2C Large"):
|
if self.filters.get("type_of_business") in ("B2C Small", "B2C Large"):
|
||||||
self.get_b2c_data()
|
self.get_b2c_data()
|
||||||
elif self.filters.get("type_of_business") in ("Advances"):
|
elif self.filters.get("type_of_business") == "Advances":
|
||||||
self.get_advance_data()
|
self.get_advance_data()
|
||||||
elif self.invoices:
|
elif self.invoices:
|
||||||
for inv, items_based_on_rate in self.items_based_on_tax_rate.items():
|
for inv, items_based_on_rate in self.items_based_on_tax_rate.items():
|
||||||
@ -78,7 +78,7 @@ class Gstr1Report(object):
|
|||||||
self.data.append(row)
|
self.data.append(row)
|
||||||
|
|
||||||
def get_advance_data(self):
|
def get_advance_data(self):
|
||||||
advances_data = {}
|
Advances_data = {}
|
||||||
advances = self.get_advance_entries()
|
advances = self.get_advance_entries()
|
||||||
for entry in advances:
|
for entry in advances:
|
||||||
# only consider IGST and SGST so as to avoid duplication of taxable amount
|
# only consider IGST and SGST so as to avoid duplication of taxable amount
|
||||||
@ -695,7 +695,7 @@ class Gstr1Report(object):
|
|||||||
"width": 120
|
"width": 120
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
elif self.filters.get("type_of_business") == "Advances":
|
elif self.filters.get("type_of_business") == "Advances":
|
||||||
self.invoice_columns = [
|
self.invoice_columns = [
|
||||||
{
|
{
|
||||||
"fieldname": "place_of_supply",
|
"fieldname": "place_of_supply",
|
||||||
|
Loading…
Reference in New Issue
Block a user