mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-23 14:34:19 +00:00
estimate container shipping cost
This commit is contained in:
+2
-2
@@ -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>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user