/[phpcompta]/phpcompta/html/send_jrn_pdf.php
ViewVC logotype

Diff of /phpcompta/html/send_jrn_pdf.php

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

revision 1.9 by sparkyx, Tue Jan 4 20:31:03 2005 UTC revision 1.10 by stanpinte, Thu Apr 21 17:04:46 2005 UTC
# Line 44  if ( isset ($_POST['central']) ) { Line 44  if ( isset ($_POST['central']) ) {
44    $l_centr=1;    $l_centr=1;
45  }  }
46    
47  if ( $_POST["filter"] == YES) {  if ( $_GET["filter"] == YES) {
48    $name_jrn=GetJrnName($cn,$_POST["p_id"]).$centr;    $name_jrn=GetJrnName($cn,$_GET["p_id"]).$centr;
49  } else {  } else {
50    $name_jrn="Grand livre ".$centr;    $name_jrn="Grand livre ".$centr;
51  }  }
# Line 57  $offset=0;$limit=25;$step=25; Line 57  $offset=0;$limit=25;$step=25;
57  $rap_deb=0;$rap_cred=0;  $rap_deb=0;$rap_cred=0;
58  while (1) {  while (1) {
59    $a=0;    $a=0;
60    list ($a_jrn,$tot_deb,$tot_cred)=GetDataJrnPdf($cn,$HTTP_POST_VARS,$limit,$offset);    list ($a_jrn,$tot_deb,$tot_cred)=GetDataJrnPdf($cn,$HTTP_GET_VARS,$limit,$offset);
61    echo_debug(__FILE__,__LINE__,"Total debit $tot_deb,credit $tot_cred");    echo_debug(__FILE__,__LINE__,"Total debit $tot_deb,credit $tot_cred");
62    
63    if ( $a_jrn==null) break;    if ( $a_jrn==null) break;
# Line 71  while (1) { Line 71  while (1) {
71     $Exercice=GetExercice($cn,$a_jrn[0]['periode']);     $Exercice=GetExercice($cn,$a_jrn[0]['periode']);
72    
73    
74    list($rap_deb,$rap_cred)=GetRappel($cn,$first_id,$_POST["p_id"],$Exercice,FIRST,    list($rap_deb,$rap_cred)=GetRappel($cn,$first_id,$_GET["p_id"],$Exercice,FIRST,
75                                       $_POST['filter'],                                       $_GET['filter'],
76                                       $l_centr                                       $l_centr
77                                       );                                       );
78    echo_debug(__FILE__,__LINE__,"MONTANT $rap_deb,$rap_cred");    echo_debug(__FILE__,__LINE__,"MONTANT $rap_deb,$rap_cred");
79    echo_debug(__FILE__,__LINE__,"  list($rap_deb,$rap_cred)=GetRappel($cn,$first_id,".$_POST["p_id"].",$Exercice,FIRST)");    echo_debug(__FILE__,__LINE__,"  list($rap_deb,$rap_cred)=GetRappel($cn,$first_id,".$_GET["p_id"].",$Exercice,FIRST)");
80    $pdf->ezText($name_jrn,30);    $pdf->ezText($name_jrn,30);
81    
82    if (  $l_centr == 1 ) {    if (  $l_centr == 1 ) {
# Line 115  while (1) { Line 115  while (1) {
115    $Exercice=GetExercice($cn,$a_jrn[$count]['periode']);    $Exercice=GetExercice($cn,$a_jrn[$count]['periode']);
116    if ( $l_centr == 1) {    if ( $l_centr == 1) {
117      // Montant de rappel si centralisé      // Montant de rappel si centralisé
118      list($rap_deb,$rap_cred)=GetRappel($cn,$last_id,$_POST["p_id"],$Exercice,LAST,$_POST['filter'],$l_centr);      list($rap_deb,$rap_cred)=GetRappel($cn,$last_id,$_GET["p_id"],$Exercice,LAST,$_GET['filter'],$l_centr);
119      $str_debit=sprintf( "à reporter Débit  % 10.2f",$rap_deb);      $str_debit=sprintf( "à reporter Débit  % 10.2f",$rap_deb);
120      $str_credit=sprintf("à reporter Crédit % 10.2f",$rap_cred);      $str_credit=sprintf("à reporter Crédit % 10.2f",$rap_cred);
121      $pdf->ezText($str_debit,12,array('justification'=>'right'));      $pdf->ezText($str_debit,12,array('justification'=>'right'));
# Line 137  $pdf->ezTable($apage, Line 137  $pdf->ezTable($apage,
137    $last_id=$a_jrn[$count]['j_id'];    $last_id=$a_jrn[$count]['j_id'];
138    $Exercice=GetExercice($cn,$a_jrn[$count]['periode']);    $Exercice=GetExercice($cn,$a_jrn[$count]['periode']);
139    
140    list($rap_deb,$rap_cred)=GetRappel($cn,$last_id,$_POST["p_id"],$Exercice,LAST,$l_POST['filter'],$l_centr);    list($rap_deb,$rap_cred)=GetRappel($cn,$last_id,$_GET["p_id"],$Exercice,LAST,$l_GET['filter'],$l_centr);
141    $str_debit=sprintf( "à reporter  Débit % 10.2f",$rap_deb);    $str_debit=sprintf( "à reporter  Débit % 10.2f",$rap_deb);
142    $str_credit=sprintf("à reporter Crédit % 10.2f",$rap_cred);    $str_credit=sprintf("à reporter Crédit % 10.2f",$rap_cred);
143    $pdf->ezText($str_debit,12,array('justification'=>'right'));    $pdf->ezText($str_debit,12,array('justification'=>'right'));

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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