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 |
} |
} |
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; |
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 ) { |
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')); |
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')); |