예제 #1
0
 def configure(self, as_of=None, col_tag=None, path=None):
     if as_of:
         if as_of == 'today':
             self.date = datetime.datetime.now().date()    
         else:
             self.date = parse(as_of).date()
         self.title = 'Trial Balance as of %s' % self.date.strftime('%d-%b-%y')
     elif col_tag:
         config = utils.config_fromcoltag(col_tag, self.description, self.calc_type)
         try:
             self.date = config['columns']['Today']
         except:
             self.date = config['columns'][config['column_order'][-1]]
         self.title = config['title']
     else:
         self.date = datetime.datetime.now().date()    
예제 #2
0
 def config_fromtag(self, col_tag):
     config = utils.config_fromcoltag(col_tag, self.description,
                                      self.calc_type)
     self.title = config['title']
     self.set_columns(config['columns'],
                      column_order=config['column_order'])
예제 #3
0
 def config_fromtag(self,col_tag):
     config = utils.config_fromcoltag(col_tag, self.description, self.calc_type)
     self.title = config['title']
     self.set_columns(config['columns'], column_order=config['column_order'])