Fix: Duplicate rows return by fetch
This commit is contained in:
parent
4c892d403b
commit
ba55f10ea2
@ -738,15 +738,15 @@ if ($id > 0)
|
||||
{
|
||||
print '<td> </td>';
|
||||
}
|
||||
//Todo: Modifier la classe pour utiliser le champ total_ttc
|
||||
|
||||
print '<td align="right" nowrap="nowrap">'.price($objp->total_ht).'</td>';
|
||||
if ($commande->statut == 0 && $user->rights->fournisseur->commande->creer)
|
||||
{
|
||||
print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?id='.$commande->id.'&action=editline&rowid='.$objp->rowid.'#'.$objp->rowid.'">';
|
||||
print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?id='.$commande->id.'&action=editline&rowid='.$objp->id.'#'.$objp->id.'">';
|
||||
print img_edit();
|
||||
print '</a></td>';
|
||||
|
||||
print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?id='.$commande->id.'&action=delete_product_line&lineid='.$objp->rowid.'">';
|
||||
print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?id='.$commande->id.'&action=delete_product_line&lineid='.$objp->id.'">';
|
||||
print img_delete();
|
||||
print '</a></td>';
|
||||
}
|
||||
|
||||
@ -142,6 +142,7 @@ class CommandeFournisseur extends Commande
|
||||
|
||||
$ligne = new CommandeFournisseurLigne($this->db);
|
||||
|
||||
$ligne->id = $objp->rowid;
|
||||
$ligne->desc = $objp->description; // Description ligne
|
||||
$ligne->qty = $objp->qty;
|
||||
$ligne->tva_tx = $objp->tva_tx;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user