Skip to content

Commit

Permalink
Merge branch 'refs/heads/gh-8'
Browse files Browse the repository at this point in the history
  • Loading branch information
DEMAxx committed Jun 18, 2024
2 parents 7439473 + 6d1c5ba commit 05d7ddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Helpers/DeliveryCalc.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ static function ($carry, $item) use ($package) {
$deliveryParam['type'] = Tariff::getTariffType($deliveryParam['tariff_code']);

$serviceList = Helper::getServices($deliveryMethod, $deliveryParam['tariff_code']);

if (!empty($serviceList)) {
$deliveryParam['services'] = $serviceList;
$deliveryParam['services'] = array_merge($serviceList, $deliveryParam['services']);
}

$tariffInfo = $api->calculateTariff($deliveryParam);
Expand Down

0 comments on commit 05d7ddb

Please sign in to comment.