Different tools used directly by the objects , some parts of this code should Move to the right class in a later development. More...

Static Public Member Functions | |
| static | ledger_factory ($p_jrn_def_id) |
| Factory pattern to get a ledger of the right type based on $p_jrn_def_id which is the id of the table jrn_def This code should be moved to Acc_Ledger. More... | |
| static | mark_group_transferred ($p_code_group, $p_import_id) |
| Mark a group of rows transferred as a single operation. More... | |
| static | convert_amount ($p_amount, $p_thousand, $p_decimal) |
| convert_amount($array[$i]->id_amount_novat,$this->detail->s_thousand,$this->s_decimal); More... | |
| static | convert_tva ($p_code) |
| Find the correct TVA from the table impacc.parameter_tva. More... | |
Different tools used directly by the objects , some parts of this code should Move to the right class in a later development.
Definition at line 30 of file class_impacc_tool.php.
|
static |
convert_amount($array[$i]->id_amount_novat,$this->detail->s_thousand,$this->s_decimal);
Definition at line 75 of file class_impacc_tool.php.
References $p_amount.
Referenced by Impacc_Csv_Sale_Purchase\check(), Impacc_CSV\check(), Impacc_Verify\check_amount_vat(), and Impacc_Verify\check_quantity().
|
static |
Find the correct TVA from the table impacc.parameter_tva.
| $p_code | is the tva code from the file |
Definition at line 85 of file class_impacc_tool.php.
Referenced by Impacc_Csv_Sale\adapt(), and Impacc_Csv_Purchase\adapt().
|
static |
Factory pattern to get a ledger of the right type based on $p_jrn_def_id which is the id of the table jrn_def This code should be moved to Acc_Ledger.
| $p_jrn_def_id | is the id of the ledger |
| Exception | if no ledger is found |
Definition at line 39 of file class_impacc_tool.php.
Referenced by Impacc_CSV\transfer().
|
static |
Mark a group of rows transferred as a single operation.
| $p_code_group | is import_detail::id_code_group |
| $p_import_id | import id (import_file.id = import_detail.import_id) |
Definition at line 68 of file class_impacc_tool.php.
1.8.6