Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

Commit

Permalink
fix(Taxes) use function to get shipping taxes so we call the events
Browse files Browse the repository at this point in the history
  • Loading branch information
joebordes committed May 18, 2024
1 parent f17272d commit c79747e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/Webservices/ProductLines.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c79747e

Please sign in to comment.