Add routes for reports #99

This commit is contained in:
Kendrick Chan 2018-05-08 03:55:27 +08:00
parent 1cc1a92853
commit 1c868d15c8

81
config/routes/report.yaml Normal file
View file

@ -0,0 +1,81 @@
# reports
# dispatch
report_dispatch_time:
path: /reports/dispatch-time
controller: App\Controller\ReportController::dispatchTimeForm
methods: [GET]
report_dispatch_time_submit:
path: /reports/dispatch-time
controller: App\Controller\ReportController::dispatchTimeSubmit
methods: [POST]
report_dispatch_time_generate:
path: /reports/dispatch-time/generate/{start_date}/{end_date}
controller: App\Controller\ReportController::dispatchTimeGenerate
methods: [GET]
# out of stock
report_out_of_stock:
path: /reports/out-of-stock
controller: App\Controller\ReportController::outOfStockForm
methods: [GET]
report_out_of_stock_submit:
path: /reports/out-of-stock
controller: App\Controller\ReportController::outOfStockSubmit
methods: [POST]
report_out_of_stock_generate:
path: /reports/out-of-stock/generate/{start_date}/{end_date}
controller: App\Controller\ReportController::outOfStockGenerate
methods: [GET]
# rejection
report_rejection:
path: /reports/rejection
controller: App\Controller\ReportController::rejectionForm
methods: [GET]
report_rejection_submit:
path: /reports/rejection
controller: App\Controller\ReportController::rejectionSubmit
methods: [POST]
report_rejection_generate:
path: /reports/rejection/generate/{start_date}/{end_date}
controller: App\Controller\ReportController::rejectionGenerate
methods: [GET]
# sales
report_sales:
path: /reports/sales
controller: App\Controller\ReportController::salesForm
methods: [GET]
report_sales_submit:
path: /reports/sales
controller: App\Controller\ReportController::salesSubmit
methods: [POST]
report_sales_generate:
path: /reports/sales/generate/{start_date}/{end_date}
controller: App\Controller\ReportController::salesGenerate
methods: [GET]
# service
report_service:
path: /reports/service
controller: App\Controller\ReportController::serviceForm
methods: [GET]
report_service_submit:
path: /reports/service
controller: App\Controller\ReportController::serviceSubmit
methods: [POST]
report_service_generate:
path: /reports/service/generate/{start_date}/{end_date}
controller: App\Controller\ReportController::serviceGenerate
methods: [GET]