41if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
42include_once NOALYSS_INCLUDE.
'/class/acc_account_ledger.class.php';
43include_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
44include_once NOALYSS_INCLUDE.
'/lib/impress.class.php';
53$cn=Dossier::connect();
63 echo
_(
'Aucun résultat');
69$header = array(
_(
"Date"),
_(
"Référence"),
_(
"Libellé"),
_(
"Pièce"),
_(
"Lettrage"),
_(
"Type"),
_(
"Débit"),
_(
"Crédit"),
_(
"Solde") );
82 if ( count($array1) == 0 )
96 $export->add(sprintf(
"%s - %s ",$accounting_item[
'pcm_val'],$accounting_item[
'pcm_lib']));
105 foreach ($acc_account_ledger->row as
$detail)
130 $export->add(
_(
'Total').
" ".$acc_account_ledger->id);
131 if ( $solde_d > 0 ) {
132 $export->add($solde_d,
"number");
136 if ( $solde_c > 0 ) {
137 $export->add($solde_c,
"number");
142 $export->add(abs($solde_c-$solde_d),
"number");
143 $export->add(($solde_c > $solde_d ?
'C' :
'D'));
154 if (
$detail[
'cred_montant'] > 0)
157 $solde_c =bcadd($solde_c,
$detail[
'cred_montant']);
159 if (
$detail[
'deb_montant'] > 0)
162 $solde_d = bcadd($solde_d,
$detail[
'deb_montant']);
172 if (
$detail[
'deb_montant'] > 0 )
177 if (
$detail[
'cred_montant'] > 0 )
182 $export->add($acc_account_ledger->get_amount_side(
$solde),
"text");
192 $export->add(
_(
'Total').$acc_account_ledger->id);
193 if ($solde_d > 0 )
$export->add($solde_d,
"number");
else $export->add(
"");
194 if ($solde_c > 0 )
$export->add($solde_c,
"number");
else $export->add(
"");
195 $export->add(abs($solde_c-$solde_d),
"number");
196 $export->add(($solde_c > $solde_d ?
'C' :
'D'));
_("actif, passif,charge,...")
Manage the account from the table jrn, jrnx or tmp_pcmn.
static get_used_accounting($from_date, $to_date, $from_accounting, $to_accounting)
Manage the CSV : manage files and write CSV record.
for($e=0; $e< count($afiche); $e++) exit
if(count($a_accounting)==0) $header