Static Public Member Functions |
static | get_type ($type) |
| Returns type in string from integer.
|
static | types () |
| Return translated invoice type array.
|
Protected Attributes |
| $belongs_to = array('partner' => 'member') |
| $has_many = array('invoice_items') |
Member Function Documentation
Invoice_Model::count_all_invoices |
( |
|
$filter_sql = "" | ) |
|
Function counts all invoices.
!!!!!! SECURITY WARNING !!!!!! Be careful when you using this method, param $filter_sql is unprotected for SQL injections, security should be made at controller site using Filter_form class. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- Parameters
-
- Returns
- integer
Invoice_Model::get_all_account_nrs |
( |
|
$like | ) |
|
Returns all account numbers by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_companies |
( |
|
$like | ) |
|
Returns all companies by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_countries |
( |
|
$like | ) |
|
Returns all countries by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_emails |
( |
|
$like | ) |
|
Returns all emails by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_invoices |
( |
|
$limit_from = 0 , |
|
|
|
$limit_results = 50 , |
|
|
|
$order_by = 'id' , |
|
|
|
$order_by_direction = 'ASC' , |
|
|
|
$filter_sql = '' |
|
) |
| |
Returns ORM_Iterator of all invoices.
- Author
- Michal Kliment
- Parameters
-
$limit_from | |
$limit_results | |
$order_by | |
$order_by_direction | |
- Returns
- Mysql_Result
Invoice_Model::get_all_invoices_export |
( |
|
$filter_sql = '' | ) |
|
Returns ORM_Iterator of all invoices.
- Author
- Michal Kliment
- Parameters
-
$limit_from | |
$limit_results | |
$order_by | |
$order_by_direction | |
- Returns
- Mysql_Result
Invoice_Model::get_all_names |
( |
|
$like | ) |
|
Returns all partner names by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_organization_ids |
( |
|
$like | ) |
|
Returns all organization ids by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_phone_numbers |
( |
|
$like | ) |
|
Returns all phone numbers by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_street_numbers |
( |
|
$like | ) |
|
Returns all street numbers by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_streets |
( |
|
$like | ) |
|
Returns all streets by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_towns |
( |
|
$like | ) |
|
Returns all towns by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_vat_organization_ids |
( |
|
$like | ) |
|
Returns all VAT organization ids by given like.
- Author
- Michal Kliment
- Parameters
-
- Returns
- MySQL_Result
Invoice_Model::get_all_zip_codes |
( |
|
$like | ) |
|
Returns all zip codes by given like.
- Author
- Jan Dubina
- Parameters
-
- Returns
- MySQL_Result
static Invoice_Model::get_type |
( |
|
$type | ) |
|
|
static |
Returns type in string from integer.
- Author
- Jan Dubina
- Parameters
-
- Returns
- string
static Invoice_Model::types |
( |
| ) |
|
|
static |
Return translated invoice type array.
- Author
- Jan Dubina
- Returns
- array
The documentation for this class was generated from the following file: