Converted from durations to seconds to Notifications

This commit is contained in:
dhanabalan
2025-05-06 11:31:29 +05:30
parent 2477b88ea5
commit 504b110ff3

View File

@@ -196,7 +196,8 @@ class InvoiceDataTable extends Component
->title('Invalid Panel Box QR Format:')
->body('Scan the valid panel box QR code to proceed!')
->danger()
->duration(3000)
// ->duration(3000)
->seconds(2)
->send();
return;
}
@@ -216,7 +217,8 @@ class InvoiceDataTable extends Component
->title('Unknown: Panel Box Code')
->body("Unknown panel box code: $itemCode found for item code: $this->currentItemCode")
->danger()
->duration(4000)
// ->duration(4000)
->seconds(2)
->send();
$this->capacitorInput = '';
return;
@@ -304,7 +306,7 @@ class InvoiceDataTable extends Component
// ->title("Panel box code scanned: $itemCode")
->body("'Capacitor' QR scanned status updated, Scan next QR.")
->success()
->duration(3000)
->seconds(2)
->send();
$totalQuantity = InvoiceValidation::where('invoice_number', $matchingValidation->invoice_number)->where('plant_id', $this->plantId)->count();
@@ -323,6 +325,7 @@ class InvoiceDataTable extends Component
->title('Completed: Serial Invoice')
->body("Serial invoice '$matchingValidation->invoice_number' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
->success()
->seconds(2)
->send();
$this->loadCompletedData($matchingValidation->invoice_number, $matchingValidation->plant_id);
}