Refactor code structure for improved readability and maintainability and Commented imported invoice logic on warning
This commit is contained in:
@@ -810,6 +810,7 @@ class InvoiceValidationResource extends Resource
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($uniqueaplhaMat)) {
|
if (!empty($uniqueaplhaMat)) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Invalid Material Quantity')
|
->title('Invalid Material Quantity')
|
||||||
@@ -822,6 +823,7 @@ class InvoiceValidationResource extends Resource
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($uniqueZeroMat)) {
|
if (!empty($uniqueZeroMat)) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Invalid Material Quantity')
|
->title('Invalid Material Quantity')
|
||||||
@@ -854,6 +856,7 @@ class InvoiceValidationResource extends Resource
|
|||||||
->danger() // This makes the notification red to indicate an error
|
->danger() // This makes the notification red to indicate an error
|
||||||
->body('Uploaded Excel sheet is empty or<br>contains no valid data.')
|
->body('Uploaded Excel sheet is empty or<br>contains no valid data.')
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($path)) {
|
if ($disk->exists($path)) {
|
||||||
$disk->delete($path);
|
$disk->delete($path);
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user