|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
Acc_Tva is used for to map the table tva_rate parameter are. More...
Collaboration diagram for Acc_Tva:Public Member Functions | |
| __construct ($p_init, $p_tva_id=-1) | |
| get_parameter ($p_string) | |
| get_side ($p_side) | |
| get the account of the side (debit or credit) | |
| getTvaRateSql () | |
| load () | |
| Load the VAT, return 0 if the TVA_ID exists otherwise -1. | |
| set_parameter ($p_string, $p_value) | |
| setTvaRateSql (Tva_Rate_SQL $tva_rate_sql) | |
Static Public Member Functions | |
| static | build ($db, $p_code) |
| retrieve TVA rate thanks the code that could be the tva_id or tva_code. | |
Data Fields | |
| $tva_both_side | |
| $tva_code | |
| $tva_comment | |
| $tva_id | |
| $tva_label | |
| $tva_poste | |
| $tva_rate | |
| $tva_reverse_account | |
Private Attributes | |
| $cn | |
| Database connection. | |
| Tva_Rate_SQL | $tva_rate_sql |
Static Private Attributes | |
| static | $variable |
Acc_Tva is used for to map the table tva_rate parameter are.
Definition at line 36 of file acc_tva.class.php.
| Acc_Tva::__construct | ( | $p_init, | |
| $p_tva_id = -1 ) |
Definition at line 59 of file acc_tva.class.php.
References cn.
|
static |
retrieve TVA rate thanks the code that could be the tva_id or tva_code.
Check first if p_code is a TVA_CODE and if not, check if it is a TVA_ID
| $db | Database connection |
| $p_code | either tva_id or tva_code |
Definition at line 155 of file acc_tva.class.php.
References $tva_id, if, and return.
Referenced by Acc_Ledger_Purchase\confirm(), Acc_Ledger_Sale\confirm(), ITva_Popup\display(), Tax_Detail\get_data(), Acc_Ledger_Purchase\insert(), Acc_Ledger_Sale\insert(), Document\replace(), PDF_Operation\str_vat(), Card_Property\update(), Acc_Ledger_Purchase\verify_operation(), and Acc_Ledger_Sale\verify_operation().
| Acc_Tva::get_parameter | ( | $p_string | ) |
Definition at line 90 of file acc_tva.class.php.
References $idx, and EXC_INVALID.
| Acc_Tva::get_side | ( | $p_side | ) |
get the account of the side (debit or credit)
| $p_side | is d or C |
Definition at line 131 of file acc_tva.class.php.
References $cred, $deb, and load().
Here is the call graph for this function:| Acc_Tva::getTvaRateSql | ( | ) |
Definition at line 76 of file acc_tva.class.php.
References $tva_rate_sql.
| Acc_Tva::load | ( | ) |
Load the VAT, return 0 if the TVA_ID exists otherwise -1.
Definition at line 119 of file acc_tva.class.php.
Referenced by get_side().
| Acc_Tva::set_parameter | ( | $p_string, | |
| $p_value ) |
Definition at line 100 of file acc_tva.class.php.
References $idx, and EXC_INVALID.
| Acc_Tva::setTvaRateSql | ( | Tva_Rate_SQL | $tva_rate_sql | ) |
| Tva_Rate_SQL | $tva_rate_sql |
Definition at line 84 of file acc_tva.class.php.
References $tva_rate_sql.
|
private |
Database connection.
Definition at line 55 of file acc_tva.class.php.
| Acc_Tva::$tva_both_side |
Definition at line 51 of file acc_tva.class.php.
| Acc_Tva::$tva_code |
Definition at line 52 of file acc_tva.class.php.
| Acc_Tva::$tva_comment |
Definition at line 49 of file acc_tva.class.php.
| Acc_Tva::$tva_id |
Definition at line 46 of file acc_tva.class.php.
Referenced by build().
| Acc_Tva::$tva_label |
Definition at line 47 of file acc_tva.class.php.
| Acc_Tva::$tva_poste |
Definition at line 50 of file acc_tva.class.php.
| Acc_Tva::$tva_rate |
Definition at line 48 of file acc_tva.class.php.
|
private |
Definition at line 57 of file acc_tva.class.php.
Referenced by getTvaRateSql(), and setTvaRateSql().
| Acc_Tva::$tva_reverse_account |
Definition at line 53 of file acc_tva.class.php.
|
staticprivate |
Definition at line 38 of file acc_tva.class.php.