Import solar cell purchase data from Excel file into database
/var/www/fullsolar.mac.in.th/resources/CELL.xlsx
The file CELL.xlsx is already in the resources folder
Access: import_excel_web.php
The import script will automatically detect and map these columns:
| Excel Column (Examples) | Database Field | Required |
|---|---|---|
| PO Number, Purchase Order, PO | purchase_order_no | Yes |
| Supplier, Supplier Name | supplier_id/name | Optional |
| Cell Type, Cell Name | cell_type_id/name | Optional |
| Date, Purchase Date, วันที่ | purchase_date | Optional |
| Quantity, Qty, จำนวน | quantity | Yes |
| Price, Unit Price, ราคา | unit_price | Yes |
| Invoice, Invoice No | invoice_no | Optional |
| Batch, Batch No, Lot | batch_no | Optional |
| Warehouse, Location, คลัง | warehouse_location | Optional |
| Status, สถานะ | quality_status | Optional |
| Notes, Remark, หมายเหตุ | notes | Optional |
Run this single command to import your data: