From b31d5d7f7525b266174f56a2e2dbfe2461430c37 Mon Sep 17 00:00:00 2001 From: aspangaro Date: Thu, 8 Dec 2016 22:50:03 +0100 Subject: [PATCH] VAT - Correct presentation on card --- htdocs/compta/tva/card.php | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/htdocs/compta/tva/card.php b/htdocs/compta/tva/card.php index 17bcd80757c..8646489db0b 100644 --- a/htdocs/compta/tva/card.php +++ b/htdocs/compta/tva/card.php @@ -236,13 +236,13 @@ if ($action == 'create') print ''; print ''; print "
\n"; - + dol_fiche_head(); print ''; print ""; - print ''; @@ -263,7 +263,7 @@ if ($action == 'create') if (! empty($conf->banque->enabled)) { - print ''; } @@ -273,12 +273,12 @@ if ($action == 'create') $form->select_types_paiements(GETPOST("type_payment"), "type_payment"); print "\n"; print ""; - + // Number print ''."\n"; - + // Other attributes $parameters=array('colspan' => ' colspan="1"'); $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook @@ -296,13 +296,7 @@ if ($action == 'create') print ''; } - -/* ************************************************************************** */ -/* */ -/* Barre d'action */ -/* */ -/* ************************************************************************** */ - +// View mode if ($id) { $h = 0; @@ -317,7 +311,7 @@ if ($id) print '
'.$langs->trans("DatePayment").''; + print ''.$langs->trans("DatePayment").''; print $form->select_date($datep,"datep",'','','','add',1,1); print '
'.$langs->trans("Account").''; + print '
'.$langs->trans("BankAccount").''; $form->select_comptes($_POST["accountid"],"accountid",0,"courant=1",1); // Affiche liste des comptes courant print '
'.$langs->trans('Numero'); print ' ('.$langs->trans("ChequeOrTransferNumber").')'; print '
'; print ""; - print ''; @@ -325,19 +319,19 @@ if ($id) print ''; print ""; - print ''; print ''; - print ''; + print ''; if (! empty($conf->banque->enabled)) { @@ -348,7 +342,7 @@ if ($id) print ''; print ''; - print ''; print ''; @@ -356,14 +350,12 @@ if ($id) } // Other attributes - $parameters=array('colspan' => ' colspan="3"'); - $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook + $reshook=$hookmanager->executeHooks('formObjectOptions','',$object,$action); // Note that $action and $object may have been modified by hook print '
'.$langs->trans("Ref").''; + print ''.$langs->trans("Ref").''; print $object->ref; print '
'.$langs->trans("Label").''.$object->label.'
'.$langs->trans("DatePayment").''; + print ''.$langs->trans("DatePayment").''; print dol_print_date($object->datep,'day'); print '
'; print $form->editfieldkey("DateValue", 'datev', $object->datev, $object, $user->rights->tax->charges->creer, 'day'); - print ''; + print ''; print $form->editfieldval("DateValue", 'datev', $object->datev, $object, $user->rights->tax->charges->creer, 'day'); //print dol_print_date($object->datev,'day'); print '
'.$langs->trans("Amount").''.price($object->amount).'
'.$langs->trans("Amount").''.price($object->amount).'
'.$langs->trans('BankTransactionLine').''; + print ''; print $bankline->getNomUrl(1,0,'showall'); print '
'; dol_fiche_end(); - /* * Action buttons */