-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.php
132 lines (125 loc) · 4.63 KB
/
metadata.php
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
<?php
/**
* Copyright © MB Arbatos Klubas. All rights reserved.
* See LICENSE file for license details.
*/
declare(strict_types=1);
/**
* Metadata version
*/
$sMetadataVersion = '2.1';
/**
* Module information
*/
$aModule = [
'id' => 'fa_invoice',
'title' => 'Invoice',
'description' => [
'en' => 'Invoice module for OXID eShop.',
],
'thumbnail' => 'logo.png',
'version' => '3.1.0',
'author' => 'Anton Fedurtsya',
'email' => '[email protected]',
'url' => 'https://github.com/Fresh-Advance',
'controllers' => [
'fa_invoice_admin' => \FreshAdvance\Invoice\Transition\Controller\Admin\InvoiceController::class,
],
'extend' => [
\OxidEsales\Eshop\Application\Model\OrderArticle::class => \FreshAdvance\Invoice\Transition\Model\OrderArticle::class,
\OxidEsales\Eshop\Core\Language::class => \FreshAdvance\Invoice\Language\Extension\Language::class,
\OxidEsales\Eshop\Core\Email::class => \FreshAdvance\Invoice\Transition\Core\Email::class,
],
'settings' => [
/** Main */
[
'group' => 'fa_invoice_main',
'name' => \FreshAdvance\Invoice\Settings\ModuleSettings::SETTING_DOCUMENT_FILENAME_PREFIX,
'type' => 'str',
'value' => 'invoice-'
],
[
'group' => 'fa_invoice_main',
'name' => \FreshAdvance\Invoice\Settings\ModuleSettings::SETTING_DOCUMENT_IS_FOR_ARCHIVE,
'type' => 'bool',
'value' => false
],
[
'group' => 'fa_invoice_main',
'name' => \FreshAdvance\Invoice\Settings\ModuleSettings::SETTING_INVOICE_DATE_FORMAT,
'type' => 'str',
'value' => 'Y-m-d'
],
/** Layout */
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Document\Settings\DocumentLayoutSettings::SETTING_MARGIN_TOP,
'type' => 'str',
'value' => '',
],
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Document\Settings\DocumentLayoutSettings::SETTING_MARGIN_BOTTOM,
'type' => 'str',
'value' => '',
],
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Document\Settings\DocumentLayoutSettings::SETTING_MARGIN_LEFT,
'type' => 'str',
'value' => '',
],
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Document\Settings\DocumentLayoutSettings::SETTING_MARGIN_RIGHT,
'type' => 'str',
'value' => '',
],
[
'group' => 'fa_invoice_layout',
'name' => \FreshAdvance\Invoice\Document\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\Document\Settings\DocumentLayoutSettings::SETTING_DOCUMENT_FOOTER,
'type' => 'str',
'value' => 'Document Footer Example; HTML with simple inline css can go here<br>Change in Module Settings',
],
// 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\Settings\ModuleSettings::SETTING_INVOICE_NUMBER_FORMAT,
'type' => 'str',
'value' => 'ABC-%1$s',
],
// group emails
[
'group' => 'fa_invoice_emails',
'name' => \FreshAdvance\Invoice\Settings\ModuleSettings::SETTING_SEND_INVOICE_ON_USER_ORDER_EMAIL,
'type' => 'bool',
'value' => false
],
[
'group' => 'fa_invoice_emails',
'name' => \FreshAdvance\Invoice\Settings\ModuleSettings::SETTING_INVOICE_ON_ORDER_EMAIL_FILENAME,
'type' => 'str',
'value' => 'invoice.pdf',
],
],
'events' => [
'onActivate' => '\FreshAdvance\Invoice\Transition\Core\Events::onActivate',
'onDeactivate' => '\FreshAdvance\Invoice\Transition\Core\Events::onDeactivate'
],
'templates' => [
'@fa_invoice/admin/invoice.tpl' => 'views/smarty/admin/invoice.tpl',
'@fa_invoice/invoice/body.tpl' => 'views/smarty/invoice/body.tpl',
]
];