Skip to content
Snippets Groups Projects
Commit 88bdecd2 authored by Lalaina Rasamoelina's avatar Lalaina Rasamoelina
Browse files

T962-develop: Put the private note in the order list

In the command list, if there are the private notes,we print them and we can edit them
htdocs/commande/liste.php
parent 8bae6a77
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ $help_url="EN:Module_Customers_Orders|FR:Module_Commandes_Clients|ES:Módulo_Ped
llxHeader('',$langs->trans("Orders"),$help_url);
$sql = 'SELECT s.nom, s.rowid as socid, s.client, c.rowid, c.ref, c.total_ht, c.ref_client,';
$sql.= ' c.date_valid, c.date_commande, c.date_livraison, c.fk_statut, c.facture as facturee';
$sql.= ' c.date_valid, c.date_commande, c.note_private, c.date_livraison, c.fk_statut, c.facture as facturee';
$sql.= ' FROM '.MAIN_DB_PREFIX.'societe as s';
$sql.= ', '.MAIN_DB_PREFIX.'commande as c';
// We'll need this table joined to the select in order to filter by sale
......@@ -354,6 +354,15 @@ if ($resql)
}
}
}
if(!empty($objp->note_private))
{
print '<br/>';
print '<ul>';
print '<span class="warning">';
print $objp->note_private;
print '<a href="'.DOL_URL_ROOT.'/commande/note.php?action=editnote&id='.$objp->rowid.'">'.img_edit($langs->trans("Editnote")).'</a>';
print '</span></ul>';
}
print '</td>';
print '<td>'.$objp->ref_client.'</td>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment