@opengis/pay 1.1.12 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/module/pay/cls/billing.payment_status.json +8 -3
- package/module/pay/select/billing.subscription_id.sql +1 -0
- package/module/{pay → pay1}/card/billing.accounts.table/general_info.hbs +10 -10
- package/module/{pay → pay1}/card/billing.accounts.table/index.yml +15 -15
- package/module/{pay → pay1}/card/billing.accounts.table/users.hbs +11 -11
- package/module/{pay → pay1}/card/billing.payments.table/general_info.hbs +12 -12
- package/module/{pay → pay1}/card/billing.payments.table/index.yml +9 -9
- package/module/{pay → pay1}/card/billing.users.table/general_info.hbs +10 -10
- package/module/{pay → pay1}/card/billing.users.table/index.yml +9 -9
- package/module/pay1/cls/billing.payment_status.json +22 -0
- package/module/{pay → pay1}/form/billing.account_user.form.json +14 -14
- package/module/{pay → pay1}/form/billing.accounts.form.json +30 -30
- package/module/{pay → pay1}/form/billing.payment.form.json +22 -22
- package/module/{pay → pay1}/form/billing.users.form.json +38 -38
- package/module/{pay → pay1}/menu.json +24 -24
- package/module/pay1/pt/marketplace-service-payment-client-template.html +147 -0
- package/module/pay1/select/billing.account_id.sql +1 -0
- package/module/pay1/select/billing.service_id.sql +1 -0
- package/module/pay1/select/billing.subscription_id.sql +1 -0
- package/module/pay1/select/billing.user_id.sql +1 -0
- package/module/{pay → pay1}/table/billing.accounts.table.json +60 -60
- package/module/{pay → pay1}/table/billing.payments.table.json +67 -67
- package/module/{pay → pay1}/table/billing.users.table.json +70 -70
- package/package.json +2 -2
- package/plugin.js +18 -2
- package/server/migrations/1_users.sql +120 -120
- package/server/migrations/2_accounts.sql +59 -59
- package/server/migrations/3_utils.sql +73 -73
- package/server/migrations/4_subscriptions.sql +35 -35
- package/server/migrations/5_payments.sql +36 -36
- package/server/migrations/6_invoices.sql +54 -54
- package/server/plugins/cron.js +22 -0
- package/server/routes/payment.info.js +45 -0
- package/server/routes/portmone.redirect.js +17 -15
- package/server/routes/portmone.status.js +8 -4
- package/server/routes/utils/portmone.check.status.js +33 -0
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
3
|
"id": "inprogress",
|
|
4
|
-
"text": "
|
|
5
|
-
"color": "
|
|
4
|
+
"text": "В процесі",
|
|
5
|
+
"color": "blue"
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"id": "success",
|
|
9
9
|
"text": "Оплачено",
|
|
10
10
|
"color": "green"
|
|
11
11
|
},
|
|
12
|
+
{
|
|
13
|
+
"id": "unpaid",
|
|
14
|
+
"text": "Не оплачено",
|
|
15
|
+
"color": "gray"
|
|
16
|
+
},
|
|
12
17
|
{
|
|
13
18
|
"id": "error",
|
|
14
|
-
"text": "Помилка
|
|
19
|
+
"text": "Помилка оплати",
|
|
15
20
|
"color": "red"
|
|
16
21
|
}
|
|
17
22
|
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
select subscription_id,coalesce((select name from billing.products where product_id=a.product_id),'')||' '||coalesce(product_plan_type,'') from billing.subscriptions a
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{{{descriptionList this columns="Назва,account_name,ЄДРПОУ,account_edrpou,Email,account_email,On/Off,enabled"}}}
|
|
2
|
-
|
|
3
|
-
<style>
|
|
4
|
-
.label {
|
|
5
|
-
display: inline-block;
|
|
6
|
-
padding: 4px 8px;
|
|
7
|
-
border-radius: 5px;
|
|
8
|
-
font-size: 12px;
|
|
9
|
-
font-weight: bold;
|
|
10
|
-
}
|
|
1
|
+
{{{descriptionList this columns="Назва,account_name,ЄДРПОУ,account_edrpou,Email,account_email,On/Off,enabled"}}}
|
|
2
|
+
|
|
3
|
+
<style>
|
|
4
|
+
.label {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
padding: 4px 8px;
|
|
7
|
+
border-radius: 5px;
|
|
8
|
+
font-size: 12px;
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
}
|
|
11
11
|
</style>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
component: default
|
|
2
|
-
# title: Мій підпис
|
|
3
|
-
tokens:
|
|
4
|
-
id: { id: "{{id}}" }
|
|
5
|
-
panels:
|
|
6
|
-
- type: container
|
|
7
|
-
col: 4
|
|
8
|
-
items:
|
|
9
|
-
- name: general_info
|
|
10
|
-
title: Загальна інформація
|
|
11
|
-
- type: container
|
|
12
|
-
col: 8
|
|
13
|
-
items:
|
|
14
|
-
- name: users
|
|
15
|
-
title: Користувачі
|
|
1
|
+
component: default
|
|
2
|
+
# title: Мій підпис
|
|
3
|
+
tokens:
|
|
4
|
+
id: { id: "{{id}}" }
|
|
5
|
+
panels:
|
|
6
|
+
- type: container
|
|
7
|
+
col: 4
|
|
8
|
+
items:
|
|
9
|
+
- name: general_info
|
|
10
|
+
title: Загальна інформація
|
|
11
|
+
- type: container
|
|
12
|
+
col: 8
|
|
13
|
+
items:
|
|
14
|
+
- name: users
|
|
15
|
+
title: Користувачі
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
{{#contentList table="(select users.user_id, user_name || coalesce(login,'') as name, au_id, account_id from billing.users left join ( SELECT user_id, au_id, account_id FROM billing.account_user )r on users.user_id=r.user_id)q" query="account_id='{{id}}'" limit="50" sql1=1}}
|
|
3
|
-
{{{button this token=(token table="billing.account_user" obj=(concat 'account_id=' @root.id) form="billing.account_user.form") title="Додати"}}}
|
|
4
|
-
|
|
5
|
-
{{{tableList rows table='billing.account_user' id='au_id' form="billing.account_user.form" uid=../user.uid
|
|
6
|
-
nodata='<div class="bg-gray-200 text-center p-6 rounded-xl"><h3 class="text-lg font-semibold">Інформація відсутня</h3></div>'
|
|
7
|
-
comma=";"
|
|
8
|
-
columns="Користувач,<a href='/card/billing.users.table/{{user_id}}'>{{name}}</a>"
|
|
9
|
-
}}}
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
|
|
2
|
+
{{#contentList table="(select users.user_id, user_name || coalesce(login,'') as name, au_id, account_id from billing.users left join ( SELECT user_id, au_id, account_id FROM billing.account_user )r on users.user_id=r.user_id)q" query="account_id='{{id}}'" limit="50" sql1=1}}
|
|
3
|
+
{{{button this token=(token table="billing.account_user" obj=(concat 'account_id=' @root.id) form="billing.account_user.form") title="Додати"}}}
|
|
4
|
+
|
|
5
|
+
{{{tableList rows table='billing.account_user' id='au_id' form="billing.account_user.form" uid=../user.uid
|
|
6
|
+
nodata='<div class="bg-gray-200 text-center p-6 rounded-xl"><h3 class="text-lg font-semibold">Інформація відсутня</h3></div>'
|
|
7
|
+
comma=";"
|
|
8
|
+
columns="Користувач,<a href='/card/billing.users.table/{{user_id}}'>{{name}}</a>"
|
|
9
|
+
}}}
|
|
10
|
+
|
|
11
|
+
|
|
12
12
|
{{/contentList}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
{{{descriptionList this columns="Організація,account_id,Сума,payment_amount,Статус,payment_status,Дії,<a class=\"inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white\" href=\"/api/portmone-redirect?id={{id}}\">Оплатити</a>"}}}
|
|
4
|
-
|
|
5
|
-
<style>
|
|
6
|
-
.label {
|
|
7
|
-
display: inline-block;
|
|
8
|
-
padding: 4px 8px;
|
|
9
|
-
border-radius: 5px;
|
|
10
|
-
font-size: 12px;
|
|
11
|
-
font-weight: bold;
|
|
12
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
{{{descriptionList this columns="Організація,account_id,Сума,payment_amount,Статус,payment_status,Дії,<a class=\"inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white\" href=\"/api/portmone-redirect?id={{id}}\">Оплатити</a>"}}}
|
|
4
|
+
|
|
5
|
+
<style>
|
|
6
|
+
.label {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
padding: 4px 8px;
|
|
9
|
+
border-radius: 5px;
|
|
10
|
+
font-size: 12px;
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
}
|
|
13
13
|
</style>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
component: default
|
|
2
|
-
# title: Мій підпис
|
|
3
|
-
tokens:
|
|
4
|
-
id: { id: "{{id}}" }
|
|
5
|
-
panels:
|
|
6
|
-
- type: container
|
|
7
|
-
col: 12
|
|
8
|
-
items:
|
|
9
|
-
- name: general_info
|
|
1
|
+
component: default
|
|
2
|
+
# title: Мій підпис
|
|
3
|
+
tokens:
|
|
4
|
+
id: { id: "{{id}}" }
|
|
5
|
+
panels:
|
|
6
|
+
- type: container
|
|
7
|
+
col: 12
|
|
8
|
+
items:
|
|
9
|
+
- name: general_info
|
|
10
10
|
title: Загальна інформація
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{{{descriptionList this columns="Прізвище,sur_name,Ім'я,user_name,Email,email,On/Off,enabled"}}}
|
|
2
|
-
|
|
3
|
-
<style>
|
|
4
|
-
.label {
|
|
5
|
-
display: inline-block;
|
|
6
|
-
padding: 4px 8px;
|
|
7
|
-
border-radius: 5px;
|
|
8
|
-
font-size: 12px;
|
|
9
|
-
font-weight: bold;
|
|
10
|
-
}
|
|
1
|
+
{{{descriptionList this columns="Прізвище,sur_name,Ім'я,user_name,Email,email,On/Off,enabled"}}}
|
|
2
|
+
|
|
3
|
+
<style>
|
|
4
|
+
.label {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
padding: 4px 8px;
|
|
7
|
+
border-radius: 5px;
|
|
8
|
+
font-size: 12px;
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
}
|
|
11
11
|
</style>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
component: default
|
|
2
|
-
# title: Мій підпис
|
|
3
|
-
tokens:
|
|
4
|
-
id: { id: "{{id}}" }
|
|
5
|
-
panels:
|
|
6
|
-
- type: container
|
|
7
|
-
col: 12
|
|
8
|
-
items:
|
|
9
|
-
- name: general_info
|
|
1
|
+
component: default
|
|
2
|
+
# title: Мій підпис
|
|
3
|
+
tokens:
|
|
4
|
+
id: { id: "{{id}}" }
|
|
5
|
+
panels:
|
|
6
|
+
- type: container
|
|
7
|
+
col: 12
|
|
8
|
+
items:
|
|
9
|
+
- name: general_info
|
|
10
10
|
title: Загальна інформація
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "inprogress",
|
|
4
|
+
"text": "В процесі",
|
|
5
|
+
"color": "blue"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"id": "success",
|
|
9
|
+
"text": "Оплачено",
|
|
10
|
+
"color": "green"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "unpaid",
|
|
14
|
+
"text": "Не оплачено",
|
|
15
|
+
"color": "gray"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "error",
|
|
19
|
+
"text": "Помилка оплати",
|
|
20
|
+
"color": "red"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": {
|
|
3
|
-
"user_id": {
|
|
4
|
-
"type": "Autocomplete",
|
|
5
|
-
"data": "billing.user_id",
|
|
6
|
-
"ua": "Користувач",
|
|
7
|
-
"validators": [
|
|
8
|
-
"required"
|
|
9
|
-
]
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"style": {
|
|
13
|
-
"label": "vertical"
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"user_id": {
|
|
4
|
+
"type": "Autocomplete",
|
|
5
|
+
"data": "billing.user_id",
|
|
6
|
+
"ua": "Користувач",
|
|
7
|
+
"validators": [
|
|
8
|
+
"required"
|
|
9
|
+
]
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"style": {
|
|
13
|
+
"label": "vertical"
|
|
14
|
+
}
|
|
15
15
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": {
|
|
3
|
-
"account_name": {
|
|
4
|
-
"type": "Text",
|
|
5
|
-
"ua": "Назва організації",
|
|
6
|
-
"validators": [
|
|
7
|
-
"required"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"account_edrpou": {
|
|
11
|
-
"type": "Text",
|
|
12
|
-
"ua": "ЄДРПОУ"
|
|
13
|
-
},
|
|
14
|
-
"account_email": {
|
|
15
|
-
"type": "Text",
|
|
16
|
-
"ua": "Пошта організації",
|
|
17
|
-
"i": "Повідомлення про статус платежів будуть надіслані на дану ел. адресу",
|
|
18
|
-
"validators": [
|
|
19
|
-
"required"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"enabled": {
|
|
23
|
-
"type": "Switcher",
|
|
24
|
-
"default": true,
|
|
25
|
-
"ua": "On / Off"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"style": {
|
|
29
|
-
"label": "vertical"
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"account_name": {
|
|
4
|
+
"type": "Text",
|
|
5
|
+
"ua": "Назва організації",
|
|
6
|
+
"validators": [
|
|
7
|
+
"required"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"account_edrpou": {
|
|
11
|
+
"type": "Text",
|
|
12
|
+
"ua": "ЄДРПОУ"
|
|
13
|
+
},
|
|
14
|
+
"account_email": {
|
|
15
|
+
"type": "Text",
|
|
16
|
+
"ua": "Пошта організації",
|
|
17
|
+
"i": "Повідомлення про статус платежів будуть надіслані на дану ел. адресу",
|
|
18
|
+
"validators": [
|
|
19
|
+
"required"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"enabled": {
|
|
23
|
+
"type": "Switcher",
|
|
24
|
+
"default": true,
|
|
25
|
+
"ua": "On / Off"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"style": {
|
|
29
|
+
"label": "vertical"
|
|
30
|
+
}
|
|
31
31
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": {
|
|
3
|
-
"payment_amount": {
|
|
4
|
-
"type": "Number",
|
|
5
|
-
"min": 0,
|
|
6
|
-
"ua": "Сума платежу",
|
|
7
|
-
"validators": [
|
|
8
|
-
"required"
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"account_id": {
|
|
12
|
-
"type": "Autocomplete",
|
|
13
|
-
"data": "billing.account_id",
|
|
14
|
-
"ua": "Назва організації",
|
|
15
|
-
"validators": [
|
|
16
|
-
"required"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"style": {
|
|
21
|
-
"label": "vertical"
|
|
22
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"payment_amount": {
|
|
4
|
+
"type": "Number",
|
|
5
|
+
"min": 0,
|
|
6
|
+
"ua": "Сума платежу",
|
|
7
|
+
"validators": [
|
|
8
|
+
"required"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"account_id": {
|
|
12
|
+
"type": "Autocomplete",
|
|
13
|
+
"data": "billing.account_id",
|
|
14
|
+
"ua": "Назва організації",
|
|
15
|
+
"validators": [
|
|
16
|
+
"required"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"style": {
|
|
21
|
+
"label": "vertical"
|
|
22
|
+
}
|
|
23
23
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": {
|
|
3
|
-
"sur_name": {
|
|
4
|
-
"type": "Text",
|
|
5
|
-
"ua": "Прізвище",
|
|
6
|
-
"validators": [
|
|
7
|
-
"required"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"user_name": {
|
|
11
|
-
"type": "Text",
|
|
12
|
-
"ua": "Ім'я",
|
|
13
|
-
"validators": [
|
|
14
|
-
"required"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"father_name": {
|
|
18
|
-
"type": "Text",
|
|
19
|
-
"ua": "По-батькові"
|
|
20
|
-
},
|
|
21
|
-
"email": {
|
|
22
|
-
"type": "Text",
|
|
23
|
-
"ua": "Email"
|
|
24
|
-
},
|
|
25
|
-
"phone": {
|
|
26
|
-
"type": "MarkedText",
|
|
27
|
-
"mask": "+389999999999",
|
|
28
|
-
"ua": "Номер телефону"
|
|
29
|
-
},
|
|
30
|
-
"enabled": {
|
|
31
|
-
"type": "Switcher",
|
|
32
|
-
"default": true,
|
|
33
|
-
"ua": "On / Off"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"style": {
|
|
37
|
-
"label": "vertical"
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"sur_name": {
|
|
4
|
+
"type": "Text",
|
|
5
|
+
"ua": "Прізвище",
|
|
6
|
+
"validators": [
|
|
7
|
+
"required"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"user_name": {
|
|
11
|
+
"type": "Text",
|
|
12
|
+
"ua": "Ім'я",
|
|
13
|
+
"validators": [
|
|
14
|
+
"required"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"father_name": {
|
|
18
|
+
"type": "Text",
|
|
19
|
+
"ua": "По-батькові"
|
|
20
|
+
},
|
|
21
|
+
"email": {
|
|
22
|
+
"type": "Text",
|
|
23
|
+
"ua": "Email"
|
|
24
|
+
},
|
|
25
|
+
"phone": {
|
|
26
|
+
"type": "MarkedText",
|
|
27
|
+
"mask": "+389999999999",
|
|
28
|
+
"ua": "Номер телефону"
|
|
29
|
+
},
|
|
30
|
+
"enabled": {
|
|
31
|
+
"type": "Switcher",
|
|
32
|
+
"default": true,
|
|
33
|
+
"ua": "On / Off"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"style": {
|
|
37
|
+
"label": "vertical"
|
|
38
|
+
}
|
|
39
39
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"ua": "Платежі / Payments",
|
|
4
|
-
"menu": [
|
|
5
|
-
{
|
|
6
|
-
"ua": "Реєстр платежів",
|
|
7
|
-
"table": "billing.payments.table",
|
|
8
|
-
"path": "billing.payments"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"ua": "Реєстр організацій",
|
|
12
|
-
"table": "billing.accounts.table",
|
|
13
|
-
"path": "billing.accounts"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"ua": "Реєстр користувачів",
|
|
17
|
-
"table": "billing.users.table",
|
|
18
|
-
"path": "billing.users"
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"ua": "Платежі / Payments",
|
|
4
|
+
"menu": [
|
|
5
|
+
{
|
|
6
|
+
"ua": "Реєстр платежів",
|
|
7
|
+
"table": "billing.payments.table",
|
|
8
|
+
"path": "billing.payments"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"ua": "Реєстр організацій",
|
|
12
|
+
"table": "billing.accounts.table",
|
|
13
|
+
"path": "billing.accounts"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"ua": "Реєстр користувачів",
|
|
17
|
+
"table": "billing.users.table",
|
|
18
|
+
"path": "billing.users"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<br>
|
|
3
|
+
</div>
|
|
4
|
+
<div>
|
|
5
|
+
<table style="width:100%;">
|
|
6
|
+
<tbody>
|
|
7
|
+
<tr>
|
|
8
|
+
<td style="width:20px;"> </td>
|
|
9
|
+
<td align="center">
|
|
10
|
+
<table style="width:100%" bgcolor="#ffffff">
|
|
11
|
+
<tbody>
|
|
12
|
+
<tr>
|
|
13
|
+
<td align="center"><a href="//{{domain}}" class="logo"><img src="https://softpro.ua/tpl/img/logo.svg"/></a>
|
|
14
|
+
</td>
|
|
15
|
+
</tr>
|
|
16
|
+
|
|
17
|
+
<tr>
|
|
18
|
+
<td style="padding:7px 0" align="center"><span style="color:#555454;font-family:'Open-sans',sans-serif;font-size:small">
|
|
19
|
+
<span style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">{{select account_id data="billing.account_id"}}, дякуємо за здійснення замовлення на порталі <a href="//{{domain}}">{{domain}}</a></span> </span>
|
|
20
|
+
</td>
|
|
21
|
+
</tr>
|
|
22
|
+
<tr>
|
|
23
|
+
<td style="padding:0"> </td>
|
|
24
|
+
</tr>
|
|
25
|
+
<tr>
|
|
26
|
+
<td style="box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);padding:7px 0;border-radius:30px">
|
|
27
|
+
<table style="width:100%">
|
|
28
|
+
<tbody>
|
|
29
|
+
<tr >
|
|
30
|
+
<td style="padding:7px 0" width="10"> </td>
|
|
31
|
+
<td style="padding:7px 0">
|
|
32
|
+
<span style="color:#555454;font-family:'Open-sans',sans-serif;font-size:small"> </span>
|
|
33
|
+
{{#if service_id}}
|
|
34
|
+
<p style="color:#61677b;border-bottom:1px solid #61677b;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">Послуга: {{service_id_text}}</p>
|
|
35
|
+
{{/if}}
|
|
36
|
+
<br>
|
|
37
|
+
<span style="color:#61677b"><strong>Дата замовлення:</strong> {{formatDate cdate format='dd.mm.yy hh:mi'}}</span>
|
|
38
|
+
<br>
|
|
39
|
+
<span style="color:#61677b"><strong>Статус замовлення:</strong> {{select payment_status data="billing.payment_status"}}</span>
|
|
40
|
+
{{#if withdrawal_sum}}
|
|
41
|
+
<br>
|
|
42
|
+
<span style="color:#61677b"><strong>Вартість послуги:</strong> {{num_format withdrawal_sum dec="2"}}</span>
|
|
43
|
+
{{/if}}
|
|
44
|
+
{{#if payment_amount}}
|
|
45
|
+
<br>
|
|
46
|
+
<span style="color:#61677b"><strong>Поповнення рахунку:</strong> {{num_format payment_amount dec="2"}}</span>
|
|
47
|
+
{{/if}}
|
|
48
|
+
{{#if total_balance}}
|
|
49
|
+
<br>
|
|
50
|
+
<span style="color:#61677b"><strong>Поточний баланс:</strong> {{num_format total_balance dec="2"}}</span>
|
|
51
|
+
{{/if}}
|
|
52
|
+
</td>
|
|
53
|
+
<td style="padding:7px 0" width="10"> </td>
|
|
54
|
+
</tr>
|
|
55
|
+
</tbody>
|
|
56
|
+
</table>
|
|
57
|
+
</td>
|
|
58
|
+
</tr>
|
|
59
|
+
|
|
60
|
+
<tr>
|
|
61
|
+
<td style="padding:7px 0">
|
|
62
|
+
<span style="color:#555454;font-family:'Open-sans',sans-serif;font-size:small"> </span>
|
|
63
|
+
<table style="width:100%;border-collapse:collapse" bgcolor="#ffffff">
|
|
64
|
+
<tbody>
|
|
65
|
+
<tr>
|
|
66
|
+
<th style="border:1px solid #d6d4d4;background-color:#fbfbfb;color:#61677b;font-family:Arial;font-size:13px;padding:10px" bgcolor="#f8f8f8">Назва послуги</th>
|
|
67
|
+
<th style="border:1px solid #d6d4d4;background-color:#fbfbfb;color:#61677b;font-family:Arial;font-size:13px;padding:10px" bgcolor="#f8f8f8" width="17%">Ціна послуги</th>
|
|
68
|
+
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<td style="border:1px solid #d6d4d4">
|
|
71
|
+
<table>
|
|
72
|
+
<tbody>
|
|
73
|
+
<tr>
|
|
74
|
+
<td style="padding: 0 10px">
|
|
75
|
+
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
|
76
|
+
<strong>
|
|
77
|
+
{{#if service_id}}
|
|
78
|
+
{{service_id_text}}
|
|
79
|
+
{{^}}
|
|
80
|
+
Поповнення рахунку
|
|
81
|
+
{{/if}}
|
|
82
|
+
</strong>
|
|
83
|
+
</font>
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
86
|
+
</tbody>
|
|
87
|
+
</table>
|
|
88
|
+
</td>
|
|
89
|
+
<td style="border:1px solid #d6d4d4">
|
|
90
|
+
<table>
|
|
91
|
+
<tbody>
|
|
92
|
+
<tr>
|
|
93
|
+
<td width="10"> </td>
|
|
94
|
+
<td align="right">
|
|
95
|
+
<font size="2" face="Open-sans, sans-serif" color="#555454"> {{num_format (coalesce withdrawal_sum payment_amount)}} грн.</font>
|
|
96
|
+
</td>
|
|
97
|
+
<td width="10"> </td>
|
|
98
|
+
</tr>
|
|
99
|
+
</tbody>
|
|
100
|
+
</table>
|
|
101
|
+
</td>
|
|
102
|
+
</tr>
|
|
103
|
+
|
|
104
|
+
<tr>
|
|
105
|
+
<td colspan="2" style="border:1px solid #d6d4d4;text-align:center;color:#777;padding:7px 0"> </td>
|
|
106
|
+
</tr>
|
|
107
|
+
|
|
108
|
+
<tr>
|
|
109
|
+
<td colspan="1" style="border:1px solid #d6d4d4;color:#61677b;padding:7px 0" bgcolor="#f8f8f8">
|
|
110
|
+
<table style="width:100%;border-collapse:collapse">
|
|
111
|
+
<tbody>
|
|
112
|
+
<tr>
|
|
113
|
+
<td style="color:#61677b;padding:0" width="10"> </td>
|
|
114
|
+
<td style="color:#61677b;padding:0" align="right"><span style="color:#555454;font-family:'Open-sans',sans-serif;font-size:small"> <strong>Поточний баланс</strong> </span></td>
|
|
115
|
+
<td style="color:#61677b;padding:0" width="10"> </td>
|
|
116
|
+
</tr>
|
|
117
|
+
</tbody>
|
|
118
|
+
</table>
|
|
119
|
+
</td>
|
|
120
|
+
<td colspan="1" style="border:1px solid #d6d4d4;color:#61677b;padding:7px 0" bgcolor="#f8f8f8">
|
|
121
|
+
<table style="width:100%;border-collapse:collapse">
|
|
122
|
+
<tbody>
|
|
123
|
+
<tr>
|
|
124
|
+
<td style="color:#61677b;padding:0" width="10"> </td>
|
|
125
|
+
<td style="color:#61677b;padding:0" align="right"><span style="color:#555454;font-family:'Open-sans',sans-serif;font-size:large">{{total_balance}} грн. </span></td>
|
|
126
|
+
<td style="color:#61677b;padding:0" width="10"> </td>
|
|
127
|
+
</tr>
|
|
128
|
+
</tbody>
|
|
129
|
+
</table>
|
|
130
|
+
</td>
|
|
131
|
+
</tr>
|
|
132
|
+
</tbody>
|
|
133
|
+
</table>
|
|
134
|
+
</td>
|
|
135
|
+
</tr>
|
|
136
|
+
|
|
137
|
+
<tr>
|
|
138
|
+
<td style="border-top:4px solid #61677b;padding:7px 0"><span><a href="//{{domain}}"><img src="https://softpro.ua/tpl/img/logo.svg"/></a></span></td>
|
|
139
|
+
</tr>
|
|
140
|
+
</tbody>
|
|
141
|
+
</table>
|
|
142
|
+
</td>
|
|
143
|
+
<td style="width:20px;"> </td>
|
|
144
|
+
</tr>
|
|
145
|
+
</tbody>
|
|
146
|
+
</table>
|
|
147
|
+
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
select account_id, account_name from billing.accounts order by account_name
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
select service_id, service_name from billing.service order by service_name
|