Skip to content

Commit

Permalink
убрал комментарии
Browse files Browse the repository at this point in the history
  • Loading branch information
a1723 committed Jun 7, 2022
1 parent 1b11981 commit fc381f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/includes/class-komtetkassa-report.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
}
5 changes: 0 additions & 5 deletions src/komtetkassa.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit fc381f4

Please sign in to comment.