';
print "\n";
- print '| '.$langs->trans("Date").' | ';
- print ''.$langs->trans("DateValue").' | ';
+ print ''.$langs->trans("DateOperationShort").' | ';
+ print ''.$langs->trans("DateValueShort").' | ';
print ''.$langs->trans("Type").' | ';
print ''.$langs->trans("Description").' | ';
- print ''.$langs->trans("Debit").' | ';
- print ''.$langs->trans("Credit").' | ';
- print ''.$langs->trans("Action").' | ';
- print ''.$langs->trans("AccountStatement").' (Ex: YYYYMM) | ';
+ print ''.$langs->trans("Debit").' | ';
+ print ''.$langs->trans("Credit").' | ';
+ print ''.$langs->trans("Action").' | ';
+ print ''.$langs->trans("AccountStatement").' (Ex: YYYYMM) | ';
print "
\n";
@@ -196,21 +196,40 @@ if ($resql)
print "";
print "rowid."\">";
- print ''.dolibarr_print_date($objp->do).' | ';
- print ''.dolibarr_print_date($objp->dv).' | ';
- print ''.$objp->type.($objp->num_chq?' '.$objp->num_chq:'').' | ';
- print ''.$objp->label.'';
+ print ' | '.dolibarr_print_date($objp->do,"%d/%m/%Y").' | ';
+ print ''.dolibarr_print_date($objp->dv,"%d/%m/%Y").' | ';
+ print ''.$objp->type.($objp->num_chq?' '.$objp->num_chq:'').' | ';
+ print ''.$objp->label.'';
+
/*
- * Ajout les liens
+ * Ajout les liens (societe, company...)
*/
+ $newline=1;
$links = $acct->get_url($objp->rowid);
foreach($links as $key=>$val)
{
- print ' - ';
- print '';
- // if ($links[$key]['type']=='payment') { print img_object($langs->trans('ShowPayment'),'payment').' '; }
- // if ($links[$key]['type']=='company') { print img_object($langs->trans('ShowCustomer'),'company').' '; }
- print $links[$key]['label'].'';
+ if (! $newline) print ' - ';
+ else print ' ';
+ if ($links[$key]['type']=='payment') {
+ print '';
+ print img_object($langs->trans('ShowPayment'),'payment').' ';
+ print $langs->trans("Payment");
+ print '';
+ $newline=0;
+ }
+ elseif ($links[$key]['type']=='company') {
+ print '';
+ print img_object($langs->trans('ShowCustomer'),'company').' ';
+ print dolibarr_trunc($links[$key]['label'],24);
+ print '';
+ $newline=0;
+ }
+ else {
+ print '';
+ print $links[$key]['label'];
+ print '';
+ $newline=0;
+ }
}
print ' | ';
@@ -226,18 +245,18 @@ if ($resql)
if ($objp->rappro)
{
// Si ligne déjà rapprochée, on affiche relevé.
- print "num_releve&account=$acct->id\">$objp->num_releve | ";
+ print "num_releve&account=$acct->id\">$objp->num_releve | ";
}
else
{
// Si pas encore rapprochée
if ($user->rights->banque->modifier)
{
- print '';
+ print ' | ';
print '';
print img_edit();
- print ' ';
+ print ' ';
if ($objp->do <= mktime() ) {
print '';
@@ -245,7 +264,7 @@ if ($resql)
print '';
}
else {
- print " "; // On n'empeche la suppression car le raprochement ne pourra se faire qu'après la date passée et que l'écriture apparaissent bien sur le compte.
+ print " "; // On n'empeche la suppression car le raprochement ne pourra se faire qu'après la date passée et que l'écriture apparaisse bien sur le compte.
}
print " | ";
}
@@ -256,24 +275,25 @@ if ($resql)
}
- // Affiche bouton "Rapprocher"
- if ($objp->do <= mktime() ) {
- print "";
+ // Affiche zone saisie relevé + bouton "Rapprocher"
+ if ($objp->do <= mktime())
+ {
+ print ' | ';
print "";
+ print ' ';
+ print "trans("Rapprocher")."\">";
if ($options)
{
print " ";
}
print " | ";
- print "trans("Rapprocher")."\">";
- print " | ";
}
else
{
- print "";
- print "Ecriture future. Ne peut pas encore être rapprochée.";
- print " | ";
+ print '';
+ print 'Ecriture future. Ne peut pas encore être rapprochée.';
+ print ' | ';
}
print "\n";
diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php
index 91b4b33ca98..c6c822633f7 100644
--- a/htdocs/compta/bank/releve.php
+++ b/htdocs/compta/bank/releve.php
@@ -111,180 +111,223 @@ if (! isset($_GET["num"]))
}
else
{
- /**
- * Vue d'un releve
- *
- */
- if ($_GET["rel"] == 'prev')
+ /**
+ * Affiche liste ecritures d'un releve
+ */
+ if ($_GET["rel"] == 'prev')
{
- // Recherche valeur pour num = numéro relevé précédent
- $sql = "SELECT distinct(num_releve) as num";
- $sql.= " FROM ".MAIN_DB_PREFIX."bank";
- $sql.= " WHERE num_releve < ".$_GET["num"]." AND fk_account = ".$_GET["account"];
- $sql.= " ORDER BY num_releve DESC";
- $result = $db->query($sql);
- if ($result)
- {
- $var=True;
- $numrows = $db->num_rows($result);
- $i = 0;
- if ($numrows > 0)
- {
- $obj = $db->fetch_object($result);
- $num = $obj->num;
- }
- }
+ // Recherche valeur pour num = numéro relevé précédent
+ $sql = "SELECT distinct(num_releve) as num";
+ $sql.= " FROM ".MAIN_DB_PREFIX."bank";
+ $sql.= " WHERE num_releve < ".$_GET["num"]." AND fk_account = ".$_GET["account"];
+ $sql.= " ORDER BY num_releve DESC";
+ $result = $db->query($sql);
+ if ($result)
+ {
+ $var=True;
+ $numrows = $db->num_rows($result);
+ $i = 0;
+ if ($numrows > 0)
+ {
+ $obj = $db->fetch_object($result);
+ $num = $obj->num;
+ }
+ }
}
- elseif ($_GET["rel"] == 'next')
+ elseif ($_GET["rel"] == 'next')
{
- // Recherche valeur pour num = numéro relevé précédent
- $sql = "SELECT distinct(num_releve) as num";
- $sql.= " FROM ".MAIN_DB_PREFIX."bank";
- $sql.= " WHERE num_releve > ".$_GET["num"]." AND fk_account = ".$_GET["account"];
- $sql.= " ORDER BY num_releve ASC";
- $result = $db->query($sql);
- if ($result)
- {
- $var=True;
- $numrows = $db->num_rows($result);
- $i = 0;
- if ($numrows > 0)
- {
- $obj = $db->fetch_object($result);
- $num = $obj->num;
- }
- }
+ // Recherche valeur pour num = numéro relevé précédent
+ $sql = "SELECT distinct(num_releve) as num";
+ $sql.= " FROM ".MAIN_DB_PREFIX."bank";
+ $sql.= " WHERE num_releve > ".$_GET["num"]." AND fk_account = ".$_GET["account"];
+ $sql.= " ORDER BY num_releve ASC";
+ $result = $db->query($sql);
+ if ($result)
+ {
+ $var=True;
+ $numrows = $db->num_rows($result);
+ $i = 0;
+ if ($numrows > 0)
+ {
+ $obj = $db->fetch_object($result);
+ $num = $obj->num;
+ }
+ }
}
- else {
- // On veut le relevé num
- $num=$_GET["num"];
- }
- $ve=$_GET["ve"];
-
- $mesprevnext ="id\">".img_previous()." ";
- $mesprevnext.= $langs->trans("AccountStatement")." $num";
- $mesprevnext.=" id\">".img_next()."";
- print_fiche_titre($langs->trans("AccountStatement").' '.$num.', '.$langs->trans("BankAccount").' : '.$acct->label.'',$mesprevnext);
- print '
';
-
- print "\n";
}
$db->close();
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 194b23ce589..724a8a0743e 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -1267,7 +1267,7 @@ else
print '';
/*
- * Paiements
+ * Liste des paiements
*/
print $langs->trans('Payments').' : ';
$sql = 'SELECT '.$db->pdate('datep').' as dp, pf.amount,';
@@ -1281,7 +1281,7 @@ else
if ($result)
{
$num = $db->num_rows($result);
- $i = 0; $total = 0;
+ $i = 0; $totalpaye = 0;
print '';
print '| '.$langs->trans('Date').' | '.$langs->trans('Type').' | ';
print ''.$langs->trans('Amount').' | | ';
diff --git a/htdocs/fourn/paiement/fiche.php b/htdocs/fourn/paiement/fiche.php
index 200006c45bb..f66db820d7c 100644
--- a/htdocs/fourn/paiement/fiche.php
+++ b/htdocs/fourn/paiement/fiche.php
@@ -18,7 +18,6 @@
*
* $Id$
* $Source$
- *
*/
/**
@@ -182,14 +181,17 @@ if ($resql)
$total = 0;
print '
';
print '';
- print '| '.$langs->trans('Bill').' | '.$langs->trans('Company').' | ';
- print ''.$langs->trans('AmountTTC').' | '.$langs->trans('Status').' | ';
+ print ''.$langs->trans('Bill').' | ';
+ print ''.$langs->trans('Status').' | ';
+ print ''.$langs->trans('Company').' | ';
+ print ''.$langs->trans('AmountTTC').' | ';
print " \n";
if ($num > 0)
{
$var=True;
+ $fac_static=new FactureFournisseur($db);
while ($i < $num)
{
$objp = $db->fetch_object($resql);
@@ -198,10 +200,9 @@ if ($resql)
print ''.img_object($langs->trans('ShowBill'),'bill').' ';
print $objp->facnumber;
print " | \n";
+ print ''.$fac_static->LibStatut($objp->paye,$objp->fk_statut).' | ';
print ''.img_object($langs->trans('ShowCompany'),'company').' '.$objp->nom.' | ';
print ''.price($objp->amount).' | ';
- $fac=new FactureFournisseur($db);
- print ''.$fac->LibStatut($objp->paye,$objp->fk_statut).' | ';
print "\n";
if ($objp->paye == 1)
{
diff --git a/htdocs/langs/en_US/banks.lang b/htdocs/langs/en_US/banks.lang
index 0f9823fa16e..09ae1b2690e 100644
--- a/htdocs/langs/en_US/banks.lang
+++ b/htdocs/langs/en_US/banks.lang
@@ -15,6 +15,7 @@ SavingAccounts=Saving accounts
ErrorBankLabelAlreadyExists=Financial account label already exists
BankBalance=Balance
InitialBankBalance=Initial balance
+EndBankBalance=End balance
CurrentBalance=Current balance
RIB=RIB
IBAN=IBAN number
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 8de378f6508..530192ebff8 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -117,6 +117,9 @@ DateValidation=Validation date
DateClosing=Closing date
DateDue=Due date
DateValue=Value date
+DateValueShort=Value date
+DateOperation=Operation date
+DateOperationShort=Ope. Date
DateLimit=Limit date
DateRequest=Request date
DateProcess=Process date
diff --git a/htdocs/langs/fr_FR/banks.lang b/htdocs/langs/fr_FR/banks.lang
index 9acda26b069..4db7ef10b09 100644
--- a/htdocs/langs/fr_FR/banks.lang
+++ b/htdocs/langs/fr_FR/banks.lang
@@ -15,6 +15,7 @@ SavingAccounts=Comptes
ErrorBankLabelAlreadyExists=Libellé de compte financier déjà existant
BankBalance=Solde
InitialBankBalance=Solde initial
+EndBankBalance=Solde final
CurrentBalance=Solde actuel
RIB=RIB
IBAN=Identifiant IBAN
diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang
index 52cc92645d3..49a1ad91266 100644
--- a/htdocs/langs/fr_FR/main.lang
+++ b/htdocs/langs/fr_FR/main.lang
@@ -116,6 +116,9 @@ DateValidation=Date validation
DateClosing=Date clôture
DateDue=Date échéance
DateValue=Date valeur
+DateValueShort=Date valeur
+DateOperation=Date opération
+DateOperationShort=Date opé.
DateLimit=Date limite
DateRequest=Date demande
DateProcess=Date traitement
|