-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmetadata.php
More file actions
138 lines (129 loc) · 4.62 KB
/
Copy pathmetadata.php
File metadata and controls
138 lines (129 loc) · 4.62 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
<?php
/**
* Copyright © MB Arbatos Klubas. All rights reserved.
* See LICENSE file for license details.
*/
declare(strict_types=1);
/**
* Metadata version
*/
use FreshAdvance\Invoice\Email\Settings\EmailSettings;
$sMetadataVersion = '2.1';
/**
* Module information
*/
$aModule = [
'id' => 'fa_invoice',
'title' => 'Invoice',
'description' => [
'en' => 'Invoice module for OXID eShop.',
],
'thumbnail' => 'logo.png',
'version' => '5.0.2',
'author' => 'MB Arbatos Klubas',
'email' => 'info@freshadvance.eu',
'url' => 'https://github.com/Fresh-Advance',
'controllers' => [
'fa_invoice_admin' => \FreshAdvance\Invoice\InvoiceData\Controller\Admin\InvoiceController::class,
],
'extend' => [
\OxidEsales\Eshop\Core\Language::class => \FreshAdvance\Invoice\Language\Extension\Language::class,
\OxidEsales\Eshop\Core\Email::class => \FreshAdvance\Invoice\Email\Core\EmailExtension::class,
],
'settings' => [
/** Main */
[
'group' => 'fa_invoice_main',
'name' => \FreshAdvance\Invoice\InvoiceData\Settings\FormatSettings::SETTING_DOCUMENT_FILENAME_FORMAT,
'type' => 'str',
'value' => 'SERIE-ABC-<order:oxbillnr>.pdf'
],
[
'group' => 'fa_invoice_main',
'name' => \FreshAdvance\Invoice\Pdf\Settings\PdfSettings::SETTING_DOCUMENT_IS_FOR_ARCHIVE,
'type' => 'bool',
'value' => false
],
[
'group' => 'fa_invoice_main',
'name' => \FreshAdvance\Invoice\InvoiceData\Settings\FormatSettings::SETTING_INVOICE_DATE_FORMAT,
'type' => 'str',
'value' => 'Y-m-d'
],
/** Layout */
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Pdf\Settings\DocumentLayoutSettings::SETTING_MARGIN_TOP,
'type' => 'str',
'value' => '',
],
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Pdf\Settings\DocumentLayoutSettings::SETTING_MARGIN_BOTTOM,
'type' => 'str',
'value' => '',
],
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Pdf\Settings\DocumentLayoutSettings::SETTING_MARGIN_LEFT,
'type' => 'str',
'value' => '',
],
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Pdf\Settings\DocumentLayoutSettings::SETTING_MARGIN_RIGHT,
'type' => 'str',
'value' => '',
],
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Pdf\Settings\DocumentLayoutSettings::SETTING_DOCUMENT_HEADER,
'type' => 'str',
'value' => '<small>Document Header Example; HTML with simple inline css can go here - Change in Module Settings</small>',
],
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Pdf\Settings\DocumentLayoutSettings::SETTING_DOCUMENT_FOOTER,
'type' => 'str',
'value' => '<small>Document Footer Example; HTML with simple inline css can go here<br>Change in Module Settings</small>',
],
// group invoice numbering
[
'group' => 'fa_invoice_numbering',
'name' => \FreshAdvance\Invoice\Order\Settings\OrderSettings::SETTING_INVOICE_NUMBER_UPDATE,
'type' => 'bool',
'value' => true
],
[
'group' => 'fa_invoice_numbering',
'name' => \FreshAdvance\Invoice\InvoiceData\Settings\FormatSettings::SETTING_INVOICE_NUMBER_FORMAT,
'type' => 'str',
'value' => 'ABC-<order:oxbillnr>',
],
// group emails
[
'group' => 'fa_invoice_emails',
'name' => EmailSettings::SETTING_SEND_INVOICE_ON_USER_ORDER_EMAIL,
'type' => 'bool',
'value' => false
],
[
'group' => 'fa_invoice_emails',
'name' => EmailSettings::SETTING_USER_ORDER_EMAIL_INVOICE_FILENAME_FORMAT,
'type' => 'str',
'value' => 'invoice.pdf',
],
[
'group' => 'fa_invoice_emails',
'name' => EmailSettings::SETTING_SEND_INVOICE_ON_OWNER_ORDER_EMAIL,
'type' => 'bool',
'value' => false
],
[
'group' => 'fa_invoice_emails',
'name' => EmailSettings::SETTING_OWNER_ORDER_EMAIL_INVOICE_FILENAME_FORMAT,
'type' => 'str',
'value' => 'invoice.pdf',
],
],
];