From b17463bcbca8885cab99123f039b17c97a6bca44 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Mon, 23 Feb 2026 11:44:11 +0100 Subject: [PATCH] =?UTF-8?q?ver.=200.313:=20fix=20sync=20p=C5=82atno=C5=9Bc?= =?UTF-8?q?i=20Apilo=20+=20logowanie=20decyzji=20sync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix: (int) cast na apilo_order_id (format "PPxxxxxx") dawał 0, przez co syncApiloPayment() i syncApiloStatus() pomijały wywołanie API Apilo. Zmiana na empty() w obu metodach. New: logowanie ApiloLogger w syncApiloPaymentIfNeeded() i syncApiloStatusIfNeeded() — każda ścieżka decyzyjna zapisuje wpis do pp_log z kontekstem. Co-Authored-By: Claude Opus 4.6 --- admin/templates/shop-order/order-details.php | 13 ++++ autoload/Domain/Order/OrderAdminService.php | 76 +++++++++++++++++++- docs/CHANGELOG.md | 7 ++ updates/versions.php | 2 +- 4 files changed, 95 insertions(+), 3 deletions(-) diff --git a/admin/templates/shop-order/order-details.php b/admin/templates/shop-order/order-details.php index a8acd83..2135fbd 100644 --- a/admin/templates/shop-order/order-details.php +++ b/admin/templates/shop-order/order-details.php @@ -89,6 +89,19 @@ $orderId = (int)($this -> order['id'] ?? 0);
order[ 'payment_method' ];?>
+ order['apilo_order_id']) ):?> +
+
+ Apilo: tak + — ID: order['apilo_order_id'], ENT_QUOTES, 'UTF-8');?> + +
+ +
+
+ Apilo: nie +
+