/** * @file * @brief detail of the list of operation with VAT and items */ bcscale(2); ?> data); $tot_amount_novat=0; $tot_amount_vat=0; $tot_amount_tvac=0; for ($i=0;$i<$nb_data;$i++): $odd=' 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']); $supp_tax=$this->data[$i]['supp_tax']; $tot_other_tax=array_sum(array_column($supp_tax,'j_montant')); $all_tax=bcadd($tot_other_tax,$this->data[$i]['vat']); ?> >
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']))?> data[$i]['jr_comment'])?> data[$i]['currency_id'] !=0) : ?> data[$i]['sum_oc_amount'],$this->data[$i]['sum_oc_vat_amount'],4),2)?> data[$i]['cr_code_iso']?> data[$i]['novat'])?> data[$i]['tva_sided']),2)?> data[$i]['tvac'],$tot_other_tax))?> 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=' ,'; } } ?>
db->execute("detail_sale",array($this->data[$i]['jr_internal'])); $a_detail=Database::fetch_all($det); ?> data[$i]['supp_tax']); for ($j=0;$j<$nb_supp_tax;$j++): ?>
data[$i]['supp_tax'][$j]['j_poste']?> data[$i]['supp_tax'][$j]['ac_label']?> data[$i]['supp_tax'][$j]['j_montant'])?>