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') |
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 |
|
|
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 |
|
|
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">'; |
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 |
/* |
/* |
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">'; |