0
 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

任何帮助是极大的赞赏

谢谢,

4

1 回答 1

1

是的,这是正确的。如果您查看app/code/core/Enterprise/Reward/Model/Total/Quote/Reward.php,您会发现:

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

因此,默认情况下,奖励只会打折 GrandTotal 和 BaseGrandTotal。

于 2013-06-26T16:16:41.347 回答