Skip to content

Commit

Permalink
Add order number, state, shipping method, created at and exported at …
Browse files Browse the repository at this point in the history
…filters (#26)

* Update grid filter

* Update bitbag_shipping_export.yml
  • Loading branch information
milwoz committed Feb 11, 2022
1 parent 7030758 commit 6eb96fe
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions src/Resources/config/grids/bitbag_shipping_export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,36 @@ sylius_grid:
options:
template: "@BitBagSyliusShippingExportPlugin/ShippingExport/Grid/Field/state.html.twig"
filters:
search:
order:
type: string
label: sylius.ui.search
label: sylius.ui.order
form_options:
type: contains
options:
fields: [code, translation.name]
fields: [shipment.order.number]
state:
type: string
label: sylius.ui.enabled
type: select
label: sylius.ui.state
form_options:
choices:
bitbag.ui.new: New
bitbag.ui.pending: Pending
bitbag.ui.exported: Exported
shippingMethod:
type: entity
label: sylius.ui.shipping_method
form_options:
class: "%sylius.model.shipping_method.class%"
options:
fields: [shipment.method]
createdAt:
type: date
label: sylius.ui.created_at
options:
field: shipment.createdAt
exportedAt:
type: date
label: bitbag.ui.exported_at
actions:
main:
create:
Expand Down

0 comments on commit 6eb96fe

Please sign in to comment.