';
$moreforfilter .= $langs->trans('DateOperationShort').' : ';
- $moreforfilter .= '
';
$moreforfilter .= $langs->trans('DateValueShort').' : ';
- $moreforfilter .= '
'.$langs->trans('From') . ' ';
+ $moreforfilter .= '
'.$langs->trans('From') . ' ';
$moreforfilter .= $form->select_date($search_dv_start, 'search_start_dv', 0, 0, 1, "search_form", 1, 0, 1).'
';
- $moreforfilter .= ' - ';
- $moreforfilter .= '
'.$langs->trans('to') . ' ' . $form->select_date($search_dv_end, 'search_end_dv', 0, 0, 1, "search_form", 1, 0, 1).'
';
+ //$moreforfilter .= ' - ';
+ $moreforfilter .= '
'.$langs->trans('to') . ' ' . $form->select_date($search_dv_end, 'search_end_dv', 0, 0, 1, "search_form", 1, 0, 1).'
';
$moreforfilter .= '
';
$parameters=array();
@@ -1090,7 +1090,7 @@ if ($resql)
print '
';
print ''.dol_print_date($db->jdate($objp->dv),"day")."";
print ' ';
- print '';
+ print '';
print '';
print img_edit_remove() . " ";
print '';
diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php
index b0437ee9e1b..d4a69d13a5b 100644
--- a/htdocs/compta/bank/class/account.class.php
+++ b/htdocs/compta/bank/class/account.class.php
@@ -1224,8 +1224,9 @@ class Account extends CommonObject
$label .= ' ' . $langs->trans('AccountNumber') . ': ' . $this->number;
if (! empty($conf->accounting->enabled))
{
+ include_once DOL_DOCUMENT_ROOT.'/core/lib/accounting.lib.php';
$langs->load("accountancy");
- $label .= ' ' . $langs->trans('AccountAccounting') . ': ' . $this->account_number;
+ $label .= ' ' . $langs->trans('AccountAccounting') . ': ' . length_accountg($this->account_number);
$label .= ' ' . $langs->trans('AccountancyJournal') . ': ' . $this->accountancy_journal;
}
$linkclose = '" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php
index c1381be0ea5..51295cd0cf1 100644
--- a/htdocs/compta/facture/fiche-rec.php
+++ b/htdocs/compta/facture/fiche-rec.php
@@ -712,11 +712,11 @@ if (empty($reshook))
$array_options = $extrafieldsline->getOptionalsFromPost($extralabelsline);
// Unset extrafield
if (is_array($extralabelsline))
- {
+ {
// Get extra fields
foreach ($extralabelsline as $key => $value)
- {
- unset($_POST["options_" . $key]);
+ {
+ unset($_POST["options_" . $key]);
}
}
@@ -1610,7 +1610,10 @@ else
print $langs->trans("ToCreateAPredefinedInvoice", $langs->transnoentitiesnoconv("ChangeIntoRepeatableInvoice")).'
';
$i = 0;
- print '';
+
+ print '';
+ print ' '."\n";
+
print '';
print_liste_field_titre($langs->trans("Ref"),$_SERVER['PHP_SELF'],"f.titre","",$param,"",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("ThirdParty"),$_SERVER['PHP_SELF'],"s.nom","",$param,"",$sortfield,$sortorder);
@@ -1780,6 +1783,9 @@ else
else print ' | '.$langs->trans("NoneF").' | ';
print " ";
+ print " ";
+ print "";
+
$db->free($resql);
}
else
diff --git a/htdocs/compta/paiement/cheque/list.php b/htdocs/compta/paiement/cheque/list.php
index df02264badc..df507490aec 100644
--- a/htdocs/compta/paiement/cheque/list.php
+++ b/htdocs/compta/paiement/cheque/list.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2007-2009 Laurent Destailleur
+ * Copyright (C) 2007-2016 Laurent Destailleur
* Copyright (C) 2009-2012 Regis Houssin
* Copyright (C) 2014 Alexandre Spangaro
* Copyright (C) 2016 Juanjo Menent
@@ -62,8 +62,13 @@ $formother = new FormOther($db);
$checkdepositstatic=new RemiseCheque($db);
$accountstatic=new Account($db);
+
+/*
+ * Actions
+ */
+
// If click on purge search criteria ?
-if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter")) // Both test are required to be compatible with all browsers
+if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter.x") || GETPOST("button_removefilter")) // All tests are required to be compatible with all browsers
{
$search_ref='';
$search_amount='';
@@ -72,6 +77,8 @@ if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter")) // Both
$month='';
}
+
+
/*
* View
*/
@@ -134,8 +141,12 @@ if ($resql)
print_barre_liste($langs->trans("MenuChequeDeposits"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_bank.png', '', '', $limit);
- print '';
- print '';
+ $moreforfilter='';
+
+ print '';
+ print ' '."\n";
+
+ print '';
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"bc.ref","",$param,"",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("DateCreation"),$_SERVER["PHP_SELF"],"dp","",$param,'align="center"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Account"),$_SERVER["PHP_SELF"],"ba.label","",$param,"",$sortfield,$sortorder);
@@ -219,6 +230,7 @@ if ($resql)
print ' ';
}
print " ";
+ print " ";
print "\n";
}
else
diff --git a/htdocs/compta/paiement/list.php b/htdocs/compta/paiement/list.php
index 17882e76a6a..9495b56e90b 100644
--- a/htdocs/compta/paiement/list.php
+++ b/htdocs/compta/paiement/list.php
@@ -129,7 +129,7 @@ else
$sql = "SELECT DISTINCT p.rowid, p.ref, p.datep as dp, p.amount,"; // DISTINCT is to avoid duplicate when there is a link to sales representatives
$sql.= " p.statut, p.num_paiement,";
$sql.= " c.code as paiement_code,";
- $sql.= " ba.rowid as bid, ba.label,";
+ $sql.= " ba.rowid as bid, ba.ref as bref, ba.label as blabel, ba.number, ba.account_number as account_number, ba.accountancy_journal as accountancy_journal,";
$sql.= " s.rowid as socid, s.nom as name";
// Add fields for extrafields
foreach ($extrafields->attribute_list as $key => $val) $sql.=",ef.".$key.' as options_'.$key;
@@ -222,7 +222,9 @@ if ($resql)
print_barre_liste($langs->trans("ReceivedCustomersPayments"), $page, $_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num, $nbtotalofrecords,'title_accountancy.png', 0, '', '', $limit);
- print '';
+ print '';
+ print ' '."\n";
+
print '';
print_liste_field_titre($langs->trans("RefPayment"),$_SERVER["PHP_SELF"],"p.rowid","",$param,"",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"dp","",$param,'align="center"',$sortfield,$sortorder);
@@ -320,10 +322,14 @@ if ($resql)
if (! empty($conf->banque->enabled))
{
print '| ';
- if ($objp->bid)
+ if ($objp->bid > 0)
{
$accountstatic->id=$objp->bid;
- $accountstatic->label=$objp->label;
+ $accountstatic->ref=$objp->bref;
+ $accountstatic->label=$objp->blabel;
+ $accountstatic->number=$objp->number;
+ $accountstatic->account_number=$objp->account_number;
+ $accountstatic->accountancy_journal=$objp->accountancy_journal;
print $accountstatic->getNomUrl(1);
}
else print ' ';
@@ -347,6 +353,7 @@ if ($resql)
$i++;
}
print " | \n";
+ print " ";
print "\n";
}
else
diff --git a/htdocs/compta/salaries/index.php b/htdocs/compta/salaries/index.php
index 6355fc03fab..37d55522749 100644
--- a/htdocs/compta/salaries/index.php
+++ b/htdocs/compta/salaries/index.php
@@ -151,8 +151,10 @@ if ($result)
print_barre_liste($langs->trans("SalariesPayments"),$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num, $totalnboflines, 'title_accountancy.png', 0, '', '', $limit);
- print '';
- print '';
+ print '';
+ print ' '."\n";
+
+ print '';
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"s.rowid","",$param,"",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Employee"),$_SERVER["PHP_SELF"],"u.rowid","",$param,"",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Label"),$_SERVER["PHP_SELF"],"s.label","",$param,'align="left"',$sortfield,$sortorder);
@@ -257,7 +259,7 @@ if ($result)
print " | ";
print " ";
-
+ print ' ';
print '';
$db->free($result);
@@ -268,7 +270,5 @@ else
}
-
llxFooter();
-
$db->close();
diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php
index 6a4f7f836e7..66d6a65dd56 100644
--- a/htdocs/compta/sociales/index.php
+++ b/htdocs/compta/sociales/index.php
@@ -174,8 +174,9 @@ if ($resql)
}
else
{
-
- print '';
+ print '';
+ print ' '."\n";
+
print '';
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"id","",$param,"",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Label"),$_SERVER["PHP_SELF"],"cs.libelle","",$param,'align="left"',$sortfield,$sortorder);
@@ -286,6 +287,7 @@ if ($resql)
}
print ' ';
+ print ' ';
}
print '';
}
diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php
index 7b2e5528eb6..04b73ccbb6d 100644
--- a/htdocs/contact/list.php
+++ b/htdocs/contact/list.php
@@ -483,7 +483,8 @@ if ($moreforfilter)
$varpage=empty($contextpage)?$_SERVER["PHP_SELF"]:$contextpage;
$selectedfields=$form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage); // This also change content of $arrayfields
-print '';
+print '';
+print ' '."\n";
// Ligne des titres
print '';
@@ -795,6 +796,7 @@ while ($i < min($num,$limit))
}
print " ";
+print " ";
if ($num > $limit || $page) print_barre_liste('', $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_companies.png', 0, '', '', $limit, 1);
diff --git a/htdocs/don/list.php b/htdocs/don/list.php
index f5ce8b0350b..a6a60dc79c3 100644
--- a/htdocs/don/list.php
+++ b/htdocs/don/list.php
@@ -157,7 +157,9 @@ if ($resql)
print $langs->trans("FilterOnInto", $search_all) . join(', ',$fieldstosearchall);
}
- print "";
+ print '';
+ print ' '."\n";
+
print '';
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"d.rowid","", $param,"",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Company"),$_SERVER["PHP_SELF"],"d.societe","", $param,"",$sortfield,$sortorder);
@@ -237,6 +239,7 @@ if ($resql)
$i++;
}
print " ";
+ print ' ';
print "\n";
$db->free($resql);
}
diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php
index 8a093820f4c..d7624e146b1 100644
--- a/htdocs/expedition/list.php
+++ b/htdocs/expedition/list.php
@@ -127,7 +127,7 @@ if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'e
include DOL_DOCUMENT_ROOT.'/core/actions_changeselectedfields.inc.php';
// Purge search criteria
-if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter")) // Both test are required to be compatible with all browsers
+if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter.x") || GETPOST("button_removefilter")) // All tests are required to be compatible with all browsers
{
$search_ref_exp='';
$search_ref_liv='';
diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index 764a875019d..16aca2068b7 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -414,8 +414,11 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print ' });'."\n";
print ' '."\n";
}
- print '';
- print '';
+
+ print '';
+ print ' '."\n";
+
+ print '';
print '| '.$langs->trans('Invoice').' | ';
print ''.$langs->trans('RefSupplier').' | ';
print ''.$langs->trans('Date').' | ';
@@ -539,6 +542,8 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print " \n";
}
print " \n";
+
+ print " ";
}
$db->free($resql);
}
@@ -642,7 +647,10 @@ if (empty($action))
print ' |