22if (!defined(
'ALLOWED'))
23 die(
'Appel direct ne sont pas permis');
31$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";
32echo \HtmlInput::filter_table(
"tb_print_ledger",
$p_col, 1);
35<
table class=
"result" id=
"tb_print_ledger">
41 <?=_(
'Date paiement')?>
55 <
th class=
"text-center">
58 <
th class=
"text-center">
61 <
th class=
"text-center">
64 <?php
if ($nb_other_tax<>0) :?>
65 <
th class=
"text-center">
69 <
th class=
"text-center">
73 <
th class=
"text-center">
76 <
th class=
"text-center">
90 $odd=(
$i%2==0)?
' class="even" ':
' class="odd" ';
103 <?=$this->data[
$i][
'str_date']?>
106 <?=$this->data[
$i][
'str_date_paid']?>
109 <?=$this->data[
$i][
'jr_pj_number']?>
115 <?=
HtmlInput::history_card($this->data[
$i][
'qp_supplier'],
h($this->data[
$i][
'name'].
' '.$this->data[
$i][
'first_name'].
" [ {$this->data[$i]['qcode']} ]"))?>
118 <?=
h($this->data[
$i][
'jr_comment'])?>
121 <?=
nbm($this->data[
$i][
'novat'])?>
124 <?=
nbm(bcadd($this->data[
$i][
'noded_amount'],$this->data[
$i][
'private_amount']));?>
127 <?=
nbm(bcsub($this->data[
$i][
'vat'],$this->data[
$i][
'tva_sided']))?>
129 <?php
if ($nb_other_tax<>0) :?>
131 <?=
nbm($this->data[
$i][
'other_tax_amount'])?>
137 <?=
nbm(bcadd($this->data[
$i][
'other_tax_amount'] ,$this->data[
$i][
'tvac']))?>
140 <?php
if ( $this->data[
$i][
'currency_id'] !=
'0') : ?>
141 <?=
nbm ( bcadd($this->data[
$i][
'sum_oc_amount'],$this->data[
$i][
'sum_oc_vat_amount'],2),2)?>
142 <?=$this->data[
$i][
'cr_code_iso']?>
154 $msg=(
$row[
'qcode_bank'] !=
"")?
"[".
$row[
'qcode_bank'].
"]":
$row[
'jr_internal'];
165 <
tr class=
"highlight">
177 <?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.
for( $i=0; $i< $nb_data; $i++)( $i%2==0)?' class endif
h( $row[ 'oa_description'])
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
static echo_file($msg, $print=true)
display the file