/[phpcompta]/phpcompta/include/form_input.php
ViewVC logotype

Diff of /phpcompta/include/form_input.php

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

revision 1.61 by sparkyx, Mon Oct 3 18:54:47 2005 UTC revision 1.62 by sparkyx, Sun Oct 16 16:12:24 2005 UTC
# Line 274  function FormVente($p_cn,$p_jrn,$p_user, Line 274  function FormVente($p_cn,$p_jrn,$p_user,
274    $r.='<TR>';    $r.='<TR>';
275    $r.="<th></th>";    $r.="<th></th>";
276    $r.="<th>Code</th>";    $r.="<th>Code</th>";
277    $r.="<th>Dénomination</th>";    $r.="<th>D�omination</th>";
278    $r.="<th>prix</th>";    $r.="<th>prix</th>";
279    $r.="<th colspan=\"2\">tva</th>";    $r.="<th colspan=\"2\">tva</th>";
280    $r.="<th>quantité</th>";    $r.="<th>quantit�/th>";
281    $r.='</TR>';    $r.='</TR>';
282    //  $fiche=GetFicheJrn($p_cn,$p_jrn,'cred');    //  $fiche=GetFicheJrn($p_cn,$p_jrn,'cred');
283    //  echo_debug(__FILE__,__LINE__,"Cred Nombre d'enregistrement ".sizeof($fiche));    //  echo_debug(__FILE__,__LINE__,"Cred Nombre d'enregistrement ".sizeof($fiche));
# Line 481  for ($o = 0;$o < $p_number; $o++) { Line 481  for ($o = 0;$o < $p_number; $o++) {
481      list ($l_date_start,$l_date_end)=GetPeriode($p_cn,$userPref);      list ($l_date_start,$l_date_end)=GetPeriode($p_cn,$userPref);
482    
483      // Date dans la periode active      // Date dans la periode active
484      echo_debug ("date start periode $l_date_start date fin periode $l_date_end date demandée $e_date");      echo_debug ("date start periode $l_date_start date fin periode $l_date_end date demand� $e_date");
485      if ( cmpDate($e_date,$l_date_start)<0 ||      if ( cmpDate($e_date,$l_date_start)<0 ||
486           cmpDate($e_date,$l_date_end)>0 )           cmpDate($e_date,$l_date_end)>0 )
487        {        {
# Line 490  for ($o = 0;$o < $p_number; $o++) { Line 490  for ($o = 0;$o < $p_number; $o++) {
490                          echo "<SCRIPT>alert('$msg');</SCRIPT>";                          echo "<SCRIPT>alert('$msg');</SCRIPT>";
491                          return null;                          return null;
492        }        }
493      // Periode fermée      // Periode ferm�
494      if ( PeriodeClosed ($p_cn,$userPref)=='t' )      if ( PeriodeClosed ($p_cn,$userPref)=='t' )
495        {        {
496                  $msg="This periode is closed please change your preference";                  $msg="This periode is closed please change your preference";
# Line 523  for ($o = 0;$o < $p_number; $o++) { Line 523  for ($o = 0;$o < $p_number; $o++) {
523    // show all article, price vat and sum    // show all article, price vat and sum
524      $r.="<TR>";      $r.="<TR>";
525      $r.="<TH>Article</TH>";      $r.="<TH>Article</TH>";
526      $r.="<TH>quantité</TH>";      $r.="<TH>quantit�/TH>";
527      $r.="<TH>prix unit.</TH>";      $r.="<TH>prix unit.</TH>";
528      $r.="<TH>taux tva</TH>";      $r.="<TH>taux tva</TH>";
529      $r.="<TH>Montant HTVA</TH>";      $r.="<TH>Montant HTVA</TH>";
# Line 607  for ($o = 0;$o < $p_number; $o++) { Line 607  for ($o = 0;$o < $p_number; $o++) {
607            $file->table=1;            $file->table=1;
608            $r.="<hr>";            $r.="<hr>";
609            $r.= "<table>";            $r.= "<table>";
610            $r.="<TR>".$file->IOValue("pj","","Pièce justificative")."</TR>";            $r.="<TR>".$file->IOValue("pj","","Pi�e justificative")."</TR>";
611            $r.="</table>";            $r.="</table>";
612            $r.="<hr>";            $r.="<hr>";
613    
# Line 868  function FormAch($p_cn,$p_jrn,$p_user,$p Line 868  function FormAch($p_cn,$p_jrn,$p_user,$p
868    $r.="<TR>";    $r.="<TR>";
869    if ($pview_only==false)  $r.="<th></th>";    if ($pview_only==false)  $r.="<th></th>";
870    $r.="<th>code</th>";    $r.="<th>code</th>";
871    $r.="<th>Dénomination</th>";    $r.="<th>D�omination</th>";
872    $r.="<th>Prix</th>";    $r.="<th>Prix</th>";
873    $r.="<th>Tva</th>";    $r.="<th>Tva</th>";
874    $r.="<th>Quantité</th>";    $r.="<th>Quantit�/th>";
875    
876    $r.="</TR>";    $r.="</TR>";
877    
# Line 972  function FormAch($p_cn,$p_jrn,$p_user,$p Line 972  function FormAch($p_cn,$p_jrn,$p_user,$p
972      $file->table=1;      $file->table=1;
973      $r.="<hr>";      $r.="<hr>";
974      $r.= "<table>";      $r.= "<table>";
975      $r.="<TR>".$file->IOValue("pj","","Pièce justificative")."</TR>";      $r.="<TR>".$file->IOValue("pj","","Pi�e justificative")."</TR>";
976      $r.="</table>";      $r.="</table>";
977      $r.="<hr>";      $r.="<hr>";
978    }    }
# Line 1237  function FormFin($p_cn,$p_jrn,$p_user,$p Line 1237  function FormFin($p_cn,$p_jrn,$p_user,$p
1237        
1238    //  $r.='<TR>'.InputType("Banque","js_search","e_bank_account",$e_bank_account,$pview_only,FICHE_TYPE_FIN).'</TR>';    //  $r.='<TR>'.InputType("Banque","js_search","e_bank_account",$e_bank_account,$pview_only,FICHE_TYPE_FIN).'</TR>';
1239      $W1=new widget("js_search");      $W1=new widget("js_search");
1240        $W1->readonly=$pview_only;
1241      $W1->label="Banque";      $W1->label="Banque";
1242      $W1->name="e_bank_account";      $W1->name="e_bank_account";
1243      $W1->value=$e_bank_account;      $W1->value=$e_bank_account;
# Line 1251  function FormFin($p_cn,$p_jrn,$p_user,$p Line 1252  function FormFin($p_cn,$p_jrn,$p_user,$p
1252    $e_comment=(isset($e_comment))?$e_comment:"";    $e_comment=(isset($e_comment))?$e_comment:"";
1253        
1254    // ComputeBanqueSaldo    // ComputeBanqueSaldo
1255    // cred = nég !!!    // cred = n� !!!
1256    if ( $pview_only == true ) {    if ( $pview_only == true ) {
1257      $solde=GetSolde($p_cn,GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT));      $solde=GetSolde($p_cn,GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT));
1258      $r.=" <b> Solde = ".$solde." </b>";      $r.=" <b> Solde = ".$solde." </b>";
# Line 1265  function FormFin($p_cn,$p_jrn,$p_user,$p Line 1266  function FormFin($p_cn,$p_jrn,$p_user,$p
1266    $r.="<TR>";    $r.="<TR>";
1267    $r.="<th></TH>";    $r.="<th></TH>";
1268    $r.="<th>code</TH>";    $r.="<th>code</TH>";
1269    $r.="<th>Dénomination</TH>";    $r.="<th>D�omination</TH>";
1270    $r.="<th>Description</TH>";    $r.="<th>Description</TH>";
1271    $r.="<th>Montant</TH>";    $r.="<th>Montant</TH>";
1272    $r.='<th colspan="2"> Op. Concernée</th>';    $r.='<th colspan="2"> Op. Concern�</th>';
1273    $r.="</TR>";    $r.="</TR>";
1274    // Parse each " tiers"    // Parse each " tiers"
1275      for ($i=0; $i < $p_item; $i++) {      for ($i=0; $i < $p_item; $i++) {
# Line 1335  $r.="</TABLE>"; Line 1336  $r.="</TABLE>";
1336     $file->table=1;     $file->table=1;
1337     $r.="<hr>";     $r.="<hr>";
1338     $r.= "<table>";     $r.= "<table>";
1339     $r.="<TR>".$file->IOValue("pj","","Pièce justificative")."</TR>";     $r.="<TR>".$file->IOValue("pj","","Pi�e justificative")."</TR>";
1340     $r.="</table>";     $r.="</table>";
1341     $r.="<hr>";     $r.="<hr>";
1342   }   }
# Line 1511  function FormODS($p_cn,$p_jrn,$p_user,$p Line 1512  function FormODS($p_cn,$p_jrn,$p_user,$p
1512    
1513    // Start the div for item to encode    // Start the div for item to encode
1514    $r.="<DIV>";    $r.="<DIV>";
1515    $r.='<H2 class="info">Opérations Diverses</H2>';    $r.='<H2 class="info">Op�ations Diverses</H2>';
1516    $r.='<TABLE border="0">';    $r.='<TABLE border="0">';
1517    $r.="<tr>";    $r.="<tr>";
1518    $r.="<th></th>";    $r.="<th></th>";
1519    $r.="<th>Compte</th>";    $r.="<th>Compte</th>";
1520    $r.="<th>Poste</th>";    $r.="<th>Poste</th>";
1521    $r.="<th>Montant</th>";    $r.="<th>Montant</th>";
1522    $r.="<th>Crédit ou débit</th>";    $r.="<th>Cr�it ou d�it</th>";
1523    $r.="</tr>";    $r.="</tr>";
1524    $sum_deb=0.0;    $sum_deb=0.0;
1525    $sum_cred=0.0;    $sum_cred=0.0;
# Line 1580  function FormODS($p_cn,$p_jrn,$p_user,$p Line 1581  function FormODS($p_cn,$p_jrn,$p_user,$p
1581      $d_check=( ${"e_account$i"."_type"} == 'd' )?"CHECKED":"";      $d_check=( ${"e_account$i"."_type"} == 'd' )?"CHECKED":"";
1582      $r.='<td>';      $r.='<td>';
1583      if ( $pview_only == false ) {      if ( $pview_only == false ) {
1584        $r.='  <input type="radio" name="'."e_account"."$i"."_type".'" value="d" '.$d_check.'> Débit ou ';        $r.='  <input type="radio" name="'."e_account"."$i"."_type".'" value="d" '.$d_check.'> D�it ou ';
1585        $r.='  <input type="radio" name="'."e_account"."$i"."_type".'" value="c" '.$c_check.'> Crédit ';        $r.='  <input type="radio" name="'."e_account"."$i"."_type".'" value="c" '.$c_check.'> Cr�it ';
1586      }else {      }else {
1587        $r.=(${"e_account$i"."_type"} == 'c' )?"Crédit":"Débit";        $r.=(${"e_account$i"."_type"} == 'c' )?"Cr�it":"D�it";
1588        $r.='<input type="hidden" name="e_account'.$i.'_type" value="'.${"e_account$i"."_type"}.'">';        $r.='<input type="hidden" name="e_account'.$i.'_type" value="'.${"e_account$i"."_type"}.'">';
1589      }      }
1590      $r.='</td>';      $r.='</td>';
# Line 1600  function FormODS($p_cn,$p_jrn,$p_user,$p Line 1601  function FormODS($p_cn,$p_jrn,$p_user,$p
1601     $file->table=1;     $file->table=1;
1602     $r.="<hr>";     $r.="<hr>";
1603     $r.= "<table>";     $r.= "<table>";
1604     $r.="<TR>".$file->IOValue("pj","","Pièce justificative")."</TR>";     $r.="<TR>".$file->IOValue("pj","","Pi�e justificative")."</TR>";
1605     $r.="</table>";     $r.="</table>";
1606     $r.="<hr>";     $r.="<hr>";
1607   }   }

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

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