【问题标题】:virtuemart invoice calculate tax美德发票计算税
【发布时间】:2015-04-18 14:18:11
【问题描述】:

我正在为网上商店使用 meadowmart,但网站所有者只想在发票上使用税金 她不想在每篇文章中都填写它们,她希望它们是可见的,并且可以在收入中计算出来

计算总价的代码是:

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

这显示它例如: 8.45 欧元

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

【问题讨论】:

    标签: php joomla virtuemart invoice


    【解决方案1】:

    这应该会有所帮助。

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

    【讨论】:

    • code $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total * 0.21, $this->currency); 成功了!我让它变得比实际困难得多非常感谢!
    猜你喜欢
    • 2015-10-21
    • 1970-01-01
    • 1970-01-01
    • 2016-11-07
    • 1970-01-01
    • 2012-11-19
    • 1970-01-01
    • 2013-04-02
    • 1970-01-01
    相关资源
    最近更新 更多