From e7d64d073a48f1da62316ffa85d9b28519d8994a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 14 Apr 2021 23:14:38 +0200 Subject: [PATCH] Look and feel v14 --- htdocs/compta/tva/card.php | 26 +++++++++++++++----------- htdocs/salaries/card.php | 14 ++++++++++---- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/htdocs/compta/tva/card.php b/htdocs/compta/tva/card.php index da07472719b..91cf572b9c6 100755 --- a/htdocs/compta/tva/card.php +++ b/htdocs/compta/tva/card.php @@ -415,11 +415,6 @@ if ($action == 'create') { print ''; - print ''; - print ''; - print ''; @@ -435,6 +430,17 @@ if ($action == 'create') { // Amount print ''; + print ''; + + // Auto create payment + print ''; + print ''."\n"; + + print ''; + print ''; + // Type payment print ''; } - // Auto create payment - print ''; - print ''."\n"; - // Number print ''; @@ -500,7 +500,7 @@ if ($action == 'create') { // Type payment print ''; @@ -526,10 +526,10 @@ if ($action == 'create') { } // Bouton Save payment - print ''; - +*/ // Other attributes $parameters = array(); $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook @@ -543,6 +543,12 @@ if ($action == 'create') { print dol_get_fiche_end(); print '
'; + + print '
'; + print ''.$langs->trans("ClosePaidSalaryAutomatically"); + print '
'; + print '
'; + print ''; print '     '; print '';
'.$langs->trans("DatePayment").''; - print $form->selectDate($datep, "datep", '', '', '', 'add', 1, 1); - print '
'.$form->textwithpicto($langs->trans("PeriodEndDate"), $langs->trans("LastDayTaxIsRelatedTo")).''; print $form->selectDate((GETPOST("datevmonth", 'int') ? $datev : -1), "datev", '', '', '', 'add', 1, 1); print '
'.$langs->trans("Amount").'

'.$langs->trans('AutomaticCreationPayment').'
'.$langs->trans("DatePayment").''; + print $form->selectDate($datep, "datep", '', '', '', 'add', 1, 1); + print '
'.$langs->trans("PaymentMode").''; $form->select_types_paiements(GETPOST("type_payment"), "type_payment"); @@ -448,10 +454,6 @@ if ($action == 'create') { print '
'.$langs->trans('AutomaticCreationPayment').'
'.$langs->trans('Numero'); print ' ('.$langs->trans("ChequeOrTransferNumber").')'; @@ -473,9 +475,11 @@ if ($action == 'create') { print dol_get_fiche_end(); print '
'; - print ''; + print '
'; print ' '.$langs->trans("ClosePaidVATAutomatically").''; - print '
'; + print '
'; + print '
'; + print ''; print '     '; print ''; diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php index b9042ca6c21..ad28bcca999 100755 --- a/htdocs/salaries/card.php +++ b/htdocs/salaries/card.php @@ -492,7 +492,7 @@ if ($action == 'create') { // Bank if (!empty($conf->banque->enabled)) { print '
'; - print $form->editfieldkey('DefaultBankAccount', 'selectaccountid', '', $object, 0, 'string', '', 1).''; + print $form->editfieldkey('BankAccount', 'selectaccountid', '', $object, 0, 'string', '', 1).''; print img_picto('', 'bank_account', 'class="paddingrighonly"'); $form->select_comptes($accountid, "accountid", 0, '', 1); // Affiche liste des comptes courant print '
'; - print $form->editfieldkey('DefaultPaymentMode', 'selectpaymenttype', '', $object, 0, 'string', '', 1).''; + print $form->editfieldkey('PaymentMode', 'selectpaymenttype', '', $object, 0, 'string', '', 1).''; $form->select_types_paiements(GETPOST("paymenttype", 'aZ09'), "paymenttype", ''); print '
'; +/* print '
'; print $langs->trans("ClosePaidSalaryAutomatically"); print '