final-duplicated-invoice-debug

This commit is contained in:
edmondlang
2023-04-01 19:34:30 +08:00
parent c976319521
commit 982a7c1d44
+3 -3
View File
@@ -971,8 +971,8 @@ Route::get('/final-duplicated-invoice-debug', function(){
<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" >Reveiver</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>
<th style="border: 1px solid black" >Count</th>
<th style="border: 1px solid black" >Invoice Ids</th>
@@ -985,15 +985,15 @@ foreach ($duplicatedTransactions as $transaction) {
$order_reference = $duplicatedInvoice->first()->owner->owner->reference ?? null;
if ($transaction->type = TransactionType::PAYMENT) {
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">' . '<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">' . '<a target="_blank" href="'.route('order.show', $order_reference).'">'. $order_reference .'</a>' . '</td>';
echo '<td style="border: 1px solid black">' . $transactionType[$transaction->type] . '</td>';
echo '<td style="border: 1px solid black">' . count($transactionIds) . '</td>';
echo '<td style="border: 1px solid black">';