Fix: Avoid duplicate line
This commit is contained in:
parent
efcbc2696a
commit
7950ab2677
@ -144,7 +144,7 @@ if ($resql)
|
|||||||
print_fiche_titre($langs->trans("Reconciliation").': <a href="account.php?account='.$_GET["account"].'">'.$acct->label.'</a>');
|
print_fiche_titre($langs->trans("Reconciliation").': <a href="account.php?account='.$_GET["account"].'">'.$acct->label.'</a>');
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
if ($mesg) print $mesg."<br>";
|
dol_htmloutput_mesg($mesg);
|
||||||
|
|
||||||
// Show last bank receipts
|
// Show last bank receipts
|
||||||
$nbmax=5;
|
$nbmax=5;
|
||||||
@ -245,8 +245,8 @@ if ($resql)
|
|||||||
$links = $acct->get_url($objp->rowid);
|
$links = $acct->get_url($objp->rowid);
|
||||||
foreach($links as $key=>$val)
|
foreach($links as $key=>$val)
|
||||||
{
|
{
|
||||||
if (! $newline) print ' - ';
|
if ($newline == 0) print ' - ';
|
||||||
else print '<br>';
|
else if ($newline == 1) print '<br>';
|
||||||
if ($links[$key]['type']=='payment') {
|
if ($links[$key]['type']=='payment') {
|
||||||
$paymentstatic->id=$links[$key]['url_id'];
|
$paymentstatic->id=$links[$key]['url_id'];
|
||||||
print ' '.$paymentstatic->getNomUrl(2);
|
print ' '.$paymentstatic->getNomUrl(2);
|
||||||
@ -259,10 +259,9 @@ if ($resql)
|
|||||||
$newline=0;
|
$newline=0;
|
||||||
}
|
}
|
||||||
elseif ($links[$key]['type']=='company') {
|
elseif ($links[$key]['type']=='company') {
|
||||||
print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$links[$key]['url_id'].'">';
|
$societestatic->id=$links[$key]['url_id'];
|
||||||
print img_object($langs->trans('ShowCustomer'),'company').' ';
|
$societestatic->name=$links[$key]['label'];
|
||||||
print dol_trunc($links[$key]['label'],24);
|
print $societestatic->getNomUrl(1,'',24);
|
||||||
print '</a>';
|
|
||||||
$newline=0;
|
$newline=0;
|
||||||
}
|
}
|
||||||
else if ($links[$key]['type']=='sc') {
|
else if ($links[$key]['type']=='sc') {
|
||||||
@ -273,13 +272,12 @@ if ($resql)
|
|||||||
}
|
}
|
||||||
else if ($links[$key]['type']=='payment_sc')
|
else if ($links[$key]['type']=='payment_sc')
|
||||||
{
|
{
|
||||||
//print ' - ';
|
// We don't show anything because there is 1 payment for 1 social contribution and we already show link to social contribution
|
||||||
/*
|
/*print '<a href="'.DOL_URL_ROOT.'/compta/payment_sc/fiche.php?id='.$links[$key]['url_id'].'">';
|
||||||
print '<a href="'.DOL_URL_ROOT.'/compta/sociales/xxx.php?id='.$links[$key]['url_id'].'">';
|
print img_object($langs->trans('ShowPayment'),'payment').' ';
|
||||||
//print img_object($langs->trans('ShowPayment'),'payment').' ';
|
|
||||||
print $langs->trans("SocialContributionPayment");
|
print $langs->trans("SocialContributionPayment");
|
||||||
print '</a>';
|
print '</a>';*/
|
||||||
*/
|
$newline=2;
|
||||||
}
|
}
|
||||||
else if ($links[$key]['type']=='payment_vat')
|
else if ($links[$key]['type']=='payment_vat')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -397,7 +397,7 @@ if ($chid > 0)
|
|||||||
|
|
||||||
if ($action == 'edit')
|
if ($action == 'edit')
|
||||||
{
|
{
|
||||||
print '<div align="center">';
|
print '<br><div align="center">';
|
||||||
print '<input type="submit" class="button" name="save" value="'.$langs->trans("Save").'">';
|
print '<input type="submit" class="button" name="save" value="'.$langs->trans("Save").'">';
|
||||||
print ' ';
|
print ' ';
|
||||||
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user