Skip to content

Commit 3dac062

Browse files
committed
0.5.0
Небольшие правки
1 parent e034ced commit 3dac062

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

common/widgets/TemplateOfElement/components/FieldsManage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function setPrice($field, $forms_field, $document_id, $value_currency, $d
152152
])
153153
->one();
154154

155-
$modelValuePriceForm->discount_price = ($modelValuePriceForm->price / 100) * $discountValue['value'];
155+
$modelValuePriceForm->discount_price = ($modelValuePriceForm->price / 100) * (100 - $discountValue['value']);
156156
$modelValuePriceForm->discount_id = $discount_id;
157157
} else {
158158
$modelValuePriceForm->discount_price = $modelValuePriceForm->price;

console/migrations/csv/document.csv

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ id;name;alias;title;meta_keywords;meta_description;annotation;content;status;is_
88
4;������;product;������;;;;"<h1>������</h1>
99
";1;1;1;;;1537605785;1537608969;1;1;2;1;;
1010
5;�����;login;�����;;;;"<h1>�����</h1>
11-
";1;1;1;;;1537605836;1537624247;1;1;3;2;;
11+
";1;1;1;;;1537605836;1537624247;1;1;4;2;;
1212
6;�����������;signup;�����������;;;;"<h1>�����������</h1>
13-
";1;1;1;;;1537609158;1537609158;1;1;4;2;;
13+
";1;1;1;;;1537609158;1537609158;1;1;5;2;;
1414
7;�������;profile;�������;;;;"<h1>�������</h1>
15-
";1;1;1;;;1537663746;1537680305;1;1;5;3;;
15+
";1;1;1;;;1537663746;1537680305;1;1;6;3;;
1616
8;"������� �����";template-email;"������� �����";;;;;1;1;;;;1537671220;1537680333;1;1;;1;;
1717
9;"������������� �����������";confirm-email;"������������� �����������";;;;"<p>������������, {NAME_1}!</p>
1818

@@ -36,8 +36,8 @@ id;name;alias;title;meta_keywords;meta_description;annotation;content;status;is_
3636

3737
<p>{DATE_1}</p>
3838
";1;;8;;;1537671463;1537673799;1;1;;1;;
39-
11;�������;basket;�������;;;;;6;1;1;;5;1540742508;1551760961;1;1;6;1;31.173.100.102;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3717.0 Safari/537.36"
40-
12;"������������ ������";i18n;"������������ ������";;;;;1;1;1;;;1540742553;1549798362;1;1;7;1;;
41-
13;"����� ��������������";geo;;;;;;1;1;1;;2;1546914610;1546915775;1;1;8;1;;
39+
11;�������;basket;�������;;;;;6;1;1;;5;1540742508;1551760961;1;1;7;1;31.173.100.102;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3717.0 Safari/537.36"
40+
12;"������������ ������";i18n;"������������ ������";;;;;1;1;1;;;1540742553;1549798362;1;1;8;1;;
41+
13;"����� ��������������";geo;;;;;;1;1;1;;2;1546914610;1546915775;1;1;9;1;;
4242
14;"������� ������������ 1";profile-1;;;;;;1;1;7;;3;1546998996;1547005164;1;1;;3;;
43-
15;�����/������;discounts;�����/������;;;<p>�����/������<br></p>;<h1>�����/������</h1>;1;1;;;4;1550998313;1550998448;1;1;;1;;
43+
15;�����/������;discounts;�����/������;;;<p>�����/������<br></p>;<h1>�����/������</h1>;6;1;1;;4;1550998313;1551937919;1;1;3;1;31.173.100.121;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3724.8 Safari/537.36"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id;name;description;mark;status;add_rating;add_comments;use_filter;i18n
22
1;"������ ��� ������";"������ ��� ������";article;1;;;0;1
33
2;"������ ��� ������ ��������������";"���������� ����: ������, ������, �����. ������������ � ������� ���� ���������, � ��������� ����.";geo;1;;;0;1
4-
3;"������ ��� ������� ������������ 1";"������ ��� ������� ������������ 1";profile-1;1;;;0;1
4+
3;"������ ��� �������";"������ ��� ������� ������������ 1";profile;1;0;0;0;1
55
4;"������ ��� ����� � ������";"������ ��� ����� � ������";discounts;1;0;0;0;1
66
5;"������ ��� �������";"������ ��� �������";basket;1;0;0;0;1

console/migrations/csv/visit.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ id;created_at;document_id;ip;user_agent;user_id
44
3;1549366901;2;31.173.120.224;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.10 Safari/537.36";
55
4;1549794054;2;31.173.120.86;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.20 Safari/537.36";
66
5;1550998217;2;178.176.113.136;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3710.0 Safari/537.36";
7+
6;1551937826;2;31.173.100.121;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3724.8 Safari/537.36";

0 commit comments

Comments
 (0)