Compare commits
4 Commits
a33c73c2f2
...
0cb0758f67
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0cb0758f67 | ||
|
|
123f67d9bc | ||
|
|
85746af6f7 | ||
|
|
8f95147a30 |
@@ -54,6 +54,8 @@ class InvoiceValidationExporter extends Exporter
|
|||||||
->label('BATCH NUMBER'),
|
->label('BATCH NUMBER'),
|
||||||
ExportColumn::make('quantity')
|
ExportColumn::make('quantity')
|
||||||
->label('QUANTITY'),
|
->label('QUANTITY'),
|
||||||
|
ExportColumn::make('operator_id')
|
||||||
|
->label('OPERATOR ID'),
|
||||||
ExportColumn::make('created_at')
|
ExportColumn::make('created_at')
|
||||||
->label('CREATED AT'),
|
->label('CREATED AT'),
|
||||||
//->dateTimeFormat('d-m-Y H:i:s'),
|
//->dateTimeFormat('d-m-Y H:i:s'),
|
||||||
@@ -64,8 +66,6 @@ class InvoiceValidationExporter extends Exporter
|
|||||||
->enabledByDefault(false)
|
->enabledByDefault(false)
|
||||||
->label('DELETED AT'),
|
->label('DELETED AT'),
|
||||||
//->dateTimeFormat('d-m-Y H:i:s'),
|
//->dateTimeFormat('d-m-Y H:i:s'),
|
||||||
ExportColumn::make('operator_id')
|
|
||||||
->label('OPERATOR ID'),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ class ItemExporter extends Exporter
|
|||||||
// Increment and return the row number
|
// Increment and return the row number
|
||||||
return ++$rowNumber;
|
return ++$rowNumber;
|
||||||
}),
|
}),
|
||||||
|
ExportColumn::make('plant.name')
|
||||||
|
->label('PLANT'),
|
||||||
ExportColumn::make('category')
|
ExportColumn::make('category')
|
||||||
->label('CATEGORY'),
|
->label('CATEGORY'),
|
||||||
ExportColumn::make('code')
|
ExportColumn::make('code')
|
||||||
@@ -34,8 +36,6 @@ class ItemExporter extends Exporter
|
|||||||
->label('HOURLY QUANTITY'),
|
->label('HOURLY QUANTITY'),
|
||||||
ExportColumn::make('uom')
|
ExportColumn::make('uom')
|
||||||
->label('UNIT OF MEASURE'),
|
->label('UNIT OF MEASURE'),
|
||||||
ExportColumn::make('plant.name')
|
|
||||||
->label('PLANT'),
|
|
||||||
ExportColumn::make('created_at')
|
ExportColumn::make('created_at')
|
||||||
->label('CREATED AT'),
|
->label('CREATED AT'),
|
||||||
ExportColumn::make('updated_at')
|
ExportColumn::make('updated_at')
|
||||||
|
|||||||
@@ -13,85 +13,92 @@ class MotorTestingMasterExporter extends Exporter
|
|||||||
|
|
||||||
public static function getColumns(): array
|
public static function getColumns(): array
|
||||||
{
|
{
|
||||||
|
static $rowNumber = 0;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
ExportColumn::make('no')
|
ExportColumn::make('no')
|
||||||
->label('No')
|
->label('NO')
|
||||||
->state(function ($record) use (&$rowNumber) {
|
->state(function ($record) use (&$rowNumber) {
|
||||||
// Increment and return the row number
|
// Increment and return the row number
|
||||||
return ++$rowNumber;
|
return ++$rowNumber;
|
||||||
}),
|
}),
|
||||||
ExportColumn::make('plant.name')
|
ExportColumn::make('plant.name')
|
||||||
->label('Plant'),
|
->label('PLANT'),
|
||||||
|
ExportColumn::make('item.category')
|
||||||
|
->label('CATEGORY'),
|
||||||
ExportColumn::make('item.code')
|
ExportColumn::make('item.code')
|
||||||
->label('Item Code'),
|
->label('ITEM CODE'),
|
||||||
|
ExportColumn::make('item.description')
|
||||||
|
->label('DESCRIPTION'),
|
||||||
ExportColumn::make('isi_model')
|
ExportColumn::make('isi_model')
|
||||||
->label('ISI Model'),
|
->label('ISI MODEL'),
|
||||||
ExportColumn::make('phase')
|
ExportColumn::make('phase')
|
||||||
->label('Phase'),
|
->label('PHASE'),
|
||||||
ExportColumn::make('hp')
|
ExportColumn::make('hp')
|
||||||
->label('HP'),
|
->label('HP'),
|
||||||
ExportColumn::make('kw')
|
ExportColumn::make('kw')
|
||||||
->label('KW'),
|
->label('KW'),
|
||||||
ExportColumn::make('volt')
|
ExportColumn::make('volt')
|
||||||
->label('Volt'),
|
->label('VOLT'),
|
||||||
ExportColumn::make('current')
|
ExportColumn::make('current')
|
||||||
->label('Current'),
|
->label('CURRENT'),
|
||||||
ExportColumn::make('rpm')
|
ExportColumn::make('rpm')
|
||||||
->label('RPM'),
|
->label('RPM'),
|
||||||
ExportColumn::make('torque')
|
ExportColumn::make('torque')
|
||||||
->label('Torque'),
|
->label('TORQUE'),
|
||||||
ExportColumn::make('frequency')
|
ExportColumn::make('frequency')
|
||||||
->label('Frequency'),
|
->label('FREQUENCY'),
|
||||||
ExportColumn::make('connection')
|
ExportColumn::make('connection')
|
||||||
->label('Connection'),
|
->label('CONNECTION'),
|
||||||
ExportColumn::make('ins_res_limit')
|
ExportColumn::make('ins_res_limit')
|
||||||
->label('Insulation Resistance Limit'),
|
->label('INSULATION RESISTANCE LIMIT'),
|
||||||
ExportColumn::make('ins_res_type')
|
ExportColumn::make('ins_res_type')
|
||||||
->label('Insulation Resistance Type'),
|
->label('INSULATION RESISTANCE TYPE'),
|
||||||
ExportColumn::make('routine_test_time')
|
ExportColumn::make('routine_test_time')
|
||||||
->label('Routine Test Time'),
|
->label('ROUTINE TEST TIME'),
|
||||||
ExportColumn::make('res_ry_ll')
|
ExportColumn::make('res_ry_ll')
|
||||||
->label('Resistance RY LL'),
|
->label('RESISTANCE RY LL'),
|
||||||
ExportColumn::make('res_ry_ul')
|
ExportColumn::make('res_ry_ul')
|
||||||
->label('Resistance RY UL'),
|
->label('RESISTANCE RY UL'),
|
||||||
ExportColumn::make('res_yb_ll')
|
ExportColumn::make('res_yb_ll')
|
||||||
->label('Resistance YB LL'),
|
->label('RESISTANCE YB LL'),
|
||||||
ExportColumn::make('res_yb_ul')
|
ExportColumn::make('res_yb_ul')
|
||||||
->label('Resistance YB UL'),
|
->label('RESISTANCE YB UL'),
|
||||||
ExportColumn::make('res_br_ll')
|
ExportColumn::make('res_br_ll')
|
||||||
->label('Resistance BR LL'),
|
->label('RESISTANCE BR LL'),
|
||||||
ExportColumn::make('res_br_ul')
|
ExportColumn::make('res_br_ul')
|
||||||
->label('Resistance BR UL'),
|
->label('RESISTANCE BR UL'),
|
||||||
ExportColumn::make('lock_volt_limit')
|
ExportColumn::make('lock_volt_limit')
|
||||||
->label('Lock Volt Limit'),
|
->label('LOCK VOLT Limit'),
|
||||||
ExportColumn::make('leak_cur_limit')
|
ExportColumn::make('leak_cur_limit')
|
||||||
->label('Leak Current Limit'),
|
->label('Leak CURRENT Limit'),
|
||||||
ExportColumn::make('lock_cur_ll')
|
ExportColumn::make('lock_cur_ll')
|
||||||
->label('Lock Current LL'),
|
->label('LOCK CURRENT LL'),
|
||||||
ExportColumn::make('lock_cur_ul')
|
ExportColumn::make('lock_cur_ul')
|
||||||
->label('Lock Current UL'),
|
->label('LOCK CURRENT UL'),
|
||||||
ExportColumn::make('noload_cur_ll')
|
ExportColumn::make('noload_cur_ll')
|
||||||
->label('No Load Current LL'),
|
->label('NO LOAD CURRENT LL'),
|
||||||
ExportColumn::make('noload_cur_ul')
|
ExportColumn::make('noload_cur_ul')
|
||||||
->label('No Load Current UL'),
|
->label('NO LOAD CURRENT UL'),
|
||||||
ExportColumn::make('noload_pow_ll')
|
ExportColumn::make('noload_pow_ll')
|
||||||
->label('No Load Power LL'),
|
->label('NO LOAD POWER LL'),
|
||||||
ExportColumn::make('noload_pow_ul')
|
ExportColumn::make('noload_pow_ul')
|
||||||
->label('No Load Power UL'),
|
->label('NO LOAD POWER UL'),
|
||||||
ExportColumn::make('noload_spd_ll')
|
ExportColumn::make('noload_spd_ll')
|
||||||
->label('No Load Speed LL'),
|
->label('NO LOAD SPEED LL'),
|
||||||
ExportColumn::make('noload_spd_ul')
|
ExportColumn::make('noload_spd_ul')
|
||||||
->label('No Load Speed UL'),
|
->label('NO LOAD SPEED UL'),
|
||||||
ExportColumn::make('created_at')
|
ExportColumn::make('created_at')
|
||||||
->label('Created At'),
|
->label('CREATED AT'),
|
||||||
ExportColumn::make('updated_at')
|
|
||||||
->label('Updated At'),
|
|
||||||
ExportColumn::make('deleted_at')
|
|
||||||
->label('Deleted At'),
|
|
||||||
ExportColumn::make('created_by')
|
ExportColumn::make('created_by')
|
||||||
->label('Created By'),
|
->label('CREATED BY'),
|
||||||
|
ExportColumn::make('updated_at')
|
||||||
|
->label('UPDATED AT'),
|
||||||
ExportColumn::make('updated_by')
|
ExportColumn::make('updated_by')
|
||||||
->label('Updated By'),
|
->label('UPDATED BY'),
|
||||||
|
ExportColumn::make('deleted_at')
|
||||||
|
->enabledByDefault(false)
|
||||||
|
->label('DELETED AT'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -649,7 +649,25 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
// $this->Checking = session('latestPalletSerials');
|
// $this->Checking = session('latestPalletSerials');
|
||||||
$operatorName = Filament::auth()->user()->name;
|
$operatorName = Filament::auth()->user()->name;
|
||||||
|
|
||||||
$plantId = trim($plantId) ?? null;
|
if (count($this->records) <= 0)
|
||||||
|
{
|
||||||
|
Notification::make()
|
||||||
|
->title('Locator Serials Not Found')
|
||||||
|
->body("Add some locator serial numbers to proceed generate pallet..!")
|
||||||
|
->danger()
|
||||||
|
->seconds(3)
|
||||||
|
->send();
|
||||||
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
|
$this->form->fill([
|
||||||
|
'plant_id' => $plantId,
|
||||||
|
'plant' => $plantId,
|
||||||
|
'scan_locator_number' => $locatorNo,
|
||||||
|
'scan_serial_number' => $serialNo,
|
||||||
|
'scan_remove_sno' => $removeSerial,
|
||||||
|
'sno_quantity' => 0,
|
||||||
|
]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$year = now()->format('y');
|
$year = now()->format('y');
|
||||||
$month = now()->format('m');
|
$month = now()->format('m');
|
||||||
@@ -678,26 +696,6 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
}));
|
}));
|
||||||
JS);
|
JS);
|
||||||
|
|
||||||
if (count($this->records) <= 0)
|
|
||||||
{
|
|
||||||
Notification::make()
|
|
||||||
->title('Locator Serials Not Found')
|
|
||||||
->body("Add some locator serial numbers to proceed generate pallet..!")
|
|
||||||
->danger()
|
|
||||||
->seconds(3)
|
|
||||||
->send();
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
|
||||||
$this->form->fill([
|
|
||||||
'plant_id' => $plantId,
|
|
||||||
'plant' => $plantId,
|
|
||||||
'scan_locator_number' => $locatorNo,
|
|
||||||
'scan_serial_number' => $serialNo,
|
|
||||||
'scan_remove_sno' => $removeSerial,
|
|
||||||
'sno_quantity' => 0,
|
|
||||||
]);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// $affected = PalletValidation::where('locator_number', $locatorNo)
|
// $affected = PalletValidation::where('locator_number', $locatorNo)
|
||||||
// ->where('plant_id', $plantId)
|
// ->where('plant_id', $plantId)
|
||||||
// ->whereIn('serial_number', $this->Checking)
|
// ->whereIn('serial_number', $this->Checking)
|
||||||
|
|||||||
Reference in New Issue
Block a user