예제 #1
0
 def get_fy_start_end_dates(self):
     st_date = sql(
         "select year_start_date from `tabFiscal Year` where name = '%s'" %
         (self.doc.fiscal_year))
     st_date = st_date and st_date[0][0].strftime('%Y-%m-%d') or ''
     ed_date = add_days(add_years(st_date, 1), -1)
     return st_date, ed_date
예제 #2
0
 def get_fy_start_end_dates(self):
   st_date = sql("select year_start_date from `tabFiscal Year` where name = '%s'" %(self.doc.fiscal_year))
   st_date = st_date and st_date[0][0].strftime('%Y-%m-%d') or ''
   ed_date = add_days(add_years(st_date,1), -1)
   return st_date, ed_date