From 8dc8297afe1203931fa9e694b599b74ac0829946 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 15 Mar 2012 09:19:38 +0100 Subject: [PATCH] Fix: missing tva rates of supplier --- htdocs/fourn/commande/fiche.php | 7 ++++--- htdocs/fourn/facture/fiche.php | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index ac741e683f3..677c477bb02 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -2,7 +2,7 @@ /* Copyright (C) 2004-2006 Rodolphe Quiedeville * Copyright (C) 2004-2012 Laurent Destailleur * Copyright (C) 2005 Eric Seigne - * Copyright (C) 2005-2011 Regis Houssin + * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2010-2011 Juanjo Menent * Copyright (C) 2011 Philippe Grand * @@ -1231,7 +1231,7 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; - print $form->load_tva('tva_tx',$line->tva_tx); + print $form->load_tva('tva_tx',$line->tva_tx,$soc,$mysoc); print ''; print ''; print ''; @@ -1605,7 +1605,8 @@ if ($id > 0 || ! empty($ref)) } } -$db->close(); +// End of page llxFooter(); +$db->close(); ?> diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 9debd0a0827..d0acf26d822 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -1060,7 +1060,8 @@ if ($action == 'create') } else { - if ($conf->global->PRODUCT_SHOW_WHEN_CREATE) + // TODO more bugs + if (1==2 && $conf->global->PRODUCT_SHOW_WHEN_CREATE) { print ''; print ' '.$langs->trans('Label').''; @@ -1838,7 +1839,8 @@ else } } -llxFooter(); +// End of page +llxFooter(); $db->close(); ?>