25if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
26include_once(
"class/acc_account_ledger.class.php");
27include_once(
"lib/ac_common.php");
28include_once(
"lib/impress.class.php");
29require_once NOALYSS_INCLUDE.
'/header_print.php';
39$cn=Dossier::connect();
46$pdf->SetAuthor(
'NOALYSS');
47$pdf->setTitle(
_(
"Détail fiche"),
true);
67 $label=
_(
"Solde créditeur au lieu de débiteur").mb_chr(9888);
72 $label=
_(
"Solde débiteur au lieu de créditeur").mb_chr(9888);
76$size=array(13,25,20,60,12,20,20,20);
77$align=array(
'L',
'C',
'C',
'L',
'R',
'R',
'R',
'R');
80$pdf->SetFont(
'DejaVu',
'',10);
86 $pdf->SetTextColor(255,39,24);
87 $pdf->write_cell(0,8,
$label,1,0,
'C',fill:
false);
91$pdf->SetFont(
'DejaVuCond',
'',8);
129 $solde=
" "._(
"créditeur").
" ";
134 $solde=
" "._(
'débiteur').
" ";
138 $pdf->SetFont(
'DejaVu',
'B',8);
139 $pdf->write_multi(15,6,
_(
'totaux'),0,
'L');
152 $pdf->SetFont(
'DejaVuCond',
'',8);
161 if (
$row[
'jr_pj_number'] ==
'')
190 if ( isset(
$_GET[
'oper_detail']))
208 $f_id=
$cn->get_value(
'select f_id from vw_poste_qcode where j_qcode=$1',array(
$a_detail[
$f][
'j_qcode'])) ;
209 $lib=
$cn->get_value(
'select ad_value from fiche_detail where ad_id=$1 and f_id=$2',
234 $solde=
" "._(
"créditeur").
" ";
239 $solde=
" "._(
'débiteur').
" ";
243$pdf->SetFont(
'DejaVu',
'B',8);
245$pdf->write_cell(160,5,
'Débit',0,0,
'R');
248$pdf->write_cell(160,5,
'Crédit',0,0,
'R');
251$pdf->write_cell(160,5,
'Solde '.
$solde,0,0,
'R');
258 $solde_until_now=
$Fiche->get_solde_detail(
" j_date <= to_date('$to_periode','DD.MM.YYYY') ");
260 $pdf->write_cell(40,5,
"Solde global",0,0,
'R');
261 $pdf->write_cell(40,5,
"D : ".
nbm($solde_until_now[
'debit']),0,0,
'R');
262 $pdf->write_cell(40,5,
"C : ".
nbm($solde_until_now[
'credit']),0,0,
'R');
263 $pdf->write_cell(40,5,
"Delta : ".
nbm($solde_until_now[
'solde']).
" ".
$Fiche->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...
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
API for creating PDF, unicode, based on tfpdf.
const ATTR_DEF_FIRST_NAME
for($e=0; $e< count($afiche); $e++) exit
if(count($array)==0) $acc_account_ledger
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
for($i=0;$i< $nb_jrn;$i++) $deb