mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
minor fix in global defaults
This commit is contained in:
@@ -30,7 +30,7 @@ class GlobalDefaults(Document):
|
|||||||
# update year start date and year end date from fiscal_year
|
# update year start date and year end date from fiscal_year
|
||||||
year_start_end_date = frappe.db.sql("""select year_start_date, year_end_date
|
year_start_end_date = frappe.db.sql("""select year_start_date, year_end_date
|
||||||
from `tabFiscal Year` where name=%s""", self.current_fiscal_year)
|
from `tabFiscal Year` where name=%s""", self.current_fiscal_year)
|
||||||
|
if year_start_end_date:
|
||||||
ysd = year_start_end_date[0][0] or ''
|
ysd = year_start_end_date[0][0] or ''
|
||||||
yed = year_start_end_date[0][1] or ''
|
yed = year_start_end_date[0][1] or ''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user