Merge pull request 'Added notification in bulk sticker printing page' (#1276) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 19s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 19s
Reviewed-on: #1276
This commit was merged in pull request #1276.
This commit is contained in:
@@ -171,10 +171,10 @@ class BulkStickerPrinting extends Page implements HasForms
|
|||||||
->where('item_id', $item->id)
|
->where('item_id', $item->id)
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
if (! $stickerMappings) {
|
if ($stickerMappings->isEmpty()) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Sticker mapping not found')
|
->title('Sticker mapping not found')
|
||||||
->body("No sticker mapping found for this plant and class characteristic.")
|
->body("No sticker mapping found for item '$itemCode' and plant '$plantName'.")
|
||||||
->danger()
|
->danger()
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user