fix cent bug
This commit is contained in:
parent
60b310bc0c
commit
9d812b77ee
1 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ class PaypalProduct extends Model
|
|||
*/
|
||||
public function getTaxValue()
|
||||
{
|
||||
return $this->price*$this->getTaxPercent()/100;
|
||||
return number_format($this->price*$this->getTaxPercent()/100,2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -80,6 +80,6 @@ class PaypalProduct extends Model
|
|||
*/
|
||||
public function getTotalPrice()
|
||||
{
|
||||
return $this->price+($this->getTaxValue());
|
||||
return number_format($this->price+$this->getTaxValue(),2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue