estimate container shipping cost

This commit is contained in:
Omair Saleh
2022-12-01 18:41:17 +08:00
parent f2cc45303c
commit 0cb3bd6ce3
+2 -2
View File
@@ -533,7 +533,7 @@ Route::get('/container/billing/{month}/{year}', function($month, $year){
echo 'East Malaysia - ';
}
echo 'estimated cost:'.$cost;
echo '<br><br>';
echo '<br>';
if(!$invoice) {
echo '<p style="color: red">'.$packingList->reference .' Warning: no billing</p>';
@@ -554,7 +554,7 @@ Route::get('/container/billing/{month}/{year}', function($month, $year){
$containerTotalPaid += $payments->sum('amount');
echo '<span style="color: '.(($invoice->amount - $payments->sum('amount')) < 0.01 ? 'green' : 'red').'">'.$packingList->reference.' | Amount: '.$invoice->amount.' | Paid: '.$payments->sum('amount').' | Invoice Date: '.$invoice->created_at->format('d-m-Y'). (($invoice->amount - $payments->sum('amount')) < 0.01 ? '' : '('.$invoice->created_at->diffForHumans().')').'</span>';
echo '<br>';
echo '<br><br>';
}