allowed for typing in production order in panel box #847
@@ -143,7 +143,7 @@ class PanelBoxValidationResource extends Resource
|
|||||||
->afterStateUpdated(function (callable $set, callable $get, ?string $state) {
|
->afterStateUpdated(function (callable $set, callable $get, ?string $state) {
|
||||||
if (! is_numeric($get('production_order')) || ! preg_match('/^[1-9][0-9]{6,13}$/', $get('production_order'))) {
|
if (! is_numeric($get('production_order')) || ! preg_match('/^[1-9][0-9]{6,13}$/', $get('production_order'))) {
|
||||||
$set('prodOrdError', 'Must be a numeric value with 7 to 14 digits.');
|
$set('prodOrdError', 'Must be a numeric value with 7 to 14 digits.');
|
||||||
$set('production_order', null);
|
// $set('production_order', null);
|
||||||
$set('item_id', null);
|
$set('item_id', null);
|
||||||
$set('sticker_master_id', null);
|
$set('sticker_master_id', null);
|
||||||
$set('uom', null);
|
$set('uom', null);
|
||||||
|
|||||||
Reference in New Issue
Block a user