Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently commerce_discount_add_price_component does the following:
// Calculate the updated amount and create a price array representing the
// difference between it and the current amount.
$discount_amount['amount'] = commerce_round(COMMERCE_ROUND_HALF_UP, $discount_amount['amount']);
But commerce_discount_set_price_component() doesn't.
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_discount-round-amount-in-set-price-component-3030610-2.patch | 561 bytes | jsacksick |
|
Comments
Comment #2
jsacksick CreditAttribution: jsacksick at Centarro commentedComment #4
jsacksick CreditAttribution: jsacksick at Centarro commented