/[dolibarr]/dolibarr/htdocs/telephonie/client/facture.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/client/facture.php

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

revision 1.2 by rodolphe, Tue Sep 6 10:21:28 2005 UTC revision 1.3 by rodolphe, Tue Sep 6 10:24:22 2005 UTC
# Line 190  if ($_GET["facid"] > 0) Line 190  if ($_GET["facid"] > 0)
190        
191    $fac = New Facture($db);    $fac = New Facture($db);
192    if ( $fac->fetch($_GET["facid"], $user->societe_id) > 0)    if ( $fac->fetch($_GET["facid"], $user->societe_id) > 0)
193      {      {      
         
194        $soc = new Societe($db, $fac->socidp);        $soc = new Societe($db, $fac->socidp);
195        $soc->fetch($fac->socidp);        $soc->fetch($fac->socidp);
196                
197          if (!$soc->perm_read)
198            {
199              print "Lecture non authorisée";
200            }
201                
202        $author = new User($db);        if ($soc->perm_read)
203        $author->id = $fac->user_author;          {      
204        $author->fetch();            $author = new User($db);
205                    $author->id = $fac->user_author;
206        $h = 0;            $author->fetch();
207                    
208        $head[$h][0] = DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$soc->id;            $h = 0;
209        $head[$h][1] = $langs->trans("Fiche client");            
210        $h++;            $head[$h][0] = DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$soc->id;
211              $head[$h][1] = $langs->trans("Fiche client");
212        $head[$h][0] = DOL_URL_ROOT.'/telephonie/client/factures.php?id='.$soc->id;            $h++;
213        $head[$h][1] = $langs->trans("Factures");            
214        $h++;            $head[$h][0] = DOL_URL_ROOT.'/telephonie/client/factures.php?id='.$soc->id;
215              $head[$h][1] = $langs->trans("Factures");
216        $head[$h][0] = DOL_URL_ROOT.'/telephonie/client/facture.php?facid='.$fac->id;            $h++;
217        $head[$h][1] = $langs->trans("CardBill");            
218        $hselected = $h;            $head[$h][0] = DOL_URL_ROOT.'/telephonie/client/facture.php?facid='.$fac->id;
219        $h++;            $head[$h][1] = $langs->trans("CardBill");
220                    $hselected = $h;
221        dolibarr_fiche_head($head, $hselected, $langs->trans("Bill")." : $fac->ref");            $h++;
222                    
223        /*            dolibarr_fiche_head($head, $hselected, $langs->trans("Bill")." : $fac->ref");
224         *   Facture            
225         */            /*
226        print '<table class="border" width="100%">';             *   Facture
227        print '<tr><td>'.$langs->trans("Company").'</td>';             */
228        print '<td colspan="3">';            print '<table class="border" width="100%">';
229        print '<b><a href="fiche.php?id='.$soc->id.'">'.$soc->nom.'</a></b></td>';            print '<tr><td>'.$langs->trans("Company").'</td>';
230                    print '<td colspan="3">';
231        print "<td>Conditions de réglement</td><td>" . $fac->cond_reglement ."</td></tr>";            print '<b><a href="fiche.php?id='.$soc->id.'">'.$soc->nom.'</a></b></td>';
232                    
233        print '<tr><td>'.$langs->trans("Date").'</td>';            print "<td>Conditions de réglement</td><td>" . $fac->cond_reglement ."</td></tr>";
234        print "<td colspan=\"3\">".dolibarr_print_date($fac->date,"%A %d %B %Y")."</td>\n";            
235        print '<td>'.$langs->trans("DateClosing").'</td><td>' . dolibarr_print_date($fac->date_lim_reglement,"%A %d %B %Y");            print '<tr><td>'.$langs->trans("Date").'</td>';
236        print "</td></tr>";            print "<td colspan=\"3\">".dolibarr_print_date($fac->date,"%A %d %B %Y")."</td>\n";
237                    print '<td>'.$langs->trans("DateClosing").'</td><td>' . dolibarr_print_date($fac->date_lim_reglement,"%A %d %B %Y");
238        print '<tr>';            print "</td></tr>";
239                    
240              print '<tr>';
241              
242        // Projet        // Projet
243        if ($conf->projet->enabled)        if ($conf->projet->enabled)
244          {          {
# Line 729  if ($_GET["facid"] > 0) Line 735  if ($_GET["facid"] > 0)
735            print '<br>';            print '<br>';
736          }          }
737    
738          }
739    
740    
741      }      }
742    else    else
743      {      {
744        /* Facture non trouvée */        /* Facture non trouvée */
745        print $langs->trans("ErrorBillNotFound",$_GET["facid"]);        print $langs->trans("ErrorBillNotFound",$_GET["facid"]);
746      }      }
747    
748  }  }
749    
750  $db->close();  $db->close();

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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