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 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 13:48:04 +01:00
parent 7cbbf3dec1
commit 6bc70afaf1

View File

@@ -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,