sales_flat_order中的base_subtotal_incl_tax字段包含的价格包括magento中的奖励积分货币

时间:2013-06-26 15:44:32

标签: magento

 When i looked at an order in sales_flat_order table in Magento , i see fields total_paid and total_invoiced have correct prices with deducted rewards currency , but on the base_subtotal_incl_tax it only shows the total amount with tax without deducting the rewards currency. Is that how its supposed to be? . ex:

base_subtotal_incl_tax => 144.17
total_paid =>143.17
total_invoiced =>143.17

非常感谢任何帮助

谢谢,

1 个答案:

答案 0 :(得分:1)

是的,这是正确的。如果您查看 app / code / core / Enterprise / Reward / Model / Total / Quote / Reward.php ,您可以找到:

            $address->setGrandTotal($address->getGrandTotal() - $pointsCurrencyAmountUsed);
            $address->setBaseGrandTotal($address->getBaseGrandTotal() - $basePointsCurrencyAmountUsed);

因此,奖励默认只会折扣GrandTotal和BaseGrandTotal。