dolibarr-bugtrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-bugtrack] [bug #30384] Les boîtes " derniers clients modifié


From: Laurent Léonard
Subject: [Dolibarr-bugtrack] [bug #30384] Les boîtes " derniers clients modifiés " et " derniers fournisseurs modifiés " de la page compta sont erronnés
Date: Thu, 29 Jul 2010 14:16:52 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.1.10) Gecko/20100623 Iceweasel/3.5.10 (like Firefox/3.5.10)

Update of bug #30384 (project dolibarr):

                  Status:                   Fixed => Confirmed              

    _______________________________________________________

Follow-up Comment #2:

The bug isn't fixed, the code used by the that page is in compta/index.php:

// Last customers
if ($conf->societe->enabled && $user->rights->societe->lire)
{
        include_once(DOL_DOCUMENT_ROOT.'/societe/class/client.class.php');

        $langs->load("boxes");

        $sql = "SELECT s.nom, s.rowid, s.datec as dc";
        $sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
        if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= 
",
".MAIN_DB_PREFIX."societe_commerciaux as sc";
        $sql.= " WHERE s.client IN (1, 3)";
        $sql.= " AND s.entity = ".$conf->entity;
        if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= 
"
AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
        if ($socid)     $sql.= " AND s.rowid = ".$socid;
        $sql.= " ORDER BY s.datec DESC ";

Actually, I think the code is right, but the french label translation is
wrong: "Last 3 recorded customers" and "Last 3 recorded suppliers" is
translated by "Les 3 derniers clients modifiées" and "Les 3 derniers
fournisseurs modifiées", it should be "Les 3 derniers clients enregistrés"
and "Les 3 derniers fournisseurs enregistrés" instead.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?30384>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]