estimate container shipping cost

This commit is contained in:
Omair Saleh
2022-12-02 10:14:37 +08:00
parent 7dc549ab2e
commit 91b14b3820
+2 -2
View File
@@ -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) { $cbm = round($packingList->packages->where('type', '!=', PackageType::OVER_WEIGHT)->sum(function($package) {
return ($package->width / 100) * ($package->height / 100) *($package->length / 100) * ($package->quantity); 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) { $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); return ($package->width / 100) * ($package->height / 100) *($package->length / 100) * ($package->quantity);
}), 3); }), 2);
$price = $basePrice; $price = $basePrice;
if($warehouseId === 2358){ if($warehouseId === 2358){