tambah kolom import drugs
This commit is contained in:
@@ -149,7 +149,6 @@ class DrugController extends Controller
|
||||
$data = Excel::toArray([], $file);
|
||||
|
||||
$processedData = $this->processCategoryNames($data);
|
||||
|
||||
$importedRows = 0;
|
||||
$failedRows = [];
|
||||
|
||||
@@ -170,6 +169,7 @@ class DrugController extends Controller
|
||||
'type' => $row['type'],
|
||||
'dosage' => $row['dosage'],
|
||||
'remark' => $row['remark'],
|
||||
'price' => $row['price'],
|
||||
]
|
||||
);
|
||||
$importedRows++;
|
||||
|
||||
@@ -26,6 +26,7 @@ class Drug extends Model
|
||||
'remark',
|
||||
'selling_unit_id',
|
||||
'status',
|
||||
'price',
|
||||
'active',
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user