/[dolibarr]/dolibarr/htdocs/telephonie/script/tools/verif-contrat-contact-services.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/script/tools/verif-contrat-contact-services.php

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

revision 1.1 by rodolphe, Tue Dec 6 15:30:22 2005 UTC revision 1.2 by rodolphe, Tue Dec 6 15:34:04 2005 UTC
# Line 57  if ( $resql ) Line 57  if ( $resql )
57                    $rows = $db->fetch_row($resqls);                    $rows = $db->fetch_row($resqls);
58                    if ($rows[0] == 0)                    if ($rows[0] == 0)
59                      {                      {
60                        print "Contrat ".$row[0]." sans contact ni envoi courrier\n";                        $sqll  = "SELECT count(*)";
61                          $sqll .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne";
62                          $sqll .= " WHERE fk_contrat =".$row[0];
63                          $sqll .= " AND statut = 3;";
64                          
65                          $resqll = $db->query($sqll) ;
66                          if ( $resqll )
67                            {
68                              $rowl = $db->fetch_row($resqll);
69                              if ($rowl[0] > 0)
70                                {
71                                  print "Contrat ".$row[0]." sans contact ni envoi courrier\n";
72                                }
73                            }
74                      }                      }
75                  }                  }
76              }              }

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

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