fiscal_year_closed and abbr removed from code

This commit is contained in:
Nabin Hait 2012-07-11 15:14:06 +05:30
parent 21fdff01e2
commit 3b0f5dddea
2 changed files with 1 additions and 6 deletions

View File

@ -204,9 +204,6 @@ class DocType:
if sql("select name from `tabFiscal Year` where year_start_date < %s", self.doc.year_start_date) and not self.doc.past_year:
msgprint("Please enter Past Year", raise_exception=1)
if not self.doc.is_fiscal_year_closed:
self.doc.is_fiscal_year_closed = 'No'
# on update
def on_update(self):

View File

@ -49,9 +49,7 @@ class DocType:
master_dict = {'Fiscal Year':{
'year': curr_fiscal_year,
'year_start_date': fy_start_date,
'abbreviation': fy_abbr,
'company': args.get('company_name'),
'is_fiscal_year_closed': 'No'}}
'company': args.get('company_name')}}
self.create_records(master_dict)
# Company