From d8f77f58d7c5e961442658ca4bc04f5f9e2444a1 Mon Sep 17 00:00:00 2001 From: aspangaro Date: Mon, 2 Nov 2015 06:42:17 +0100 Subject: [PATCH] Salaries : Replace "label for" by the function fieldLabel & add some notes --- htdocs/compta/salaries/card.php | 54 ++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/htdocs/compta/salaries/card.php b/htdocs/compta/salaries/card.php index e658633e7b0..969b840aeb9 100644 --- a/htdocs/compta/salaries/card.php +++ b/htdocs/compta/salaries/card.php @@ -201,7 +201,11 @@ if ($id) } } -// Formulaire saisie salaire +/* ************************************************************************** */ +/* */ +/* create mode */ +/* */ +/* ************************************************************************** */ if ($action == 'create') { $year_current = strftime("%Y",dol_now()); @@ -231,50 +235,64 @@ if ($action == 'create') print ''; - print ""; - print ''; - print ''; // Employee - print ""; - print ''; // Label - print ''; + print ''; - print ""; - print ''; - print ''; // Amount - print ''; + print ''; // Bank if (! empty($conf->banque->enabled)) { - print ''; } // Type payment - print '\n"; - print ""; + print ''; + // Number if (! empty($conf->banque->enabled)) { // Number @@ -304,7 +322,7 @@ if ($action == 'create') /* ************************************************************************** */ /* */ -/* Barre d'action */ +/* View mode */ /* */ /* ************************************************************************** */ @@ -322,8 +340,8 @@ if ($id) print $object->ref; print ''; - // Person - print '
'; + // Date payment + print '
'; + print fieldLabel('DatePayment','datep',1).''; print $form->select_date((empty($datep)?-1:$datep),"datep",'','','','add',1,1); print '
'; + // Date value for bank + print '
'; + print fieldLabel('DateValue','datev',0).''; print $form->select_date((empty($datev)?-1:$datev),"datev",'','','','add',1,1); print '
'; + print '
'; + print fieldLabel('Employee','fk_user',1).''; print $form->select_dolusers(GETPOST('fk_user','int'),'fk_user',1); print '
trans("SalaryPayment")).'">
'; + print fieldLabel('Label','label',1).''; + print 'trans("SalaryPayment")).'">'; + print '
'; + // Date start period + print '
'; + print fieldLabel('DateStartPeriod','datesp',1).''; print $form->select_date($datesp,"datesp",'','','','add'); print '
'; + // Date end period + print '
'; + print fieldLabel('DateEndPeriod','dateep',1).''; print $form->select_date($dateep,"dateep",'','','','add'); print '
'; + print fieldLabel('Amount','amount',1).''; + print ''; + print '
'; + print '
'; + print fieldLabel('Account','selectaccountid',1).''; $form->select_comptes($_POST["accountid"],"accountid",0,'',1); // Affiche liste des comptes courant print '
'; + print '
'; + print fieldLabel('PaymentMode','selectpaymenttype',1).''; $form->select_types_paiements(GETPOST("paymenttype"), "paymenttype"); - print "
'.$langs->trans("Person").''; + // Employee + print '
'.$langs->trans("Employee").''; $usersal=new User($db); $usersal->fetch($object->fk_user); print $usersal->getNomUrl(1);