/[dolibarr]/dolibarr/htdocs/telephonie/contrat/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/contrat/fiche.php

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

revision 1.24 by rodolphe, Mon Nov 7 10:31:59 2005 UTC revision 1.25 by rodolphe, Wed Nov 23 10:24:45 2005 UTC
# Line 398  elseif ($_GET["action"] == 'create_line' Line 398  elseif ($_GET["action"] == 'create_line'
398  }  }
399  else  else
400  {  {
401      /* Consultation */
402    if ($_GET["id"])    if ($_GET["id"])
403      {      {
404        if ($_GET["action"] <> 're-edit')        if ($_GET["action"] <> 're-edit')
# Line 412  else Line 413  else
413    
414        if ($result == 1)        if ($result == 1)
415          {          {
416            $client_comm = new Societe($db);            $client_comm = new TelephonieClient($db);
417            $client_comm->fetch($contrat->client_comm_id, $user);            $client_comm->fetch($contrat->client_comm_id, $user);
418          }          }
419    
# Line 423  else Line 424  else
424    
425        if ( $result && $client_comm->perm_read)        if ( $result && $client_comm->perm_read)
426          {          {
427    
428              $contrat->log_consult($user,'r');
429    
430            if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')            if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')
431              {              {
432    
# Line 459  else Line 463  else
463                
464                print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';                print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
465    
466                $client_comm = new Societe($db);                //$client_comm = new Societe($db);
467                $client_comm->fetch($contrat->client_comm_id);                //$client_comm->fetch($contrat->client_comm_id);
468    
469                print '<tr><td width="20%">Référence</td><td>'.$contrat->ref.'</td>';                print '<tr><td width="20%">Référence</td><td>'.$contrat->ref.'</td>';
470                print '<td>Facturé : '.$contrat->facturable.'</td><td align="right">';                print '<td>Facturé : '.$contrat->facturable.'</td><td align="right">';
# Line 523  else Line 527  else
527                print '<tr><td width="20%">Commercial Suivi</td>';                print '<tr><td width="20%">Commercial Suivi</td>';
528                print '<td colspan="3">'.$commercial_suiv->fullname.'</td></tr>';                print '<td colspan="3">'.$commercial_suiv->fullname.'</td></tr>';
529    
   
530                /* Prise d'ordre */                /* Prise d'ordre */
531                print '<tr><td width="20%">Prise d\'ordre mensuelle</td>';                print '<tr><td width="20%">Prise d\'ordre mensuelle</td>';
   
532                $po = $contrat->priseordre_totale();                $po = $contrat->priseordre_totale();
   
533                print '<td colspan="3">'.$po.' euros HT</td></tr>';                print '<td colspan="3">'.$po.' euros HT</td></tr>';
534    
535                /*                /*
# Line 538  else Line 539  else
539                print '</td></tr>';                print '</td></tr>';
540                */                */
541    
   
542                /* Contacts */                /* Contacts */
543                print '<tr><td valign="top" width="20%">Contact facture</td>';                print '<tr><td valign="top" width="20%">Contact facture</td>';
544                print '<td valign="top" colspan="3">';                print '<td valign="top" colspan="3">';

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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