Files
internship_node/day5
2022-02-06 21:41:19 -05:00
..
2022-02-06 21:04:04 -05:00
2022-02-06 21:04:04 -05:00
2022-02-06 21:04:04 -05:00
2022-02-06 21:04:04 -05:00
2022-02-06 21:41:19 -05:00
2022-02-06 21:04:04 -05:00
2022-02-06 21:04:04 -05:00
2022-02-06 21:04:04 -05:00
2022-02-06 21:04:04 -05:00

day 5

Instructions

transaction
- id
- order_id
- user_id
- shipping_dock_id
- amount
- discount
- tax
- total
- notes
- status (paid, not paid) (integer mapping)

- Make a page called /import that there a button to import excel or CSV file
- When form submitted, it calls /api/v1/import with file
- Write the data into transaction table. If errors, report error to user

- Make an api called /api/v1/export that will export the transaction table as csv

- Everything must be done by end of date