get_row_sale(); $nb_array=count($array); $dossier_id=Dossier::id(); $ledger=""; $r=0; $tot_vat=0;$tot_wovat=0;$tot_sided=0; for ($i=0;$i < $nb_array;$i++): if ( $ledger != $array[$i]['jrn_def_name']): if ( $ledger != "") : // last row with total echo ''; echo td(); echo td(); echo td(nbm($tot_wovat),' class="num" '); echo td(nbm($tot_vat),' class="num" '); echo td(nbm($tot_sided),' class="num" '); echo ''; echo ''; endif; $ledger=$array[$i]['jrn_def_name']; //reinitialize sum $tot_vat=0;$tot_wovat=0;$tot_sided=0; printf("

%s

",$ledger); echo ''; echo ''; echo th(_("Code TVA")); echo th(_("Taux"),'class="num"'); echo th(_("Montant HT"),'class="num"'); echo th(_("Montant TVA"),'class="num"'); echo th(_("Montant Autoliquidation"),'class="num"'); echo ''; $r=0; endif; $color=($r%2==0)?"even":"odd"; ?> 0): // last row with total echo ''; echo td(); echo td(); echo td(nbm($tot_wovat),' class="num" '); echo td(nbm($tot_vat),' class="num" '); echo td(nbm($tot_sided),' class="num" '); echo ''; else: echo _("Aucune donnée"); endif; echo '
build_link_detail($dossier_id, $this->date_start, $this->date_end,$array[$i]['jrn_def_id'], $array[$i]['qs_vat_code']); ?> Détails %
'; ?>

get_summary_sale(); ?> '; echo td(); echo td(); echo td(nbm($tot_wovat),' class="num" '); echo td(nbm($tot_vat),' class="num" '); echo td(nbm($tot_sided),' class="num" '); echo ''; ?>
%
get_summary_sale(); ?>

get_row_purchase(); $nb_array=count($array); $ledger=""; $r=0; $tot_vat=0;$tot_wovat=0;$tot_sided=0;$tot_noded_amount=0;$tot_noded_tax=0;$tot_noded_return=0;$tot_private=0; for ($i=0;$i < $nb_array;$i++): if ( $ledger != $array[$i]['jrn_def_name']): if ( $ledger != "") : // last row with total echo ''; echo td(); echo td(); echo td(nbm($tot_wovat),' class="num" '); echo td(nbm($tot_private),' class="num" '); echo td(nbm($tot_vat),' class="num" '); echo td(nbm($tot_sided),' class="num" '); echo td(nbm($tot_noded_amount),' class="num" '); echo td(nbm($tot_noded_tax),' class="num" '); echo td(nbm($tot_noded_return),' class="num" '); echo ''; echo ''; endif; $ledger=$array[$i]['jrn_def_name']; //reinitialize sum $tot_vat=0;$tot_wovat=0;$tot_sided=0;$tot_noded_amount=0;$tot_noded_tax=0;$tot_noded_return=0;$tot_private=0; printf("

%s

",$ledger); echo ''; echo ''; echo th(_("Code TVA")); echo th(_("Taux"),'class="num"'); echo th(_("Montant HT"),'class="num"'); echo th(_("Privée"),'class="num"'); echo th(_("Montant TVA"),'class="num"'); echo th(_("Montant Autoliquidation"),'class="num"'); echo th(_("Montant Non Déd"),'class="num"'); echo th(_("TVA Non Déd"),'class="num"'); echo th(_("TVA Non Déd & récup"),'class="num"'); echo ''; $r=0; endif; $color=($r%2==0)?"even":"odd"; ?> 0): echo ''; echo td(); echo td(); echo td(nbm($tot_wovat),' class="num" '); echo td(nbm($tot_private),' class="num" '); echo td(nbm($tot_vat),' class="num" '); echo td(nbm($tot_sided),' class="num" '); echo td(nbm($tot_noded_amount),' class="num" '); echo td(nbm($tot_noded_tax),' class="num" '); echo td(nbm($tot_noded_return),' class="num" '); echo ''; else: echo _("Aucune donnée"); endif; echo '
build_link_detail($dossier_id, $this->date_start, $this->date_end,$array[$i]['jrn_def_id'], $array[$i]['qp_vat_code']); ?> Détails %
'; ?>

get_summary_purchase(); ?> '; echo td(); echo td(); echo td(nbm($tot_wovat),' class="num" '); echo td(nbm($tot_private),' class="num" '); echo td(nbm($tot_vat),' class="num" '); echo td(nbm($tot_sided),' class="num" '); echo td(nbm($tot_noded_amount),' class="num" '); echo td(nbm($tot_noded_tax),' class="num" '); echo td(nbm($tot_noded_return),' class="num" '); echo ''; ?>
%