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

T961-develop: Put the private note in the bill list

In the invoice list, if there are the private notes,we print them and we can edit them
htdocs/compta/facture/liste.php
parent 8bae6a77
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ $facturestatic=new Facture($db);
if (! $sall) $sql = 'SELECT';
else $sql = 'SELECT DISTINCT';
$sql.= ' f.rowid as facid, f.facnumber, f.type, f.increment, f.total as total_ht, f.tva as total_tva, f.total_ttc,';
$sql.= ' f.rowid as facid, f.facnumber, f.type, f.note_private, f.increment, f.total as total_ht, f.tva as total_tva, f.total_ttc,';
$sql.= ' f.datef as df, f.date_lim_reglement as datelimite,';
$sql.= ' f.paye as paye, f.fk_statut,';
$sql.= ' s.nom, s.rowid as socid';
......@@ -365,6 +365,14 @@ if ($resql)
$thirdparty->id=$objp->socid;
$thirdparty->nom=$objp->nom;
print $thirdparty->getNomUrl(1,'customer');
if(!empty($objp->note_private))
{
print '<br/>';
print '<ul>';
print '<span class="warning">'.$objp->note_private;
print '<a href="'.DOL_URL_ROOT.'/compta/facture/note.php?action=editnote&id='.$objp->facid.'">'.img_edit($langs->trans("Editnote")).'</a>';
print'</span></ul>';
}
print '</td>';
print '<td align="right">'.price($objp->total_ht,0,$langs).'</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