mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 08:02:51 +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
|
||||
year_start_end_date = frappe.db.sql("""select year_start_date, year_end_date
|
||||
from `tabFiscal Year` where name=%s""", self.current_fiscal_year)
|
||||
|
||||
if year_start_end_date:
|
||||
ysd = year_start_end_date[0][0] or ''
|
||||
yed = year_start_end_date[0][1] or ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user