mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-21 21:43:57 +00:00
show only purchase orders for bookings with confirmed payments
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user