1
0
forked from poc/pds

Updated code visible func. and '3->quantity' in material type

This commit is contained in:
dhanabalan
2025-04-28 00:30:53 +05:30
parent f014d9fd42
commit 85329ff557

View File

@@ -82,7 +82,7 @@ class StickerMasterResource extends Resource
->nullable()
->searchable()
->reactive()
->disabled(fn (Get $get) => !empty($get('id')))
// ->disabled(fn (Get $get) => !empty($get('id')))
->live(debounce: 500) // Enable live updates
->afterStateUpdated(function ($state, callable $set, callable $get) {
@@ -179,6 +179,7 @@ class StickerMasterResource extends Resource
->options([
'1' => 'Individual',
'2' => 'Bundle',
'3' => 'Quantity',
])
->reactive()
->afterStateUpdated(function ($state, callable $set, callable $get) {
@@ -206,6 +207,7 @@ class StickerMasterResource extends Resource
->integer()
->readOnly(fn (callable $get) => $get('material_type') !== "2")
->nullable()
->minValue(2)
->reactive()
->afterStateUpdated(function ($state, callable $set,callable $get) {
if($get('material_type') !== "2")