From 6bc70afaf19d090184e849acecd050e0078e5aaa Mon Sep 17 00:00:00 2001 From: Malin Date: Tue, 17 Feb 2026 13:48:04 +0100 Subject: [PATCH] fix: use English enum value 'Active' for Status filter BC OData filter options are in English (Draft/Active/Inactive), not the localized display values. Co-Authored-By: Claude Opus 4.6 --- woo-business-central/includes/class-wbc-product-sync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woo-business-central/includes/class-wbc-product-sync.php b/woo-business-central/includes/class-wbc-product-sync.php index 740d796..29f28ac 100644 --- a/woo-business-central/includes/class-wbc-product-sync.php +++ b/woo-business-central/includes/class-wbc-product-sync.php @@ -307,7 +307,7 @@ class WBC_Product_Sync { $result = WBC_API_Client::odata_get( 'ListaPrecios', array( '$filter' => "Price_List_Code eq '" . $escaped_code . "'" - . " and Status eq 'Activo'" + . " and Status eq 'Active'" . " and Asset_No eq '" . $escaped_number . "'", '$select' => 'Unit_Price', '$top' => 1,