Merge branch 'fix-regenerate-bulk-invoice' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into development

This commit is contained in:
edmondlang
2023-09-06 17:56:33 +08:00
+1
View File
@@ -495,6 +495,7 @@ Route::get('/invoice/fix', function(){
Booking::where('status', ApprovalStatus::COMPLETED)
->whereDate('updated_at', '>=', Carbon::parse('01-01-2023'))
->whereDate('created_at', '<', Carbon::parse('06-09-2023'))
->orderBy('id')
->chunk(100, function ($bookings) use ($processed_invoice){
foreach ($bookings as $booking) {