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();
|
$itemCharacteristic = ItemCharacteristic::where('plant_id', $plantId)->where('item_id', $item->id)->first();
|
||||||
|
|
||||||
if ($itemCharacteristic) {
|
if ($itemCharacteristic) {
|
||||||
@@ -3137,16 +3144,9 @@ class ClassCharacteristicResource extends Resource
|
|||||||
'zmm_operating_temperature' => $itemCharacteristic->zmm_operating_temperature,
|
'zmm_operating_temperature' => $itemCharacteristic->zmm_operating_temperature,
|
||||||
'zmm_axial_force' => $itemCharacteristic->zmm_axial_force,
|
'zmm_axial_force' => $itemCharacteristic->zmm_axial_force,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$updatedCount++;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($record) {
|
$updatedCount++;
|
||||||
Notification::make()
|
|
||||||
->title('Import Successful')
|
|
||||||
->body("{$insertedCount} records inserted successfully and updated zmm values success for '{$updatedCount}' records.")
|
|
||||||
->success();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user