fiscal_year_closed and abbr removed from code
This commit is contained in:
parent
21fdff01e2
commit
3b0f5dddea
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user