Skip to content

Commit

Permalink
Fixed resend of refund in case of non-fatal error (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mavlyan authored Jul 30, 2020
1 parent 4bbb08a commit dcdb14d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Model/Queue/Consumer/RefundConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private function sendRefundRequest($request)

$request->setIgnoreTrialsNum(false);
$this->increaseExternalId($request);
$this->publisher->publish(Processor::TOPIC_NAME_SELL, $request);
$this->publisher->publish(Processor::TOPIC_NAME_REFUND, $request);
} catch (VendorBadServerAnswerException $e) {
$this->helper->critical($e->getMessage());

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mygento/module-kkm",
"type": "magento2-module",
"version": "2.3.15",
"version": "2.3.16",
"license": "OSL-3.0",
"description": "Модуль интеграции фискальных кассовых аппаратов для Magento в соответствии с 54-ФЗ",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Mygento_Kkm" setup_version="2.3.15">
<module name="Mygento_Kkm" setup_version="2.3.16">
<sequence>
<module name="Mygento_Base"/>
</sequence>
Expand Down

0 comments on commit dcdb14d

Please sign in to comment.