From 65c2d75c0462d88704eeb83854b7f3f0853ef583 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 8 Mar 2023 13:47:38 -0800 Subject: [PATCH] Added aliases Signed-off-by: snipe --- app/Http/Livewire/ImporterFile.php | 32 ++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/ImporterFile.php b/app/Http/Livewire/ImporterFile.php index e67f37f49..da0c723fd 100644 --- a/app/Http/Livewire/ImporterFile.php +++ b/app/Http/Livewire/ImporterFile.php @@ -106,8 +106,36 @@ class ImporterFile extends Component //array of "real fieldnames" to a list of aliases for that field static $aliases = [ - 'model_number' => ['model', 'model no','model no.','model number', 'model num', 'model num.'], - 'warranty_months' => ['Warranty', 'Warranty Months'] + 'model_number' => + [ + 'model', + 'model no', + 'model no.', + 'model number', + 'model num', + 'model num.' + ], + 'warranty_months' => + [ + 'Warranty', + 'Warranty Months' + ], + 'qty' => + [ + 'QTY', + 'Quantity' + ], + 'min_amt' => + [ + 'Min Amount', + 'Min QTY' + ], + 'next_audit_date' => + [ + 'Next Audit', + ], + + ]; private function getColumns($type)