show only purchase orders for bookings with confirmed payments

This commit is contained in:
Omair Saleh
2022-09-30 04:41:22 +08:00
parent 4b2f891ee9
commit 93560f841b
2 changed files with 2 additions and 2 deletions
@@ -18,6 +18,6 @@ class HasPaymentStatusIn implements Filter
{
return $builder->whereHas('transactions', function($query) use($value) {
return $query->where('transactions.type', TransactionType::PAYMENT)->where('transactions.status', $value);
})->dd();
});
}
}
@@ -88,7 +88,7 @@
</list-component>
</div>
<div class="row tabsContainer tabContent m-l-0 m-r-0 hide" tab-name="approved">
<list-component key="2" section="poApprovedSection" :endpoint="route('api.booking.list')" :options="{per_page: 10, ServiceId: 4, status_in:[2, 3], has_payment_status_in: [2, 3], has_purchase_order_status_in: [2]}">
<list-component key="2" section="poApprovedSection" :endpoint="route('api.booking.list')" :options="{per_page: 10, ServiceId: 4, status_in:[2, 3], has_payment_status_in: [2, 3], has_purchase_order_status_in: [2, 3]}">
<template slot="list" slot-scope="{data}">
<booking-component :data="data"></booking-component>
</template>