diff --git a/htdocs/loan/card.php b/htdocs/loan/card.php index 8e280b2da75..670f2180bf0 100644 --- a/htdocs/loan/card.php +++ b/htdocs/loan/card.php @@ -425,15 +425,18 @@ if ($id > 0) if ($resql) { $num = $db->num_rows($resql); - $i = 0; $total = 0; + $i = 0; + $total_insurance = 0; + $total_interest = 0; + $total_capital = 0; echo '
| '.$langs->trans("RefPayment").' | '; print ''.$langs->trans("Date").' | '; print ''.$langs->trans("Type").' | '; - print ''.$langs->trans("Insurance").' | '; - print ''.$langs->trans("Interest").' | '; - print ''.$langs->trans("Capital").' | '; + print ''.$langs->trans("Insurance").' | '; + print ''.$langs->trans("Interest").' | '; + print ''.$langs->trans("Capital").' | '; print ''; print ' | |||
| "; - print ''.img_object($langs->trans("Payment"),"payment").' '.$objp->rowid.' | '; + print "||||||||||||
| '.img_object($langs->trans("Payment"),"payment").' '.$objp->rowid.' | '; print ''.dol_print_date($db->jdate($objp->dp),'day')." | \n"; print "".$objp->paiement_type.' '.$objp->num_payment." | \n"; - print ''.price($objp->amount_insurance)." | ".$langs->trans("Currency".$conf->currency)." | \n"; - print ''.price($objp->amount_interest)." | ".$langs->trans("Currency".$conf->currency)." | \n"; - print ''.price($objp->amount_capital)." | ".$langs->trans("Currency".$conf->currency)." | \n"; + print ''.price($objp->amount_insurance, 0, $langs, 0, 0, -1, $conf->currency)." | \n"; + print ''.price($objp->amount_interest, 0, $langs, 0, 0, -1, $conf->currency)." | \n"; + print ''.price($objp->amount_capital, 0, $langs, 0, 0, -1, $conf->currency)." | \n"; print "|
| '.$langs->trans("AlreadyPaid").' : | '.price($totalpaid).' | '.$langs->trans("Currency".$conf->currency).' | ||||||||||
| '.$langs->trans("AmountExpected").' : | '.price($object->capital).' | '.$langs->trans("Currency".$conf->currency).' | ||||||||||
| '.$langs->trans("AlreadyPaid").' : | '.price($totalpaid, 0, $langs, 0, 0, -1, $conf->currency).' | |||||||||||
| '.$langs->trans("AmountExpected").' : | '.price($object->capital, 0, $langs, 0, 0, -1, $conf->currency).' | |||||||||||
| '.$langs->trans("RemainderToPay").' : | '; - print ''.price($staytopay).' | '.$langs->trans("Currency".$conf->currency).' | ||||||||||
| '.$langs->trans("RemainderToPay").' : | '; + print ''.price($staytopay, 0, $langs, 0, 0, -1, $conf->currency).' | |||||||||||