1
0
forked from poc/pds

allowed for typing in production order in panel box

This commit is contained in:
dhanabalan
2026-07-21 12:23:56 +05:30
parent 59eae005eb
commit 1d3411e033

View File

@@ -143,7 +143,7 @@ class PanelBoxValidationResource extends Resource
->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'))) {
$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('sticker_master_id', null);
$set('uom', null);