Skip to content

Commit

Permalink
Корректное округление суммы платежа по чеку
Browse files Browse the repository at this point in the history
  • Loading branch information
a1723 committed Mar 13, 2023
1 parent 36c5774 commit 29f8ee8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.0.1 (2023-03-13)
====================
- Корректное округление суммы платежа по чеку

3.0.0 (2022-01-19)
====================
- Корректная обработка купона в чеке
Expand Down
3 changes: 1 addition & 2 deletions install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modification>
<name>KOMTET Kassa</name>
<code>komtet_kassa</code>
<version>3.0.0</version>
<version>3.0.1</version>
<author>KOMTET</author>
<link>http://kassa.komtet.ru</link>
<file path="admin/controller/common/column_left.php">
Expand All @@ -23,4 +23,3 @@
</operation>
</file>
</modification>

5 changes: 4 additions & 1 deletion upload/system/library/komtetkassa.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ public function printCheck($orderID) {
$shipping_position->setCalculationSubject(CalculationSubject::SERVICE);
$check->addPosition($shipping_position);

$payment = new Payment(Payment::TYPE_CARD, round(($total + $totals['shipping'] - $discount)),2);
$payment = new Payment(
Payment::TYPE_CARD,
round($total + $totals['shipping'] - $discount , 2)
);
$check->addPayment($payment);

$client = new Client(
Expand Down

0 comments on commit 29f8ee8

Please sign in to comment.