ranjith-dev #1059

Merged
jothi merged 2 commits from ranjith-dev into master 2026-09-21 04:14:38 +00:00
2 changed files with 9 additions and 2 deletions

View File

@@ -153,10 +153,14 @@ class CharacteristicApproverMasterImporter extends Importer
if (! is_numeric($apprDur1)) {
$warnMsg[] = 'Duration 1 must be a numeric value (HH.MM)!';
}
if ($apprDur2 != null && $apprDur2 != '' && ! is_numeric($apprDur2)) {
if ($apprDur2 == null || $apprDur2 == '') {
$apprDur2 = 0.00;
} elseif ($apprDur2 != null && $apprDur2 != '' && ! is_numeric($apprDur2)) {
$warnMsg[] = 'Duration 2 must be a numeric value (HH.MM)!';
}
if ($apprDur3 != null && $apprDur3 != '' && ! is_numeric($apprDur3)) {
if ($apprDur3 == null || $apprDur3 == '') {
$apprDur3 = 0.00;
} elseif ($apprDur3 != null && $apprDur3 != '' && ! is_numeric($apprDur3)) {
$warnMsg[] = 'Duration 3 must be a numeric value (HH.MM)!';
}

View File

@@ -117,6 +117,9 @@ class StickerDetailResource extends Resource
->prepend('Plant Name', 'plant_name')
->prepend('Plant Address', 'plant_address')
->prepend('Current Date', 'current_date')
->prepend('Tested By', 'tested_by')
->prepend('Verified By', 'verified_by')
->prepend('Approved By', 'approved_by')
->toArray()
),
Forms\Components\TextInput::make('string_value')