';
// Ref
-print '| '.$langs->trans('Ref').' | ';
+/*print '
| ';
-print $form->showrefnav($payment,'id','',1,'rowid','id');
+print $form->showrefnav($object,'id','',1,'rowid','id');
print ' |
';
+*/
// Date
-print '| '.$langs->trans('Date').' | '.dol_print_date($payment->datep,'day').' |
';
+print '| '.$langs->trans('Date').' | '.dol_print_date($object->datep,'day').' |
';
// Mode
-print '| '.$langs->trans('Mode').' | '.$langs->trans("PaymentType".$payment->type_code).' |
';
+print '| '.$langs->trans('Mode').' | '.$langs->trans("PaymentType".$object->type_code).' |
';
// Number
-print '| '.$langs->trans('Number').' | '.$payment->num_payment.' |
';
+print '| '.$langs->trans('Number').' | '.$object->num_payment.' |
';
// Amount
-print '| '.$langs->trans('Amount').' | '.price($payment->amount, 0, $outputlangs, 1, -1, -1, $conf->currency).' |
';
+print '| '.$langs->trans('Amount').' | '.price($object->amount, 0, $outputlangs, 1, -1, -1, $conf->currency).' |
';
// Note
-print '| '.$langs->trans('Note').' | '.nl2br($payment->note).' |
';
+print '| '.$langs->trans('Note').' | '.nl2br($object->note).' |
';
// Bank account
if (! empty($conf->banque->enabled))
{
- if ($payment->bank_account)
+ if ($object->bank_account)
{
$bankline=new AccountLine($db);
- $bankline->fetch($payment->bank_line);
+ $bankline->fetch($object->bank_line);
print '';
print '| '.$langs->trans('BankTransactionLine').' | ';
- print '';
+ print ' | ';
print $bankline->getNomUrl(1,0,'showall');
print ' | ';
print '
';
@@ -269,7 +274,7 @@ print '';
/*
if (! empty($conf->global->BILL_ADD_PAYMENT_VALIDATION))
{
- if ($user->societe_id == 0 && $payment->statut == 0 && $_GET['action'] == '')
+ if ($user->societe_id == 0 && $object->statut == 0 && $_GET['action'] == '')
{
if ($user->rights->facture->paiement)
{