bztang-admin/app/frontend/modules/order/OrderTaxFeePriceNode.php

17 lines
530 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\frontend\modules\order;
class OrderTaxFeePriceNode extends OrderPriceNode
{
public function getKey()//暂时一个地方用如果要多个用需要改成优惠节点的那种模式因为用到了getPriceBefore($this->getCode()
{
return 'orderTaxFee';
}
public function getPrice()
{
//最终的计算才要用到截断 任务管理:#11094
return $this->order->getPriceBefore($this->getKey()) + $this->order->getOrderTaxFeeManager()->getAmount();
}
}