if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); \Noalyss\Dbg::echo_file(__FILE__); /** * @file * @brief display purchase on one line with sum of VAT, Operation, Private exp. * @todo prévoir aussi pour les non assujetti : faire disparaître les montants TVA */ bcscale(2); $p_col=($nb_other_tax<>0)?"0,1,2,3,4,5,6,7,8,9,10,11":"0,1,2,3,4,5,6,7,8,9,10,11,12"; 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_amount_private=0; $tot_nonded_vat=0; $tot_nonded_amount=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_nonded_amount=bcadd($tot_nonded_amount,$this->data[$i]['noded_amount']); $tot_nonded_amount=bcadd($tot_nonded_amount,$this->data[$i]['private_amount']); $tot_nonded_vat=bcadd($tot_nonded_vat, $this->data[$i]['noded_vat']); $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]['qp_supplier'],h($this->data[$i]['name'].' '.$this->data[$i]['first_name']." [ {$this->data[$i]['qcode']} ]"))?> data[$i]['jr_comment'])?> data[$i]['novat'])?> data[$i]['noded_amount'],$this->data[$i]['private_amount']));?> 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),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=' ,'; } } ?>