Added sucess msg after import sucess in class characteristic import
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
This commit is contained in:
@@ -2992,6 +2992,13 @@ class ClassCharacteristicResource extends Resource
|
||||
}
|
||||
}
|
||||
|
||||
if ($record) {
|
||||
Notification::make()
|
||||
->title('Import Successful')
|
||||
->body("{$insertedCount} records inserted successfully.")
|
||||
->success();
|
||||
}
|
||||
|
||||
$itemCharacteristic = ItemCharacteristic::where('plant_id', $plantId)->where('item_id', $item->id)->first();
|
||||
|
||||
if ($itemCharacteristic) {
|
||||
@@ -3137,18 +3144,11 @@ class ClassCharacteristicResource extends Resource
|
||||
'zmm_operating_temperature' => $itemCharacteristic->zmm_operating_temperature,
|
||||
'zmm_axial_force' => $itemCharacteristic->zmm_axial_force,
|
||||
]);
|
||||
}
|
||||
|
||||
$updatedCount++;
|
||||
}
|
||||
}
|
||||
|
||||
if ($record) {
|
||||
Notification::make()
|
||||
->title('Import Successful')
|
||||
->body("{$insertedCount} records inserted successfully and updated zmm values success for '{$updatedCount}' records.")
|
||||
->success();
|
||||
}
|
||||
}
|
||||
})
|
||||
->visible(function () {
|
||||
return Filament::auth()->user()->can('view import class characteristic serial');
|
||||
|
||||
Reference in New Issue
Block a user