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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user