fix: correct ListaPrecios OData field names and enum values

Source_Type (not Assign_to_Type), Status='Activo' and
Source_Type='Todos los clientes' (Spanish enum values from BC).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 13:38:25 +01:00
parent 2495b82e66
commit 7ce028b7b8

View File

@@ -308,8 +308,8 @@ class WBC_Product_Sync {
$result = WBC_API_Client::odata_get( 'ListaPrecios', array(
'$filter' => "Price_List_Code eq '" . $escaped_code . "'"
. " and Status eq 'Active'"
. " and Assign_to_Type eq 'All Customers'"
. " and Status eq 'Activo'"
. " and Source_Type eq 'Todos los clientes'"
. " and Product_No eq '" . $escaped_number . "'",
'$select' => 'Unit_Price',
'$top' => 1,