/[dolibarr]/dolibarr/htdocs/compta/facture/fiche-rec.php
ViewVC logotype

Diff of /dolibarr/htdocs/compta/facture/fiche-rec.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28 by eldy, Fri Aug 12 01:34:46 2005 UTC revision 1.29 by eldy, Sat Sep 3 13:24:20 2005 UTC
# Line 18  Line 18 
18   *   *
19   * $Id$   * $Id$
20   * $Source$   * $Source$
  *  
21   */   */
22    
23  /**  /**
# Line 133  if ($_GET["action"] == 'create') Line 132  if ($_GET["action"] == 'create')
132          }          }
133        print "</td></tr></table>";        print "</td></tr></table>";
134    
135    
136        
137          print '<br>';
138        print_titre('Services/Produits');        print_titre('Services/Produits');
139                        
140        print '<table cellspacing="0" cellpadding="3" border="0" width="100%">';        print '<table class="noborder" width="100%">';
141        /*        /*
142         * Lignes de factures         * Lignes de factures
143         *         *
# Line 151  if ($_GET["action"] == 'create') Line 153  if ($_GET["action"] == 'create')
153            $num = $db->num_rows();            $num = $db->num_rows();
154            $i = 0; $total = 0;            $i = 0; $total = 0;
155                        
156            echo '<table border="0" width="100%">';            echo '<table class="notopnoleftnoright" width="100%">';
157            if ($num)            if ($num)
158              {              {
159                print "<tr class=\"liste_titre\">";                print "<tr class=\"liste_titre\">";
# Line 275  else Line 277  else
277             *   Facture             *   Facture
278             */             */
279            print '<table class="border" width="100%">';            print '<table class="border" width="100%">';
280            print "<tr><td>Client</td>";            print '<tr><td>'.$langs->trans("Customer").'</td>';
281            print "<td colspan=\"3\">";            print "<td colspan=\"3\">";
282            print '<b><a href="../fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></b></td>';            print '<b><a href="../fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></b></td>';
283                        
# Line 304  else Line 306  else
306          print '<td>'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';          print '<td>'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
307          if ($fac->note)          if ($fac->note)
308            {            {
309              print '<tr><td colspan="5">Note : '.nl2br($fac->note)."</td></tr>";              print '<tr><td colspan="5">'.$langs->trans("Note").' : '.nl2br($fac->note)."</td></tr>";
310            }            }
311    
312          print "</table><br>";          print "</table><br>";
# Line 328  else Line 330  else
330                {                {
331                  $prod = New Product($db);                  $prod = New Product($db);
332                  $prod->fetch($fac->lignes[$i]->produit_id);                  $prod->fetch($fac->lignes[$i]->produit_id);
333                  print "<tr $bc[$var]><td>[".$prod->ref.']</td>';                  print "<tr $bc[$var]><td>";
334                    print '<a href="'.DOL_URL_ROOT.'/product/fiche.php?id='.$prod->id.'">';
335                    print img_object($langs->trans("ShowProduct"),"product").' '.$prod->ref;
336                    print '</a>';
337                    print '</td>';
338                  print '<td>'.$fac->lignes[$i]->desc.'</td>';                  print '<td>'.$fac->lignes[$i]->desc.'</td>';
339                }                }
340              else              else
# Line 419  else Line 425  else
425      if ($result)      if ($result)
426        {        {
427          $num = $db->num_rows();          $num = $db->num_rows();
428          print_barre_liste("Factures",$page,"fiche-rec.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);          print_barre_liste($langs->trans("Bills"),$page,"fiche-rec.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
429    
430          $i = 0;          $i = 0;
431          print "<table class=\"noborder\" width=\"100%\">";          print "<table class=\"noborder\" width=\"100%\">";
# Line 442  else Line 448  else
448    
449                  $class = "normal";                  $class = "normal";
450    
451                  print '<td><a class="'.$class.'" href="fiche-rec.php?facid='.$objp->facid.'">' . $objp->titre;                  print '<td><a class="'.$class.'" href="fiche-rec.php?facid='.$objp->facid.'">'.img_object($langs->trans("ShowBill"),"bill").' '.$objp->titre;
452                  print "</a></td>\n";                  print "</a></td>\n";
453                  print '<td><a class="'.$class.'" href="../fiche.php?socid='.$objp->idp.'">'.$objp->nom.'</a></td>';                  print '<td><a class="'.$class.'" href="../fiche.php?socid='.$objp->idp.'">'.$objp->nom.'</a></td>';
454                                    

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26