예제 #1
0
파일: address.php 프로젝트: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_data = $data;
     $this->_id = isset($data->id) ? (int) $data->id : 0;
     $this->_purchase = $this->_load_vendor_purchase($this->_id);
 }
예제 #2
0
파일: cancel.php 프로젝트: rrsc/beansbooks
 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');
 }
예제 #3
0
파일: create.php 프로젝트: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_data = $data;
     $this->_purchase = $this->_default_vendor_purchase();
     $this->_purchase_lines = array();
     $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');
     $this->_date_billed = isset($this->_data->date_billed) ? $this->_data->date_billed : FALSE;
     $this->_invoice_number = isset($this->_data->invoice_number) ? $this->_data->invoice_number : FALSE;
 }
예제 #4
0
파일: update.php 프로젝트: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_data = $data;
     $this->_id = isset($data->id) ? (int) $data->id : 0;
     $this->_attributes_only = (isset($this->_data->attributes_only) and $this->_data->attributes_only) ? TRUE : FALSE;
     $this->_address_only = (isset($this->_data->address_only) and $this->_data->address_only) ? TRUE : FALSE;
     $this->_purchase = $this->_load_vendor_purchase($this->_id);
     $this->_purchase_lines = array();
     $this->_account_transactions = array();
     $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->_date_billed = isset($this->_data->date_billed) ? $this->_data->date_billed : FALSE;
     $this->_invoice_number = isset($this->_data->invoice_number) ? $this->_data->invoice_number : FALSE;
 }
예제 #5
0
파일: invoice.php 프로젝트: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_validate_only = (isset($data->validate_only) and $data->validate_only) ? TRUE : FALSE;
     $this->_id = isset($data->id) ? (int) $data->id : 0;
     $this->_purchase = $this->_load_vendor_purchase($this->_id);
     $this->_date_billed = isset($data->date_billed) ? $data->date_billed : date("Y-m-d");
     $this->_invoice_number = (isset($data->invoice_number) and $data->invoice_number) ? $data->invoice_number : FALSE;
     $this->_so_number = isset($data->so_number) ? $data->so_number : FALSE;
     $this->_invoice_amount = isset($data->invoice_amount) ? $data->invoice_amount : FALSE;
     $this->_invoice_adjustment_description = isset($data->adjustment_description) ? $data->adjustment_description : FALSE;
     $this->_invoice_adjustment_account_id = isset($data->adjustment_account_id) ? $data->adjustment_account_id : 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');
 }
예제 #6
0
파일: search.php 프로젝트: rrsc/beansbooks
 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) ? (int) $data->search_vendor_id : FALSE;
     $this->_search_keywords = isset($data->keywords) ? $data->keywords : FALSE;
     $this->_search_flag_invoiced = isset($data->invoiced) ? $data->invoiced ? TRUE : FALSE : NULL;
     $this->_search_flag_cancelled = isset($data->cancelled) ? $data->cancelled ? TRUE : FALSE : NULL;
     $this->_search_flag_sent = isset($data->sent) ? $data->sent ? TRUE : FALSE : NULL;
     $this->_search_flag_past_due = isset($data->past_due) ? $data->past_due ? TRUE : FALSE : NULL;
     $this->_search_flag_has_balance = isset($data->has_balance) ? $data->has_balance ? TRUE : FALSE : NULL;
     $this->_search_date_created_before = isset($data->date_created_before) ? $data->date_created_before : NULL;
     $this->_search_date_created_after = isset($data->date_created_after) ? $data->date_created_after : NULL;
     $this->_search_date_billed_before = isset($data->date_billed_before) ? $data->date_billed_before : NULL;
     $this->_search_date_billed_after = isset($data->date_billed_after) ? $data->date_billed_after : NULL;
 }
예제 #7
0
파일: invoice.php 프로젝트: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_data = $data;
     $this->_validate_only = (isset($data->validate_only) and $data->validate_only) ? TRUE : FALSE;
 }
예제 #8
0
파일: check.php 프로젝트: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_data = $data;
 }
예제 #9
0
파일: line.php 프로젝트: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
 }