update july xpo and pi

This commit is contained in:
Omair Saleh
2022-09-27 11:24:19 +08:00
parent 709679d735
commit ae4260dd15
2 changed files with 3 additions and 3 deletions
@@ -65,7 +65,7 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
public function logic(Request $request) : JsonResponse
{
$bookings = Booking::where(function($query){
return $query->whereMonth('created_at', 06)->whereYear('created_at', 2022);
return $query->whereMonth('created_at', 07)->whereYear('created_at', 2022);
})->whereDoesntHave('transactions', function($q){
$q->where('type', TransactionType::PURCHASE_ORDER);
$q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);
@@ -111,4 +111,4 @@ class AutoPurchaseOrderFillLogic extends AbstractControllerLogic
return $this->response([]);
}
}
}
+1 -1
View File
@@ -203,7 +203,7 @@ Route::get('/transactions/supplier/{id}/mock_up', 'Transactions\DownloadMockUpWh
Route::get('/notifications/list', 'Notifications\ListNotificationsController@list')->name('notifications.list');
Route::get('/supplier/pi/export', function(){
$groups = \App\Models\Group::where('issuer', 2210)->whereMonth('created_at', 6)->whereYear('created_at', 2022)->get();
$groups = \App\Models\Group::where('issuer', 2210)->whereMonth('created_at', 7)->whereYear('created_at', 2022)->get();
echo '<table>';
$i = 0;