update july xpo and pi

This commit is contained in:
Omair Saleh
2022-09-27 11:31:44 +08:00
parent ae4260dd15
commit bf18a18f1d
@@ -64,7 +64,7 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
*/
public function logic(Request $request) : JsonResponse
{
$bookings = Booking::where(function($query){
$bookings = Booking::where('service_id', '!=', 4)->where(function($query){
return $query->whereMonth('created_at', 07)->whereYear('created_at', 2022);
})->whereDoesntHave('transactions', function($q){
$q->where('type', TransactionType::PURCHASE_ORDER);