diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index fe59b544e3e..c055642803d 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -1069,12 +1069,12 @@ if (! empty($object->id)) if ($mysoc->country_code=='ES') { if($mysoc->localtax1_assuj=="1") $nbrow++; - if($mysoc->localtax2_assuj=="1") $nbrow++; + if($object->thirdparty->localtax2_assuj=="1") $nbrow++; } else { if($mysoc->localtax1_assuj=="1") $nbrow++; - if($object->thirdparty->localtax2_assuj=="1") $nbrow++; + if($mysoc->localtax2_assuj=="1") $nbrow++; } print '';