noalyss Version-9
|
display currency , convert to euro , and save them if used. More...
Public Member Functions | |
__construct (Database $p_cn, $p_id=-1) | |
__toString () | |
get_by_iso ($p_iso) | |
Retrieve a V_Currency_Last_Value_SQL thanks its iso_code. More... | |
get_code () | |
return the iso code of the currency More... | |
get_id () | |
return the id of the currency More... | |
get_rate () | |
return the rate of the currency More... | |
get_rate_date ($p_date) | |
Return the rate used at a certain date or -1 if date if not in the format DD.MM.YYYY or -2 if no value is found. More... | |
is_found () | |
Check if the record is found. More... | |
select_currency () | |
Create an object iselect to select the currency,. More... | |
set_id ($p_id) | |
Retrieve a V_Currency_Last_Value_SQL thanks its id. More... | |
sum_amount ($p_jr_id) | |
Return sum of the w/o VAT and VAT or an operation. More... | |
Private Attributes | |
$cn | |
database conx More... | |
$currency | |
v_currency_last_value_sql More... | |
display currency , convert to euro , and save them if used.
The default currency has the id 0 and is normally EUR
Definition at line 33 of file acc_currency.class.php.
Acc_Currency::__construct | ( | Database | $p_cn, |
$p_id = -1 |
|||
) |
Definition at line 39 of file acc_currency.class.php.
Acc_Currency::__toString | ( | ) |
Definition at line 45 of file acc_currency.class.php.
Acc_Currency::get_by_iso | ( | $p_iso | ) |
Retrieve a V_Currency_Last_Value_SQL thanks its iso_code.
string | $p_iso |
Definition at line 54 of file acc_currency.class.php.
Acc_Currency::get_code | ( | ) |
return the iso code of the currency
Definition at line 96 of file acc_currency.class.php.
Acc_Currency::get_id | ( | ) |
return the id of the currency
Definition at line 105 of file acc_currency.class.php.
Referenced by get_rate_date().
Acc_Currency::get_rate | ( | ) |
return the rate of the currency
Definition at line 88 of file acc_currency.class.php.
Acc_Currency::get_rate_date | ( | $p_date | ) |
Return the rate used at a certain date or -1 if date if not in the format DD.MM.YYYY or -2 if no value is found.
date | $p_date |
Definition at line 146 of file acc_currency.class.php.
References $p_date, $sql, $value, cn, get_id(), and isDate().
Acc_Currency::is_found | ( | ) |
Check if the record is found.
Definition at line 78 of file acc_currency.class.php.
Acc_Currency::select_currency | ( | ) |
Create an object iselect to select the currency,.
Definition at line 114 of file acc_currency.class.php.
Acc_Currency::set_id | ( | $p_id | ) |
Retrieve a V_Currency_Last_Value_SQL thanks its id.
number | $p_id |
Definition at line 69 of file acc_currency.class.php.
References $p_id.
Acc_Currency::sum_amount | ( | $p_jr_id | ) |
Return sum of the w/o VAT and VAT or an operation.
Definition at line 126 of file acc_currency.class.php.
|
private |
database conx
Definition at line 36 of file acc_currency.class.php.
|
private |
v_currency_last_value_sql
Definition at line 37 of file acc_currency.class.php.