Currency : the meaning is : 1 euro is worth xxx Currency ,
so we divide the amount with the currency rate to compute the EUR value
This commit is contained in:
parent
3d45f187a6
commit
c953d43fd2
7 changed files with 18 additions and 18 deletions
|
|
@ -89,13 +89,13 @@ class Acc_Compute
|
|||
function convert_euro()
|
||||
{
|
||||
$local_amount=$this->amount;
|
||||
$this->amount=bcmul($this->amount,$this->currency_rate,6);
|
||||
$this->amount=bcdiv($this->amount,$this->currency_rate,6);
|
||||
$this->amount_currency=$local_amount;
|
||||
}
|
||||
function convert_euro_vat()
|
||||
{
|
||||
$local_amount=$this->amount_vat;
|
||||
$this->amount_vat=bcmul($this->amount_vat,$this->currency_rate,6);
|
||||
$this->amount_vat=bcdiv($this->amount_vat,$this->currency_rate,6);
|
||||
$this->amount_vat_currency=$local_amount;
|
||||
}
|
||||
public function get_parameter($p_string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue