Skip to content

Commit 96bff1b

Browse files
Bugfix multiple parcels
1 parent 7c80e3a commit 96bff1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Auspost.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ public function getQuotes($input) {
175175
}
176176

177177
if ($fuel_surcharge_prices) {
178-
$quotes[$price['product_id']]['price_inc_gst'] += $fuel_surcharge_prices['price_inc_gst'];
179-
$quotes[$price['product_id']]['price_exc_gst'] += $fuel_surcharge_prices['price_exc_gst'];
178+
$quotes[$price['product_id']]['price_inc_gst'] = $fuel_surcharge_prices['price_inc_gst'];
179+
$quotes[$price['product_id']]['price_exc_gst'] = $fuel_surcharge_prices['price_exc_gst'];
180180
} else if (array_key_exists('bundled_price', $price) && $is_subsequent_item) {
181181
$quotes[$price['product_id']]['price_inc_gst'] += $price['bundled_price'];
182182
$quotes[$price['product_id']]['price_exc_gst'] += $price['bundled_price_ex_gst'];

0 commit comments

Comments
 (0)