-
-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathconfig.yaml
More file actions
140 lines (131 loc) · 4.9 KB
/
config.yaml
File metadata and controls
140 lines (131 loc) · 4.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
imports:
- { resource: '@SyliusInvoicingPlugin/config/twig_hooks/**/*.yaml' }
- { resource: '@SyliusInvoicingPlugin/config/winzou_state_machine.php' }
parameters:
sylius_invoicing.invoice_save_path: "%kernel.project_dir%/private/invoices/"
sylius_invoicing.filesystem_adapter.invoice: "sylius_invoicing_invoice"
sylius_invoicing.sequence_scope: '%env(default::SYLIUS_INVOICING_SEQUENCE_SCOPE)%'
env(SYLIUS_INVOICING_SEQUENCE_SCOPE): 'global'
sylius_invoicing:
pdf_generator:
allowed_files:
- '%env(default:sylius_invoicing.default_logo_file:resolve:SYLIUS_INVOICING_LOGO_FILE)%'
sylius_mailer:
emails:
invoice_generated:
subject: sylius.emails.invoice_generated.subject
template: "@SyliusInvoicingPlugin/admin/invoice/email/invoice_generated.html.twig"
knp_snappy:
pdf:
enabled: true
sylius_grid:
templates:
action:
download: '@SyliusInvoicingPlugin/admin/shared/action/download.html.twig'
grids:
sylius_invoicing_invoice:
driver:
name: doctrine/orm
options:
class: '%sylius_invoicing.model.invoice.class%'
sorting:
issuedAt: desc
fields:
number:
type: string
label: sylius_invoicing.ui.invoice_number
sortable: true
orderNumber:
type: twig
label: sylius.ui.order
path: order
options:
template: "@SyliusAdmin/shared/grid/field/order_number.html.twig"
sortable: order.number
channel:
type: twig
label: sylius.ui.channel
options:
template: "@SyliusAdmin/shared/grid/field/channel.html.twig"
total:
type: twig
label: sylius.ui.total
path: .
sortable: total
options:
template: "@SyliusAdmin/order/grid/field/order_total.html.twig"
issuedAt:
type: datetime
label: sylius_invoicing.ui.issued_at
options:
format: 'Y-m-d H:i:s'
sortable: true
filters:
orderNumber:
type: string
label: sylius_invoicing.ui.order_number
options:
fields: [order.number]
number:
type: string
label: sylius_invoicing.ui.invoice_number
issuedAt:
type: date
label: sylius_invoicing.ui.issued_at
channel:
type: entity
label: sylius.ui.channel
form_options:
class: "%sylius.model.channel.class%"
actions:
item:
show:
type: show
download:
type: download
enabled: '%sylius_invoicing.pdf_generator.enabled%'
options:
link:
route: sylius_invoicing_admin_invoice_download
parameters:
id: resource.id
resend:
type: default
label: sylius_invoicing.ui.resend_invoice
icon: "tabler:send"
options:
link:
route: sylius_invoicing_admin_invoice_resend
parameters:
id: resource.id
sylius_shop_account_order:
fields:
invoices:
type: twig
label: sylius_invoicing.ui.invoices
path: .
options:
template: "@SyliusInvoicingPlugin/shop/account/order/grid/field/invoices.html.twig"
framework:
messenger:
buses:
sylius.event_bus:
default_middleware: allow_no_handlers
sylius.command_bus:
middleware:
- 'validation'
- 'doctrine_transaction'
knp_gaufrette:
adapters:
sylius_invoicing_invoice:
local:
directory: "%sylius_invoicing.invoice_save_path%"
create: true
filesystems:
sylius_invoicing_invoice:
adapter: "%sylius_invoicing.filesystem_adapter.invoice%"
sylius_fixtures:
suites:
default:
listeners:
invoices_purger: ~