From fc381f4d8ac72801381da0d69d876b7d684e03f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D0=BD=D0=BE=D0=B2=D0=B0=D0=BB=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Tue, 7 Jun 2022 16:44:51 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/includes/class-komtetkassa-report.php | 2 -- src/komtetkassa.php | 5 ----- 2 files changed, 7 deletions(-) diff --git a/src/includes/class-komtetkassa-report.php b/src/includes/class-komtetkassa-report.php index 2786fb7..eb1fa06 100644 --- a/src/includes/class-komtetkassa-report.php +++ b/src/includes/class-komtetkassa-report.php @@ -181,8 +181,6 @@ public function get_check_calculation_method($order_id) ) ); - // var_dump(json_decode($order_report_data->report_data, true)); die(); - // return json_decode($order_report_data->report_data, true); return json_decode($order_report_data->report_data, true)['positions'][0]['calculation_method']; } } diff --git a/src/komtetkassa.php b/src/komtetkassa.php index bd029bc..c25c3ad 100644 --- a/src/komtetkassa.php +++ b/src/komtetkassa.php @@ -138,8 +138,6 @@ public function vatRates() # Собираем позиции для чека, если параметры соответствуют условиям, иначе прерываем процесс фискализации public function setPositionProps($order, $order_id, $position, $calculation_subject = CalculationSubject::PRODUCT) { - // var_dump($this->report->get_check_calculation_method($order_id)); - // die(); if ($order->get_status() == get_option('komtetkassa_fiscalize_pre_payment_full')) { $position->setCalculationSubject(CalculationSubject::PAYMENT); $position->setCalculationMethod(CalculationMethod::PRE_PAYMENT_FULL); @@ -184,9 +182,6 @@ public function fiscalize($order_id) return; } - // var_dump($order->get_payment_method() == true); - // die(); - if (!in_array($order->get_payment_method(), get_option("komtet_kassa_payment_systems"))) { return; }