From c79747e1ab98bce62f36f4183da7830804debff7 Mon Sep 17 00:00:00 2001 From: Joe Bordes Date: Fri, 17 May 2024 22:13:43 +0200 Subject: [PATCH] fix(Taxes) use function to get shipping taxes so we call the events --- include/Webservices/ProductLines.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/Webservices/ProductLines.php b/include/Webservices/ProductLines.php index f4b0f78ae4..50c630cd7d 100644 --- a/include/Webservices/ProductLines.php +++ b/include/Webservices/ProductLines.php @@ -131,8 +131,7 @@ if (!empty($element['shipping_handling_charge'])) { $_REQUEST['shipping_handling_charge']=$element['shipping_handling_charge']; $totaldoc=$totaldoc+$element['shipping_handling_charge']; - $shtaxes=$adb->query('select taxname from vtiger_shippingtaxinfo where deleted=0'); - while ($sht=$adb->fetch_array($shtaxes)) { + foreach (getAllTaxes('all', 'sh') as $sht) { $shname=$sht['taxname']; if (!empty($element[$shname])) { $_REQUEST[$shname.'_sh_percent'] = $element[$shname];