duplicate validation serial number logic against sticker id in bulk sticker printing page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Laravel Pint / pint (pull_request) Successful in 3m47s
Laravel Larastan / larastan (pull_request) Failing after 6m21s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Laravel Pint / pint (pull_request) Successful in 3m47s
Laravel Larastan / larastan (pull_request) Failing after 6m21s
This commit is contained in:
@@ -901,7 +901,7 @@ class BulkStickerPrinting extends Page implements HasForms
|
||||
}
|
||||
}
|
||||
|
||||
$updatePrintStatusCompleted = StickerOrder::where('plant_id', $plantId)->where('production_order', $pOrder)->where('from_serial_number', $fromSerNo)->where('to_serial_number', $toSerNo)->where('sticker_id', $stickerId)->where('print_status', 'Printed')->first();
|
||||
$updatePrintStatusCompleted = StickerOrder::where('plant_id', $plantId)->where('production_order', $pOrder)->where('sticker_id', $stickerId)->where('from_serial_number', $fromSerNo)->where('to_serial_number', $toSerNo)->where('sticker_id', $stickerId)->where('print_status', 'Printed')->first();
|
||||
|
||||
if ($updatePrintStatusCompleted) {
|
||||
Notification::make()
|
||||
@@ -914,6 +914,7 @@ class BulkStickerPrinting extends Page implements HasForms
|
||||
|
||||
$existingSticker = StickerOrder::where('plant_id', $plantId)
|
||||
->where('production_order', $pOrder)
|
||||
->where('sticker_id', $stickerId)
|
||||
->where('print_status', 'Printed')
|
||||
->where(function ($query) use ($fromSerNo, $toSerNo) {
|
||||
$query->whereIn('from_serial_number', [$fromSerNo, $toSerNo])
|
||||
@@ -1096,7 +1097,6 @@ class BulkStickerPrinting extends Page implements HasForms
|
||||
|
||||
return;
|
||||
}
|
||||
// dd($matchedMachineId);
|
||||
|
||||
$itemCharacteristic = ClassCharacteristic::where('plant_id', $plantId)
|
||||
->where('item_id', $itemCharacteristicId)
|
||||
|
||||
Reference in New Issue
Block a user