Merge pull request 'allowed for typing in production order in panel box' (#847) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Reviewed-on: #847
This commit was merged in pull request #847.
This commit is contained in:
@@ -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