# Invoices
admin_order_invoices:
  path: /
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Order\InvoicesController::indexAction'
    _legacy_controller: AdminInvoices
    _legacy_link: AdminInvoices

# Process Invoice Options form
admin_order_invoices_process:
  path: /
  methods: [ PATCH, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Order\InvoicesController::processAction'
    _legacy_controller: AdminInvoices
    _legacy_link: AdminInvoices:update

# Generate PDF by date
admin_order_invoices_generate_by_date:
  path: /by_date
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Order\InvoicesController::generatePdfByDateAction'
    _legacy_controller: AdminInvoices
    _legacy_link: AdminInvoices:submitAddinvoice_date

# Generate PDF by status
admin_order_invoices_generate_by_status:
  path: /by_status
  methods: [ POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Order\InvoicesController::generatePdfByStatusAction'
    _legacy_controller: AdminInvoices
    _legacy_link: AdminInvoices:submitAddinvoice_status

admin_order_invoices_generate_by_id:
  path: /{invoiceId}/generate
  methods: [ GET ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Sell\Order\InvoicesController::generatePdfByIdAction'
    _legacy_controller: AdminInvoices
  requirements:
    invoiceId: \d+
