Common function to RAPAV_Listing RAPAV_Formulaire and RAPAV_Declaration. More...
Static Public Member Functions | |
static | get_ledger_name ($p_jrn) |
Return the ledger's name of p_jrn. More... | |
static | str_date_type ($p_type) |
Compute the string to display for date. More... | |
static | get_sql_date ($p_date, $p_prefix="") |
Compute the SQL for the date. More... | |
static | verify_compute ($p_formula) |
check if the formula is valid, return 1 for an error and set errcode to the error msg errcode is global variable More... | |
static | verify_formula ($p_formula) |
Common function to RAPAV_Listing RAPAV_Formulaire and RAPAV_Declaration.
Definition at line 27 of file class_rapav.php.
|
static |
Return the ledger's name of p_jrn.
$p_jrn | jrn_def::jrn_def_id if -1, it means all the ledger |
Definition at line 35 of file class_rapav.php.
Referenced by RAPAV_Formula\display_row(), RAPAV_Account_Tva\display_row(), RAPAV_Account\display_row(), and RAPAV_Reconcile\display_row().
|
static |
Compute the SQL for the date.
$p_date | integer |
Exception | if $p_date not valid |
Definition at line 84 of file class_rapav.php.
References $p_date.
Referenced by Rapav_dd_Account\compute(), Rapav_dd_Account_Tva\compute_amount(), and Rapav_dd_Account_Tva\compute_tva().
|
static |
Compute the string to display for date.
$p_type |
Exception |
Definition at line 58 of file class_rapav.php.
References $p_type.
Referenced by RAPAV_Formula\display_row(), RAPAV_Account_Tva\display_row(), and RAPAV_Account\display_row().
|
static |
check if the formula is valid, return 1 for an error and set errcode to the error msg errcode is global variable
Definition at line 123 of file class_rapav.php.
References $errcode.
Referenced by RAPAV_Formula\verify(), and RAPAV_Compute\verify().
|
static |