From d0a3ba0e077bf9bbc73d54d0f5410d2a908942b6 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Tue, 14 Jun 2011 22:28:10 +0000
Subject: [PATCH] Fix: Use correct date

---
 htdocs/compta/paiement/cheque/fiche.php | 6 +++---
 htdocs/langs/en_US/compta.lang          | 2 +-
 htdocs/langs/fr_FR/compta.lang          | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php
index a05adebd9f7..06ba2ded7ee 100644
--- a/htdocs/compta/paiement/cheque/fiche.php
+++ b/htdocs/compta/paiement/cheque/fiche.php
@@ -304,7 +304,7 @@ if ($action == 'new')
 	print '<table class="border" width="100%">';
 	//print '<tr><td width="30%">'.$langs->trans('Date').'</td><td width="70%">'.dol_print_date($now,'day').'</td></tr>';
 	// Filter
-	print '<tr><td width="200">'.$langs->trans("Date").'</td><td>';
+	print '<tr><td width="200">'.$langs->trans("DateChequeReceived").'</td><td>';
 	print $html->select_date($filterdate,'fd',0,0,1,'',1,1);
 	print '</td></tr>';
     print '<tr><td>'.$langs->trans("BankAccount").'</td><td>';
@@ -334,7 +334,7 @@ if ($action == 'new')
 	$sql.= " AND b.amount > 0";
 	if ($filterdate)      $sql.=" AND b.dateo = '".$db->idate($filterdate)."'";
     if ($filteraccountid) $sql.=" AND ba.rowid= '".$filteraccountid."'";
-	$sql.= $db->order("b.datec,b.rowid","ASC");
+	$sql.= $db->order("b.dateo,b.rowid","ASC");
 
 	$resql = $db->query($sql);
 	if ($resql)
@@ -528,7 +528,7 @@ else
 		print_liste_field_titre($langs->trans("Bank"),$_SERVER["PHP_SELF"],"b.banque", "",$param,"",$sortfield,$sortorder);
 		print_liste_field_titre($langs->trans("Amount"),$_SERVER["PHP_SELF"],"b.amount", "",$param,'align="right"',$sortfield,$sortorder);
 		print_liste_field_titre($langs->trans("LineRecord"),$_SERVER["PHP_SELF"],"b.rowid", "",$param,'align="center"',$sortfield,$sortorder);
-		print_liste_field_titre($langs->trans("DateChequeReceived"),$_SERVER["PHP_SELF"],"b.datec", "",$param,'align="center"',$sortfield,$sortorder);
+		print_liste_field_titre($langs->trans("DateChequeReceived"),$_SERVER["PHP_SELF"],"b.dateo", "",$param,'align="center"',$sortfield,$sortorder);
 		print_liste_field_titre('','','');
 		print "</tr>\n";
 		$i=1;
diff --git a/htdocs/langs/en_US/compta.lang b/htdocs/langs/en_US/compta.lang
index 8c857b152d6..d664b32484f 100644
--- a/htdocs/langs/en_US/compta.lang
+++ b/htdocs/langs/en_US/compta.lang
@@ -85,7 +85,7 @@ NewCheckReceipt=New discount
 NewCheckDeposit=New check deposit
 NewCheckDepositOn=Create receipt for deposit on account: %s
 NoWaitingChecks=No checks waiting for deposit.
-DateChequeReceived=Check reception input date
+DateChequeReceived=Check reception date
 NbOfCheques=Nb of checks
 PaySocialContribution=Pay a social contribution
 ConfirmPaySocialContribution=Are you sure you want to classify this social contribution as paid?
diff --git a/htdocs/langs/fr_FR/compta.lang b/htdocs/langs/fr_FR/compta.lang
index bb02e811564..499a2507cf6 100644
--- a/htdocs/langs/fr_FR/compta.lang
+++ b/htdocs/langs/fr_FR/compta.lang
@@ -85,7 +85,7 @@ NewCheckReceipt=Nouvelle remise
 NewCheckDeposit=Nouveau dépôt
 NewCheckDepositOn=Créer bordereau de dépôt sur compte: %s
 NoWaitingChecks=Pas de chèque en attente de dépôt.
-DateChequeReceived=Date saisie réception chèque
+DateChequeReceived=Date réception chèque
 NbOfCheques=Nb de chèques
 PaySocialContribution=Payer une charge sociale
 ConfirmPaySocialContribution=Êtes-vous sûr de vouloir classer cette charge sociale à payée ?
-- 
GitLab