allowed for typing in production order in panel box #847

Merged
jothi merged 1 commits from ranjith-dev into master 2026-07-21 06:54:10 +00:00
Showing only changes of commit 1d3411e033 - Show all commits

View File

@@ -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);