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';
40$cn=Dossier::connect();
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');
80 $Libelle=sprintf(
"(%s) %s ",$Poste->id,$Poste->get_name());
81 $pdf->SetFont(
'DejaVuCond',
'',10);
85 $type=$Poste->get_type();
91 $label=
_(
"Solde créditeur au lieu de débiteur").mb_chr(9888);
96 $label=
_(
"Solde débiteur au lieu de créditeur").mb_chr(9888);
101 $pdf->SetTextColor(255,39,24);
102 $pdf->write_cell(0,8,
$label,1,0,
'C',fill:
false);
105 $pdf->SetTextColor(0);
106 $pdf->SetFont(
'DejaVuCond',
'',8);
153 $pdf->SetFont(
'DejaVu',
'B',8);
154 $pdf->write_cell(15,8,
_(
'totaux'),0,0,
'L');
167 $pdf->SetFont(
'DejaVuCond',
'',8);
171 $prog=bcadd($prog,
$diff);
172 $fill=(isset(
$_GET[
'oper_detail']))?
$pdf->is_fill(0):
$pdf->is_fill(
$e);
176 if (
$row[
'jr_pj_number'] ==
'')
208 if ( isset(
$_GET[
'oper_detail']))
226 $f_id=
$cn->get_value(
'select f_id from vw_poste_qcode where j_qcode=$1',array(
$a_detail[
$f][
'j_qcode'])) ;
227 $lib=
$cn->get_value(
'select ad_value from fiche_detail where ad_id=$1 and f_id=$2',
261 $pdf->SetFont(
'DejaVu',
'B',8);
263 $pdf->write_cell(160,5,
_(
"Débit"),0,0,
'R');
266 $pdf->write_cell(160,5,
_(
'Crédit'),0,0,
'R');
269 $pdf->write_cell(160,5,
'Solde '.
$solde,0,0,
'R');
276 $solde_until_now=$Poste->get_solde_detail(
" j_date <= to_date('$to_periode','DD.MM.YYYY') ");
278 $pdf->write_cell(40,5,
"Solde global",0,0,
'R');
279 $pdf->write_cell(40,5,
"D : ".
nbm($solde_until_now[
'debit']),0,0,
'R');
280 $pdf->write_cell(40,5,
"C : ".
nbm($solde_until_now[
'credit']),0,0,
'R');
281 $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.
_("actif, passif,charge,...")
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(in_array( $type, array( 'CHA', 'ACT', 'PASINV', 'PROINV')) &&$tot_deb< $tot_cred) if(in_array($type, array('PRO', 'PAS', 'ACTINV', 'CHAINV')) && $tot_deb > $tot_cred) $size
if( $delta< 0) elseif( $delta==0)
for($i=0;$i< $nb_jrn;$i++) $deb