Clean code
This commit is contained in:
parent
35edd3ac6e
commit
23468929df
@ -5,7 +5,7 @@
|
|||||||
* Copyright (C) 2011-2016 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
* Copyright (C) 2011-2016 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||||
* Copyright (C) 2011-2014 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2011-2014 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
||||||
* Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
|
* Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -180,6 +180,10 @@ if (!empty($conf->tax->enabled) && $user->rights->tax->charges->lire) {
|
|||||||
while ($i < min($num, $limit)) {
|
while ($i < min($num, $limit)) {
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
|
|
||||||
|
$tva->id = $obj->rowid;
|
||||||
|
$tva->ref = $obj->rowid;
|
||||||
|
$tva->label = $obj->label;
|
||||||
|
|
||||||
$payment_vat_static->id = $obj->pid;
|
$payment_vat_static->id = $obj->pid;
|
||||||
$payment_vat_static->ref = $obj->pid;
|
$payment_vat_static->ref = $obj->pid;
|
||||||
|
|
||||||
@ -190,31 +194,32 @@ if (!empty($conf->tax->enabled) && $user->rights->tax->charges->lire) {
|
|||||||
|
|
||||||
// VAT
|
// VAT
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$tva->id = $obj->rowid;
|
|
||||||
$tva->ref = $obj->rowid;
|
|
||||||
$tva->label = $obj->label;
|
|
||||||
print $tva->getNomUrl(1, '20');
|
print $tva->getNomUrl(1, '20');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Label
|
// Label
|
||||||
print '<td>'.$obj->label.'</td>';
|
print '<td class="tdoverflowmax150" title="'.dol_escape_htmltag($obj->label).'">'.dol_escape_htmltag($obj->label).'</td>';
|
||||||
|
|
||||||
// Date
|
// Date
|
||||||
$date = $obj->datev;
|
$date = $db->jdate($obj->datev);
|
||||||
print '<td>'.dol_print_date($date, 'day').'</td>';
|
print '<td class="center nowraponall">'.dol_print_date($date, 'day').'</td>';
|
||||||
|
|
||||||
// Date payment
|
// Date payment
|
||||||
print '<td class="center">'.dol_print_date($db->jdate($obj->datep), 'day').'</td>';
|
$datep = $db->jdate($obj->datep);
|
||||||
|
print '<td class="center nowraponalls">'.dol_print_date($datep, 'day').'</td>';
|
||||||
|
|
||||||
// Type payment
|
// Type payment
|
||||||
print '<td>';
|
$labelpaymenttype = '';
|
||||||
if ($obj->payment_code) {
|
if ($obj->payment_code) {
|
||||||
print $langs->trans("PaymentTypeShort".$obj->payment_code).' ';
|
$labelpaymenttype = $langs->trans("PaymentTypeShort".$obj->payment_code).' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '<td class="tdoverflowmax100" title="'.dol_escape_htmltag($labelpaymenttype).'">';
|
||||||
|
print dol_escape_htmltag($labelpaymenttype);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Chq number
|
// Chq number
|
||||||
print '<td>'.$obj->num_payment.'</td>';
|
print '<td>'.dol_escape_htmltag($obj->num_payment).'</td>';
|
||||||
|
|
||||||
if (!empty($conf->banque->enabled)) {
|
if (!empty($conf->banque->enabled)) {
|
||||||
// Bank transaction
|
// Bank transaction
|
||||||
@ -231,10 +236,9 @@ if (!empty($conf->tax->enabled) && $user->rights->tax->charges->lire) {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type
|
|
||||||
//print '<td><a href="../tva/list.php?filtre=tva.fk_type:'.$obj->type.'">'.$obj->type_label.'</a></td>';
|
|
||||||
// Expected to pay
|
// Expected to pay
|
||||||
print '<td class="right"><span class="amount">'.price($obj->total).'</span></td>';
|
print '<td class="right"><span class="amount">'.price($obj->total).'</span></td>';
|
||||||
|
|
||||||
// Paid
|
// Paid
|
||||||
print '<td class="right"><span class="amount">';
|
print '<td class="right"><span class="amount">';
|
||||||
if ($obj->totalpaid) {
|
if ($obj->totalpaid) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user