27$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";
28echo \HtmlInput::filter_table(
"tb_print_ledger",
$p_col, 1);
31<
table class=
"result" id=
"tb_print_ledger">
37 <?=
_(
'Date paiement')?>
51 <
th class=
"text-center">
55 <
th class=
"text-center">
58<?php
if ($nb_other_tax>0) :?>
59 <
th class=
"text-center">
63 <
th class=
"text-center">
66 <
th class=
"text-center">
69 <
th class=
"text-center">
80 $odd=(
$i%2==0)?
' class="even" ':
' class="odd" ';
90 <?=$this->data[
$i][
'str_date']?>
93 <?=$this->data[
$i][
'str_date_paid']?>
96 <?=$this->data[
$i][
'jr_pj_number']?>
99 <?=HtmlInput::detail_op($this->data[
$i][
'jr_id'], $this->data[
$i][
'jr_internal'])?>
102 <?=HtmlInput::history_card($this->data[
$i][
'qs_client'],
h($this->data[
$i][
'name'].
' '.$this->data[
$i][
'first_name'].
" [ {$this->data[$i]['qcode']} ]"))?>
105 <?=
h($this->data[
$i][
'jr_comment'])?>
108 <?=
nbm($this->data[
$i][
'novat'])?>
111 <?=
nbm(bcsub($this->data[
$i][
'vat'],$this->data[
$i][
'tva_sided']))?>
113 <?php
if ($nb_other_tax>0) :?>
115 <?=
nbm($this->data[
$i][
'other_tax_amount'])?>
119 <?=
nbm(bcadd($this->data[
$i][
'other_tax_amount'] ,$this->data[
$i][
'tvac']))?>
123 <?php
if ( $this->data[
$i][
'currency_id'] !=
'0') : ?>
124 <?=
nbm ( bcadd($this->data[
$i][
'sum_oc_amount'],$this->data[
$i][
'sum_oc_vat_amount']),2)?>
125 <?=$this->data[
$i][
'cr_code_iso']?>
137 $msg=(
$row[
'qcode_bank'] !=
"")?
"[".
$row[
'qcode_bank'].
"]":
$row[
'jr_internal'];
149 <
tr class=
"highlight">
160 <?php
if ($nb_other_tax>0) :?>
th($p_string, $p_extra='', $raw='')
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
nbm($p_number, $p_dec=2)
format the number with a sep.
h( $row[ 'oa_description'])
_("actif, passif,charge,...")
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static num_row($ret)
wrapper for the function pg_num_rows