25if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
26require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
27require_once NOALYSS_INCLUDE.
'/header_print.php';
42if ( $poste_fille <> -1)
44 $a_poste=
$cn->get_array(
"select pcm_val from tmp_pcmn where pcm_val::text like $1||'%' order by pcm_val::text",array(
$poste_id));
48 $a_poste=
$cn->get_array(
"select pcm_val from tmp_pcmn where pcm_val::text = $1 ",array(
$poste_id));
50tracedebug(
"exportpostedetail",
$a_poste,
"a_poste");
57$pdf->SetAuthor(
'NOALYSS');
58$pdf->setTitle(_(
"Détail poste comptable"),
true);
63 $pdf->Output(
'poste.pdf',
'D');
66$size=array(13,25,13,65,12,20,20,20);
67$align=array(
'L',
'C',
'C',
'L',
'R',
'R',
'R',
'R');
79 $Libelle=sprintf(
"(%s) %s ",$Poste->id,$Poste->get_name());
80 $pdf->SetFont(
'DejaVuCond',
'',10);
84 $pdf->SetFont(
'DejaVuCond',
'',8);
131 $pdf->SetFont(
'DejaVu',
'B',8);
132 $pdf->write_cell(15,6,_(
'totaux'),0,0,
'L');
145 $pdf->SetFont(
'DejaVuCond',
'',8);
149 $prog=bcadd($prog,
$diff);
154 if (
$row[
'jr_pj_number'] ==
'')
186 if ( isset(
$_GET[
'oper_detail']))
204 $f_id=
$cn->get_value(
'select f_id from vw_poste_qcode where j_qcode=$1',array(
$a_detail[
$f][
'j_qcode'])) ;
205 $lib=
$cn->get_value(
'select ad_value from fiche_detail where ad_id=$1 and f_id=$2',
239 $pdf->SetFont(
'DejaVu',
'B',8);
241 $pdf->write_cell(160,5,_(
"Débit"),0,0,
'R');
244 $pdf->write_cell(160,5,_(
'Crédit'),0,0,
'R');
247 $pdf->write_cell(160,5,
'Solde '.
$solde,0,0,
'R');
254 $solde_until_now=$Poste->get_solde_detail(
" j_date <= to_date('$to_periode','DD.MM.YYYY') ");
256 $pdf->write_cell(40,5,
"Solde global",0,0,
'R');
257 $pdf->write_cell(40,5,
"D : ".
nbm($solde_until_now[
'debit']),0,0,
'R');
258 $pdf->write_cell(40,5,
"C : ".
nbm($solde_until_now[
'credit']),0,0,
'R');
259 $pdf->write_cell(40,5,
"Delta : ".
nbm($solde_until_now[
'solde']).
" ".$Poste->get_amount_side($solde_until_now[
'debit']-$solde_until_now[
'credit']),0,0,
'R');
shrink_date($p_date)
shrink the date, make a date shorter for the printing
nbm($p_number, $p_dec=2)
format the number with a sep.
Manage the account from the table jrn, jrnx or tmp_pcmn.
this file match the tables jrn & jrnx the purpose is to remove or save accountant writing to these ta...
API for creating PDF, unicode, based on tfpdf.
for($e=0; $e< count($afiche); $e++) exit
for($e=0;$e< count($array);$e++) $str_debit
if(count($a_poste)==0) $size
foreach($a_poste as $poste) $fDate
if( $delta< 0) elseif( $delta==0)
for($i=0;$i< $nb_jrn;$i++) $deb