virtmart发票计算税

时间:2015-04-18 14:18:12

标签: php joomla virtuemart invoice

我使用virtuemart为网上商店,但网站的所有者只想在发票上使用税 她不希望在每篇文章中填写它们,她希望它们在可见票上可见并计算

计算总价的代码是:

$this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total, $this->currency);

这显示为例如: €8,45

如何将其计算为该金额的21%? 谢谢!

1 个答案:

答案 0 :(得分:0)

这应该有所帮助。

$this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total * 1.21, $this->currency);
相关问题