1
0
forked from poc/pds

Add notification sound dispatches in processInvoice and processSerialNumber methods for better user feedback

This commit is contained in:
dhanabalan
2025-09-16 15:01:52 +05:30
parent 012ce6d865
commit 40ef91a60b

View File

@@ -111,6 +111,7 @@ class CreateInvoiceValidation extends CreateRecord
->info()
->seconds(1)
->send();
$this->dispatch('playNotificationSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -146,6 +147,7 @@ class CreateInvoiceValidation extends CreateRecord
->warning()
->seconds(2)
->send();
$this->dispatch('playNotificationSound');
$filename = $invoiceNumber . '.xlsx';
$directory = 'uploads/temp';
@@ -165,6 +167,7 @@ class CreateInvoiceValidation extends CreateRecord
->info()
->seconds(1)
->send();
$this->dispatch('playNotificationSound');
// $hasRecords = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null;
// $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); //$this->invoiceNumber
$this->dispatch('refreshMaterialInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId);
@@ -191,6 +194,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -254,6 +258,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Uploaded Excel sheet is empty or<br>contains no valid data.')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
}
@@ -269,6 +274,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -285,6 +291,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -301,6 +308,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -333,6 +341,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -363,6 +372,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -388,6 +398,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -453,6 +464,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
};
$showValidationNotification($nonNumericQtyCodes, "The following item codes contains invalid bundle quantity:");
@@ -698,6 +710,7 @@ class CreateInvoiceValidation extends CreateRecord
->success()
->seconds(1)
->send();
Notification::make()
->title("Start the scanning process!")
->body("'$inserted' new material invoice records were inserted.")
@@ -705,6 +718,7 @@ class CreateInvoiceValidation extends CreateRecord
// ->success()
->seconds(1)
->send();
$this->dispatch('playNotificationSound');
// Update total quantity in the form
$totalQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->count();
@@ -742,6 +756,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$totalQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->count();
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->whereNotNull('serial_number')->where('serial_number', '!=', '')->where('plant_id', $plantId)->count();
@@ -771,6 +786,7 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -805,6 +821,7 @@ class CreateInvoiceValidation extends CreateRecord
->warning()
->seconds(2)
->send();
$this->dispatch('playNotificationSound');
$filename = $invoiceNumber . '.xlsx';
$directory = 'uploads/temp';
@@ -815,6 +832,7 @@ class CreateInvoiceValidation extends CreateRecord
//$fullPath = $disk->path($filePath);
$disk->delete($filePath);
}
$this->dispatch('playNotificationSound');
$this->dispatch('refreshCompletedInvoice', invoiceNumber: $invoiceNumber, plantId: $plantId, isSerial: true);
}
else
@@ -824,6 +842,7 @@ class CreateInvoiceValidation extends CreateRecord
->info()
->seconds(1)
->send();
$this->dispatch('playNotificationSound');
$this->dispatch('refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId);
if($updateStatus == '1')
@@ -851,6 +870,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -922,6 +942,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -939,6 +960,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
}
@@ -971,6 +994,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
}
@@ -1000,6 +1025,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1024,6 +1050,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1048,6 +1075,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1065,6 +1093,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
}
@@ -1080,6 +1110,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1097,6 +1128,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
}
@@ -1176,6 +1209,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(1)
->send();
$this->dispatch('playNotificationSound');
// Update total quantity in the form
$totalQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->count();
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('scanned_status', 'Scanned')->where('plant_id', $plantId)->count();
@@ -1213,6 +1248,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$totalQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->count();
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('scanned_status', 'Scanned')->where('plant_id', $plantId)->count();
@@ -1241,6 +1277,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -1279,7 +1317,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -1298,7 +1336,9 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
return;
}
// Extract filename without extension (e.g., "3RA0018732")
@@ -1311,6 +1351,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
return;
}
@@ -1340,6 +1381,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
}
@@ -1444,6 +1487,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Uploaded Excel sheet is empty or<br>contains no valid data.')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
}
@@ -1459,6 +1503,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1475,6 +1520,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1492,6 +1538,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
}
@@ -1523,6 +1571,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1553,7 +1602,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
}
@@ -1577,6 +1626,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1636,6 +1686,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
};
$showValidationNotification($nonNumericQtyCodes, "The following item codes contains invalid bundle quantity:");
@@ -1888,6 +1939,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1904,6 +1956,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1946,6 +1999,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -1976,6 +2030,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -2000,6 +2055,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -2024,6 +2080,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -2040,6 +2097,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -2056,6 +2114,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -2072,6 +2131,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -2089,6 +2149,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -2133,6 +2194,7 @@ class CreateInvoiceValidation extends CreateRecord
// ->success()
->seconds(1)
->send();
$this->dispatch('playNotificationSound');
// Update total quantity in the form
$totalQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->count();
@@ -2171,6 +2233,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$totalQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->count();
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('scanned_status', 'Scanned')->where('plant_id', $plantId)->count();
@@ -2198,6 +2261,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
if ($disk->exists($filePath)) {
$disk->delete($filePath);
@@ -2261,6 +2325,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2285,6 +2350,7 @@ class CreateInvoiceValidation extends CreateRecord
->warning()
->seconds(2)
->send();
$this->dispatch('playNotificationSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2344,6 +2410,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Scan valid Material QR code proceed!<br>Sample formats are:<br>123456|12345|12345678|1/1 (or)<br>123456|12345|12345678|1 (or)<br>123456|12345678-1')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2363,6 +2430,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Scan valid Material QR code proceed!<br>Sample formats are:<br>123456|12345|12345678|1/1 (or)<br>123456|12345|12345678|1 (or)<br>123456|12345678-1')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2382,6 +2450,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Scan valid Material QR code proceed!<br>Sample formats are:<br>123456|12345|12345678|1/1 (or)<br>123456|12345|12345678|1 (or)<br>123456|12345678-1')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2408,6 +2477,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Scan valid Material QR code proceed!<br>Sample formats are:<br>123456|12345|12345678|1/1 (or)<br>123456|12345|12345678|1 (or)<br>123456|12345678-1')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2427,6 +2497,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Scan valid Material QR code proceed!<br>Sample formats are:<br>123456|12345|12345678|1/1 (or)<br>123456|12345|12345678|1 (or)<br>123456|12345678-1')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2453,6 +2524,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Scan valid Material QR code proceed!<br>Sample formats are:<br>123456|12345|12345678|1/1 (or)<br>123456|12345|12345678|1 (or)<br>123456|12345678-1')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2472,6 +2544,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Scan valid Material QR code proceed!<br>Sample formats are:<br>123456|12345|12345678|1/1 (or)<br>123456|12345|12345678|1 (or)<br>123456|12345678-1')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2497,6 +2570,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(1)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -2520,6 +2595,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2543,6 +2619,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2565,6 +2642,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2592,7 +2670,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -2618,6 +2696,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2639,6 +2718,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2661,6 +2741,7 @@ class CreateInvoiceValidation extends CreateRecord
->body('Scan valid Quantity Material QR code proceed!<br>Ex:123456|12345|12345678|1/1')
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2722,6 +2803,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -2751,6 +2833,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -2790,6 +2874,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playNotificationSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -2835,6 +2921,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playNotificationSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -2878,6 +2966,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -2911,12 +3001,14 @@ class CreateInvoiceValidation extends CreateRecord
if (!$record) {
Notification::make()
->title('Serial Number Not Found')
->body("Serial '$serialNumber' not found in database for choosed plant.")
->title('<b><span style="color:red;">Serial Number Not Found<br>Serial \''.$serialNumber.'\' not found in database for choosed plant.</span></b>')
// ->body("Serial '$serialNumber' not found in database for choosed plant.")..........
->danger()
->seconds(2)
->send();
$this->dispatch('play-warn-sound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -2933,12 +3025,14 @@ class CreateInvoiceValidation extends CreateRecord
if (!$record) {
Notification::make()
->title('Unknown: Serial Number')
->body("Serial '$serialNumber' not found in invoice.")
->title('<b><span style="color:red;">Unknown: Serial Number<br>Serial \''.$serialNumber.'\' not found in invoice.</span></b>')
// ->body("Serial '$serialNumber' not found in invoice.")
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -2965,6 +3059,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -2995,6 +3091,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -3015,6 +3113,8 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -3035,6 +3135,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -3097,6 +3199,8 @@ class CreateInvoiceValidation extends CreateRecord
->success()
->seconds(2)
->send();
$this->dispatch('playNotificationSound');
$filename = $invoiceNumber . '.xlsx';
$directory = 'uploads/temp';
@@ -3126,6 +3230,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -3144,6 +3250,7 @@ class CreateInvoiceValidation extends CreateRecord
->danger()
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
@@ -3208,6 +3315,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playNotificationSound');
$filename = $invoiceNumber . '.xlsx';
$directory = 'uploads/temp';
$disk = Storage::disk('local');
@@ -3238,6 +3347,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -3257,6 +3368,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -3297,6 +3410,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -3316,6 +3431,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playWarnSound');
$this->form->fill([
'plant_id' => $plantId,
'invoice_number' => $invoiceNumber,
@@ -3379,6 +3496,8 @@ class CreateInvoiceValidation extends CreateRecord
->seconds(2)
->send();
$this->dispatch('playNotificationSound');
$filename = $invoiceNumber . '.xlsx';
$directory = 'uploads/temp';
$disk = Storage::disk('local');