From 91b14b38208b6c8fbf0ce39b59bd2aeb8bb470fc Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Fri, 2 Dec 2022 10:14:37 +0800 Subject: [PATCH] estimate container shipping cost --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index baea47a0..def212c8 100644 --- a/routes/web.php +++ b/routes/web.php @@ -506,11 +506,11 @@ Route::get('/container/billing/{month}/{year}', function($month, $year){ $cbm = round($packingList->packages->where('type', '!=', PackageType::OVER_WEIGHT)->sum(function($package) { return ($package->width / 100) * ($package->height / 100) *($package->length / 100) * ($package->quantity); - }), 3); + }), 2); $over_weight_cbm = round($packingList->packages->where('type', PackageType::OVER_WEIGHT)->sum(function($package) { return ($package->width / 100) * ($package->height / 100) *($package->length / 100) * ($package->quantity); - }), 3); + }), 2); $price = $basePrice; if($warehouseId === 2358){