forked from Wavyzz/dolibarr
Fix: doublon sur les paiements
This commit is contained in:
@@ -65,7 +65,7 @@ $offset = $limit * $page ;
|
|||||||
if (! $sortorder) $sortorder="DESC";
|
if (! $sortorder) $sortorder="DESC";
|
||||||
if (! $sortfield) $sortfield="p.rowid";
|
if (! $sortfield) $sortfield="p.rowid";
|
||||||
|
|
||||||
$sql = "SELECT p.rowid,".$db->pdate("p.datep")." as dp, p.amount,";
|
$sql = "SELECT DISTINCT p.rowid,".$db->pdate("p.datep")." as dp, p.amount,";
|
||||||
$sql.= " p.statut, p.num_paiement,";
|
$sql.= " p.statut, p.num_paiement,";
|
||||||
//$sql.= " c.libelle as paiement_type,";
|
//$sql.= " c.libelle as paiement_type,";
|
||||||
$sql.= " c.code as paiement_code,";
|
$sql.= " c.code as paiement_code,";
|
||||||
|
|||||||
Reference in New Issue
Block a user