tambah kolom import drugs
This commit is contained in:
@@ -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++;
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class Drug extends Model
|
|||||||
'remark',
|
'remark',
|
||||||
'selling_unit_id',
|
'selling_unit_id',
|
||||||
'status',
|
'status',
|
||||||
|
'price',
|
||||||
'active',
|
'active',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user