Merge branch 'develop' into gstr1-total
This commit is contained in:
commit
0cdf55033a
@ -8,6 +8,7 @@ frappe.query_reports["Accounts Payable"] = {
|
|||||||
"label": __("Company"),
|
"label": __("Company"),
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Company",
|
"options": "Company",
|
||||||
|
"reqd": 1,
|
||||||
"default": frappe.defaults.get_user_default("Company")
|
"default": frappe.defaults.get_user_default("Company")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -8,6 +8,7 @@ frappe.query_reports["Accounts Receivable"] = {
|
|||||||
"label": __("Company"),
|
"label": __("Company"),
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Company",
|
"options": "Company",
|
||||||
|
"reqd": 1,
|
||||||
"default": frappe.defaults.get_user_default("Company")
|
"default": frappe.defaults.get_user_default("Company")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -541,6 +541,7 @@ class ReceivablePayableReport(object):
|
|||||||
conditions.append("""cost_center in (select name from `tabCost Center` where
|
conditions.append("""cost_center in (select name from `tabCost Center` where
|
||||||
lft >= {0} and rgt <= {1})""".format(lft, rgt))
|
lft >= {0} and rgt <= {1})""".format(lft, rgt))
|
||||||
|
|
||||||
|
if self.filters.company:
|
||||||
accounts = [d.name for d in frappe.get_all("Account",
|
accounts = [d.name for d in frappe.get_all("Account",
|
||||||
filters={"account_type": account_type, "company": self.filters.company})]
|
filters={"account_type": account_type, "company": self.filters.company})]
|
||||||
conditions.append("account in (%s)" % ','.join(['%s'] *len(accounts)))
|
conditions.append("account in (%s)" % ','.join(['%s'] *len(accounts)))
|
||||||
|
@ -18,7 +18,7 @@ class ServiceLevelAgreement(Document):
|
|||||||
if self.start_date >= self.end_date:
|
if self.start_date >= self.end_date:
|
||||||
frappe.throw(_("Start Date of Agreement can't be greater than or equal to End Date."))
|
frappe.throw(_("Start Date of Agreement can't be greater than or equal to End Date."))
|
||||||
|
|
||||||
if self.end_date < frappe.utils.nowdate():
|
if self.end_date < frappe.utils.getdate():
|
||||||
frappe.throw(_("End Date of Agreement can't be less than today."))
|
frappe.throw(_("End Date of Agreement can't be less than today."))
|
||||||
|
|
||||||
if self.entity_type and self.entity:
|
if self.entity_type and self.entity:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user