mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-09-01 10:54:00 +00:00
fix invoice bugs
This commit is contained in:
+2
-2
@@ -121,7 +121,7 @@ Route::get('/transfer/{marking}/latest-invoice', function ($marking) {
|
||||
$transaction = $booking->transactions()
|
||||
->where('type', TransactionType::PAYMENT)
|
||||
->latest()->get()[0];
|
||||
|
||||
|
||||
$supplier = Company::where('id', $transaction->receiver)->first();
|
||||
|
||||
$lowercaseDocumentType = strtolower(DocumentType::INVOICE);
|
||||
@@ -486,7 +486,7 @@ Route::get('/payments/manual', function(){
|
||||
|
||||
Route::get('/invoice/fix', function(){
|
||||
|
||||
set_time_limit(1800);
|
||||
set_time_limit(14400);
|
||||
$bookings = Booking::where('status', ApprovalStatus::COMPLETED)->whereDate('updated_at', '>=', Carbon::parse('01-01-2023'))->get();
|
||||
|
||||
foreach($bookings as $booking){
|
||||
|
||||
Reference in New Issue
Block a user