tambah kolom import drugs

This commit is contained in:
Linksehat Staging Server
2024-06-03 09:08:11 +07:00
parent 6ce4282a3b
commit 5e0d0cac1b
2 changed files with 7 additions and 6 deletions

View File

@@ -149,7 +149,6 @@ class DrugController extends Controller
$data = Excel::toArray([], $file); $data = Excel::toArray([], $file);
$processedData = $this->processCategoryNames($data); $processedData = $this->processCategoryNames($data);
$importedRows = 0; $importedRows = 0;
$failedRows = []; $failedRows = [];
@@ -170,6 +169,7 @@ class DrugController extends Controller
'type' => $row['type'], 'type' => $row['type'],
'dosage' => $row['dosage'], 'dosage' => $row['dosage'],
'remark' => $row['remark'], 'remark' => $row['remark'],
'price' => $row['price'],
] ]
); );
$importedRows++; $importedRows++;

View File

@@ -26,6 +26,7 @@ class Drug extends Model
'remark', 'remark',
'selling_unit_id', 'selling_unit_id',
'status', 'status',
'price',
'active', 'active',
]; ];