mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
final-duplicated-invoice-debug
This commit is contained in:
+8
-4
@@ -969,8 +969,8 @@ Route::get('/final-duplicated-invoice-debug', function(){
|
||||
|
||||
echo '<table style="width: 100%; text-align: center; border: 1px solid black">
|
||||
<tr>
|
||||
<th style="border: 1px solid black" >Owner Type</th>
|
||||
<th style="border: 1px solid black" >Owner Id</th>
|
||||
<!-- <th style="border: 1px solid black" >Owner Type</th> -->
|
||||
<!-- <th style="border: 1px solid black" >Owner Id</th> -->
|
||||
<th style="border: 1px solid black" >Order</th>
|
||||
<th style="border: 1px solid black" >Reveiver</th>
|
||||
<th style="border: 1px solid black" >Transaction type</th>
|
||||
@@ -985,9 +985,13 @@ foreach ($duplicatedTransactions as $transaction) {
|
||||
|
||||
$order_reference = $duplicatedInvoice->first()->owner->owner->reference ?? null;
|
||||
|
||||
if ($transaction->type = TransactionType::PAYMENT) {
|
||||
$order_reference = $duplicatedInvoice->first()->owner->owner->owner->reference ?? null;
|
||||
}
|
||||
|
||||
echo '<tr>';
|
||||
echo '<td style="border: 1px solid black">' . $transaction->owner_type . '</td>';
|
||||
echo '<td style="border: 1px solid black">' . $transaction->owner_id . '</td>';
|
||||
// echo '<td style="border: 1px solid black">' . $transaction->owner_type . '</td>';
|
||||
// echo '<td style="border: 1px solid black">' . $transaction->owner_id . '</td>';
|
||||
echo '<td style="border: 1px solid black">' . '<a target="_blank" href="'.route('order.show', $order_reference).'">'. $order_reference .'</a>' . '</td>';
|
||||
echo '<td style="border: 1px solid black">' . $transaction->receiver . '</td>';
|
||||
echo '<td style="border: 1px solid black">' . $transactionType[$transaction->type] . '</td>';
|
||||
|
||||
Reference in New Issue
Block a user