From 7cbbf3dec18a59ccb45acf94ee3a88144c5af5f6 Mon Sep 17 00:00:00 2001 From: Malin Date: Tue, 17 Feb 2026 13:45:47 +0100 Subject: [PATCH] fix: use Asset_No instead of Product_No for ListaPrecios filter Product_No doesn't exist on NAV.ListaPrecios, the correct field is Asset_No (field 8). 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 5b7f8a6..740d796 100644 --- a/woo-business-central/includes/class-wbc-product-sync.php +++ b/woo-business-central/includes/class-wbc-product-sync.php @@ -308,7 +308,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 Product_No eq '" . $escaped_number . "'", + . " and Asset_No eq '" . $escaped_number . "'", '$select' => 'Unit_Price', '$top' => 1, ) );