* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*** * @file * @brief * @todo prévoir aussi pour les non assujetti : faire disparaître les montants TVA */ $p_col=($nb_other_tax<>0)?"0,1,2,3,4,5,6,7,8,9,10":"0,1,2,3,4,5,6,7,8,9,10,11"; echo \HtmlInput::filter_table("tb_print_ledger", $p_col, 1); ?> 0) :?> data); $tot_amount_novat=0; $tot_amount_vat=0; $tot_amount_tvac=0; $tot_other_tax=0; for ($i=0;$i<$nb_data;$i++): $odd=($i%2==0)?' class="even" ':' class="odd" '; $tot_amount_novat=bcadd($tot_amount_novat,$this->data[$i]['novat']); $tot_amount_vat=bcadd($tot_amount_vat,$this->data[$i]['vat']); $tot_amount_vat=bcsub($tot_amount_vat,$this->data[$i]['tva_sided']); $tot_amount_tvac=bcadd($tot_amount_tvac,$this->data[$i]['tvac']); $tot_amount_tvac=bcadd($tot_amount_tvac,$this->data[$i]['other_tax_amount']); $tot_other_tax=bcadd($tot_other_tax,$this->data[$i]['other_tax_amount']); ?> > 0) :?> 0) :?>
data[$i]['str_date']?> data[$i]['str_date_paid']?> data[$i]['jr_pj_number']?> data[$i]['jr_id'], $this->data[$i]['jr_internal'])?> data[$i]['qs_client'],h($this->data[$i]['name'].' '.$this->data[$i]['first_name']." [ {$this->data[$i]['qcode']} ]"))?> data[$i]['jr_comment'])?> data[$i]['novat'])?> data[$i]['vat'],$this->data[$i]['tva_sided']))?> data[$i]['other_tax_amount'])?> data[$i]['other_tax_amount'] ,$this->data[$i]['tvac']))?> data[$i]['currency_id'] != '0') : ?> data[$i]['sum_oc_amount'],$this->data[$i]['sum_oc_vat_amount']),2)?> data[$i]['cr_code_iso']?> db->execute('reconcile_date',array($this->data[$i]['jr_id'])); $max=Database::num_row($ret_reconcile); if ($max > 0) { $sep=""; for ($e=0;$e<$max;$e++) { $row=Database::fetch_array($ret_reconcile, $e); $msg=( $row['qcode_bank'] != "")?"[".$row['qcode_bank']."]":$row['jr_internal']; echo $sep.HtmlInput::detail_op($row['jr_id'],$row['jr_date'].' '. $msg); $sep=' ,'; } } ?>