예제 #1
0
 public function __construct($module = null, $action = null)
 {
     parent::__construct($module, $action);
     $this->uses(DataObjectFactory::Factory('CBTransaction'));
     $this->uses(DataObjectFactory::Factory('PLTransaction'));
     $this->_templateobject = DataObjectFactory::Factory('PLSupplier');
     $this->uses($this->_templateobject, true);
 }
예제 #2
0
 public function __construct($module = null, $action = null)
 {
     parent::__construct($module, $action);
     $this->uses(DataObjectFactory::Factory('CBTransaction'), FALSE);
     $this->uses(DataObjectFactory::Factory('SLTransaction'), FALSE);
     $this->_templateobject = DataObjectFactory::Factory('SLCustomer');
     $this->uses($this->_templateobject);
     // Define parameters for bulk output Statements
     // used by select_for_output function
     $this->output_types = array('statement' => array('search_do' => 'SLCustomerSearch', 'search_method' => 'statements', 'search_defaults' => array('statement' => 'TRUE'), 'collection' => 'SLCustomerCollection', 'collection_fields' => array('id', 'name', 'currency', 'outstanding_balance', 'email_statement as email', 'last_statement_date'), 'display_fields' => array('name', 'outstanding_balance', 'currency', 'last_statement_date', 'email'), 'title' => 'Select Statements for ', 'filename' => 'Statement', 'printaction' => 'print_customer_statements'));
 }
예제 #3
0
 public function __construct($module = null, $action = null)
 {
     parent::__construct($module, $action);
     $this->_templateobject = new GLCentre();
     $this->uses($this->_templateobject);
 }
예제 #4
0
 public function __construct($module = null, $action = null)
 {
     parent::__construct($module, $action);
     $this->_templateobject = DataObjectFactory::Factory('CBAccount');
     $this->uses($this->_templateobject);
 }