public function __construct($data = NULL) { parent::__construct($data); $this->_id = isset($data->id) ? (int) $data->id : 0; $this->_data = $data; $this->_payment = $this->_load_vendor_payment($this->_id); }
public function __construct($data = NULL) { parent::__construct($data); $this->_data = $data; $this->_transaction_purchase_account_id = $this->_beans_setting_get('purchase_default_account_id'); $this->_transaction_purchase_line_account_id = $this->_beans_setting_get('purchase_default_line_account_id'); $this->_transaction_purchase_prepaid_purchase_account_id = $this->_beans_setting_get('purchase_prepaid_purchase_account_id'); }
public function __construct($data = NULL) { parent::__construct($data); $this->_payment = $this->_default_vendor_payment(); $this->_data = $data; $this->_validate_only = (isset($this->_data->validate_only) and $this->_data->validate_only) ? TRUE : FALSE; $this->_transaction_purchase_account_id = $this->_beans_setting_get('purchase_default_account_id'); $this->_transaction_purchase_line_account_id = $this->_beans_setting_get('purchase_default_line_account_id'); $this->_transaction_purchase_prepaid_purchase_account_id = $this->_beans_setting_get('purchase_prepaid_purchase_account_id'); }
public function __construct($data = NULL) { parent::__construct($data); $this->_page = (isset($data->page) and (int) $data->page >= 0) ? (int) $data->page : 0; $this->_page_size = (isset($data->page_size) and (int) $data->page_size > 0) ? (int) $data->page_size : 50; $this->_sort_by = isset($data->sort_by) ? strtolower($data->sort_by) : "newest"; $this->_search_vendor_id = isset($data->search_vendor_id) ? $data->search_vendor_id : FALSE; $this->_search_keywords = isset($data->keywords) ? $data->keywords : FALSE; $this->_search_flag_include_invoices = isset($data->include_invoices) ? $data->include_invoices ? TRUE : FALSE : NULL; }