final-duplicated-invoice-debug

This commit is contained in:
edmondlang
2023-04-01 19:19:48 +08:00
parent 145bf3263a
commit c976319521
+8 -4
View File
@@ -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>';