1688 PO Automation Project

This commit is contained in:
Dillon Ngo
2026-01-15 01:22:24 +08:00
parent 535ec855f8
commit 55ec070ccb
2 changed files with 3 additions and 4 deletions
@@ -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 dont refresh the page. The page will automatically update when the process is done.";
// $this->notificationMessage = "Please dont 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));
}
}