mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 22:13:59 +00:00
fix 1688 xpo
This commit is contained in:
+9
-6
@@ -380,11 +380,14 @@ Route::get('/payments/manual', function(){
|
||||
});
|
||||
|
||||
Route::get('/1688/fix', function(){
|
||||
$purchaseOrderDocuments = \App\Models\Document::where('document_type', DocumentType::ECOMMERCE_PURCHASE_ORDER)->get();
|
||||
|
||||
foreach($purchaseOrderDocuments as $document){
|
||||
if($document->owner->status === ApprovalStatus::COMPLETED) continue;
|
||||
(App()->make(createPurchaseOrderFor1688OrderProcessor::class))->execute($document->owner);
|
||||
}
|
||||
Booking::where('service_id', 4)->where('status', 2)->whereHas('transactions', function($query){
|
||||
return $query->where('type', TransactionType::PURCHASE_ORDER);
|
||||
})->get();
|
||||
// $purchaseOrderDocuments = \App\Models\Document::where('document_type', DocumentType::ECOMMERCE_PURCHASE_ORDER)->get();
|
||||
//
|
||||
// foreach($purchaseOrderDocuments as $document){
|
||||
// if($document->owner->status === ApprovalStatus::COMPLETED) continue;
|
||||
// (App()->make(createPurchaseOrderFor1688OrderProcessor::class))->execute($document->owner);
|
||||
// }
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user