Merge remote-tracking branch 'origin/development' into development

# Conflicts:
#	app/Classes/Modules/Transactions/ControllersLogic/CreateBulkPurchaseOrderDocumentLogic.php
This commit is contained in:
omair saleh
2022-07-11 23:56:40 +08:00
21 changed files with 618 additions and 83 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', 01)->orWhereMonth('created_at', 02);
return $query->whereMonth('created_at', 03)->orWhereMonth('created_at', 04);
})->whereDoesntHave('transactions', function($q){
$q->where('type', TransactionType::PURCHASE_ORDER);
$q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);