From a9dd9d6dfcf6ede725531a678c46dbdd7dd442d4 Mon Sep 17 00:00:00 2001 From: aspangaro Date: Sun, 3 Nov 2013 15:07:26 +0100 Subject: [PATCH] Modify the presentation of the card --- htdocs/compta/sociales/charges.php | 38 ++++++++++++++---------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index 2ec6539db9e..adc5fb8ae74 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -297,20 +297,7 @@ if ($id > 0) } // Type - print "".$langs->trans("Type")."".$object->type_libelle."".$langs->trans("Payments").""; - - // Period end date - print "".$langs->trans("PeriodEndDate").""; - print ""; - if ($action == 'edit') - { - print $form->select_date($object->periode, 'period', 0, 0, 0, 'charge', 1); - } - else - { - print dol_print_date($object->periode,"day"); - } - print ""; + print "".$langs->trans("Type")."".$object->type_libelle.""; $rowspan=5; print ''; @@ -337,8 +324,8 @@ if ($id > 0) $i = 0; $total = 0; echo ''; print ''; - print ''; - print ''; + print ''; + print ''; $var=True; while ($i < $num) @@ -349,12 +336,12 @@ if ($id > 0) print ''.img_object($langs->trans("Payment"),"payment").' '; print dol_print_date($db->jdate($objp->dp),'day')."\n"; print "\n"; - print '\n"; + print '\n"; print ""; $totalpaye += $objp->amount; $i++; } - + if ($object->paye == 0) { print "\n"; @@ -376,6 +363,19 @@ if ($id > 0) print ""; + // Period end date + print ""; + print ""; + // Due date if ($action == 'edit') { @@ -393,8 +393,6 @@ if ($id > 0) // Status print ''; - print ''; - print '
'.$langs->trans("Date").''.$langs->trans("Type").''.$langs->trans("Amount").' 
'.$langs->trans("Payments").''.$langs->trans("Type").''.$langs->trans("Amount").' 
".$objp->paiement_type.' '.$objp->num_paiement."'.price($objp->amount)." ".$langs->trans("Currency".$conf->currency)."'.price($objp->amount)." ".$langs->trans("Currency".$conf->currency)."
".$langs->trans("AlreadyPaid")." :".price($totalpaye)." ".$langs->trans("Currency".$conf->currency)."
".$langs->trans("PeriodEndDate").""; + if ($action == 'edit') + { + print $form->select_date($object->periode, 'period', 0, 0, 0, 'charge', 1); + } + else + { + print dol_print_date($object->periode,"day"); + } + print "
'.$langs->trans("Status").''.$object->getLibStatut(4).'
 
'; if ($action == 'edit')