mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
1688 PO Automation Project
This commit is contained in:
+2
-1
@@ -166,7 +166,8 @@ class ImportPurchaseOrderTransactionLogic extends AbstractControllerLogic
|
||||
if ($totalSize > $maxSize) {
|
||||
// ETLPurchaseOrderTransactionV2CommandJob::dispatch($base64FilesEN, $request->route('id'));
|
||||
$this->runAsJob($base64FilesEN, $request->route('id'));
|
||||
$this->notificationMessage = "Please don’t refresh the page. The page will automatically update when the process is done.";
|
||||
// $this->notificationMessage = "Please don’t refresh the page. The page will automatically update when the process is done.";
|
||||
$this->notificationMessage = "Please refresh page in a few minutes";
|
||||
return $this->response([]);
|
||||
}
|
||||
else{
|
||||
|
||||
@@ -151,9 +151,7 @@ class ETLPDFPurchaseOrderClaudeProcessor
|
||||
$this->createPurchaseOrderTransactionProcessor->execute($booking, $object, $append);
|
||||
|
||||
if($broadcast){
|
||||
$baseDelay = 5;
|
||||
$delaySeconds = ($index + 1) * $baseDelay;
|
||||
ETLPurchaseOrderTransactionCompleteV2CommandJob::dispatch(true, $bookingId)->delay(now()->addSeconds($delaySeconds));
|
||||
ETLPurchaseOrderTransactionCompleteV2CommandJob::dispatch(true, $bookingId)->delay(now()->addSeconds(20));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user