From b0ee2cb802f9a90fa1e33dde87c44cca8858dbb1 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Wed, 15 Apr 2020 21:39:48 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BE=D1=87=D0=B8=20=D0=B2?= =?UTF-8?q?=20Kkt.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AtolOnline/Api/Kkt.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/AtolOnline/Api/Kkt.php b/src/AtolOnline/Api/Kkt.php index 7e695c4..65d9baa 100644 --- a/src/AtolOnline/Api/Kkt.php +++ b/src/AtolOnline/Api/Kkt.php @@ -225,7 +225,7 @@ class Kkt extends Client public function sell(Document $document) { if ($document->getCorrectionInfo()) { - throw new AtolCorrectionInfoException('В документе есть данные коррекции'); + throw new AtolCorrectionInfoException('Некорректная операция над документом коррекции'); } return $this->registerDocument('sell', 'receipt', $document); } @@ -243,7 +243,7 @@ class Kkt extends Client public function sellRefund(Document $document) { if ($document->getCorrectionInfo()) { - throw new AtolCorrectionInfoException('В документе есть данные коррекции'); + throw new AtolCorrectionInfoException('Некорректная операция над документом коррекции'); } return $this->registerDocument('sell_refund', 'receipt', $document->clearVats()); } @@ -277,7 +277,7 @@ class Kkt extends Client public function buy(Document $document) { if ($document->getCorrectionInfo()) { - throw new AtolCorrectionInfoException('В документе есть данные коррекции'); + throw new AtolCorrectionInfoException('Некорректная операция над документом коррекции'); } return $this->registerDocument('buy', 'receipt', $document); } @@ -295,7 +295,7 @@ class Kkt extends Client public function buyRefund(Document $document) { if ($document->getCorrectionInfo()) { - throw new AtolCorrectionInfoException('В документе есть данные коррекции'); + throw new AtolCorrectionInfoException('Некорректная операция над документом коррекции'); } return $this->registerDocument('buy_refund', 'receipt', $document->clearVats()); } @@ -370,7 +370,6 @@ class Kkt extends Client $this->kkt_config['prod']['pass'] = ''; $this->kkt_config['prod']['url'] = 'https://online.atol.ru/possystem/v4'; $this->kkt_config['prod']['callback_url'] = ''; - $this->kkt_config['test']['group'] = 'v4-online-atol-ru_4179'; $this->kkt_config['test']['login'] = 'v4-online-atol-ru'; $this->kkt_config['test']['pass'] = 'iGFFuihss';