From c639d803720609f55c13bfc9525c3503491e4951 Mon Sep 17 00:00:00 2001 From: simnandez Date: Sat, 5 Jan 2013 09:47:54 +0100 Subject: [PATCH] Fix: [ bug #662 ] Bad aplication of Localtax2 for suppliers if country is Spain --- htdocs/fourn/commande/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 '';