2007-09-12 00:36:57 +02:00
< ? php
2022-06-13 03:56:46 +02:00
/* Copyright ( C ) 2005 - 2009 Regis Houssin < regis . houssin @ inodbox . com >
* Copyright ( C ) 2008 - 2009 Laurent Destailleur ( Eldy ) < eldy @ users . sourceforge . net >
* Copyright ( C ) 2008 Raphael Bertrand ( Resultic ) < raphael . bertrand @ resultic . fr >
* Copyright ( C ) 2015 Marcos GarcÃa < marcosgdf @ gmail . com
2019-02-03 14:29:45 +01:00
* Copyright ( C ) 2016 Frédéric France < frederic . france @ free . fr >
2007-09-12 00:36:57 +02:00
*
* 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
2013-01-16 15:36:08 +01:00
* the Free Software Foundation ; either version 3 of the License , or
2007-09-12 00:36:57 +02:00
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
2019-09-23 21:55:30 +02:00
* along with this program . If not , see < https :// www . gnu . org / licenses />.
2007-09-12 00:36:57 +02:00
*/
/**
2009-08-07 20:39:01 +02:00
* \file htdocs / compta / bank / treso . php
* \ingroup banque
2016-10-21 17:00:31 +02:00
* \brief Page to estimate future balance
2008-07-31 18:07:40 +02:00
*/
2007-09-12 00:36:57 +02:00
2013-04-15 13:11:29 +02:00
require '../../main.inc.php' ;
2012-08-22 23:11:24 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/lib/bank.lib.php' ;
require_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php' ;
require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php' ;
require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.facture.class.php' ;
require_once DOL_DOCUMENT_ROOT . '/compta/sociales/class/chargesociales.class.php' ;
2013-06-05 16:24:32 +02:00
require_once DOL_DOCUMENT_ROOT . '/compta/bank/class/account.class.php' ;
2018-05-27 09:40:17 +02:00
// Load translation files required by the page
$langs -> loadLangs ( array ( 'banks' , 'categories' , 'bills' , 'companies' ));
2007-09-12 00:36:57 +02:00
2009-05-05 14:43:51 +02:00
// Security check
2021-03-18 20:57:50 +01:00
if ( GETPOSTISSET ( " account " ) || GETPOSTISSET ( " ref " )) {
$id = GETPOSTISSET ( " account " ) ? GETPOST ( " account " ) : ( GETPOSTISSET ( " ref " ) ? GETPOST ( " ref " ) : '' );
2009-05-05 14:43:51 +02:00
}
2021-03-18 20:57:50 +01:00
$fieldid = GETPOSTISSET ( " ref " ) ? 'ref' : 'rowid' ;
2021-02-23 21:09:01 +01:00
if ( $user -> socid ) {
$socid = $user -> socid ;
}
2020-02-21 17:53:37 +01:00
$result = restrictedArea ( $user , 'banque' , $id , 'bank_account&bank_account' , '' , '' , $fieldid );
2009-05-05 14:43:51 +02:00
2007-09-12 00:36:57 +02:00
2021-03-18 20:57:50 +01:00
$vline = GETPOST ( 'vline' );
$page = GETPOSTISSET ( " page " ) ? GETPOST ( " page " ) : 0 ;
2007-09-12 00:36:57 +02:00
2018-09-22 18:44:00 +02:00
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
2020-02-21 17:53:37 +01:00
$hookmanager -> initHooks ( array ( 'banktreso' , 'globalcard' ));
2018-09-22 18:44:00 +02:00
2021-03-18 20:57:50 +01:00
2007-09-12 00:36:57 +02:00
/*
2008-07-31 18:07:40 +02:00
* View
*/
2007-09-12 00:36:57 +02:00
2016-08-29 21:49:34 +02:00
$title = $langs -> trans ( " FinancialAccount " ) . ' - ' . $langs -> trans ( " PlannedTransactions " );
$helpurl = " " ;
2019-01-27 11:55:16 +01:00
llxHeader ( '' , $title , $helpurl );
2007-11-05 23:37:41 +01:00
2007-09-12 00:36:57 +02:00
$societestatic = new Societe ( $db );
2020-02-21 17:53:37 +01:00
$facturestatic = new Facture ( $db );
$facturefournstatic = new FactureFournisseur ( $db );
$socialcontribstatic = new ChargeSociales ( $db );
2007-09-12 00:36:57 +02:00
2011-11-08 10:18:45 +01:00
$form = new Form ( $db );
2007-09-12 00:36:57 +02:00
2021-03-18 20:57:50 +01:00
if ( GETPOST ( " account " ) || GETPOST ( " ref " )) {
2021-02-23 21:09:01 +01:00
if ( $vline ) {
2007-09-12 00:36:57 +02:00
$viewline = $vline ;
2020-05-21 15:05:19 +02:00
} else {
2007-09-12 00:36:57 +02:00
$viewline = 20 ;
}
2007-11-05 23:37:41 +01:00
2016-10-21 17:00:31 +02:00
$object = new Account ( $db );
2021-03-18 20:57:50 +01:00
if ( GETPOST ( " account " , 'int' )) {
$result = $object -> fetch ( GETPOST ( " account " , 'int' ));
2007-11-05 23:37:41 +01:00
}
2021-03-18 20:57:50 +01:00
if ( GETPOST ( " ref " )) {
$result = $object -> fetch ( 0 , GETPOST ( " ref " ));
2020-02-21 17:53:37 +01:00
$_GET [ " account " ] = $object -> id ;
2007-11-05 23:37:41 +01:00
}
2007-09-12 00:36:57 +02:00
// Onglets
2020-02-21 17:53:37 +01:00
$head = bank_prepare_head ( $object );
2020-10-22 22:50:03 +02:00
print dol_get_fiche_head ( $head , 'cash' , $langs -> trans ( " FinancialAccount " ), 0 , 'account' );
2008-07-31 18:07:40 +02:00
2017-10-03 16:00:52 +02:00
$linkback = '<a href="' . DOL_URL_ROOT . '/compta/bank/list.php?restore_lastsearch_values=1">' . $langs -> trans ( " BackToList " ) . '</a>' ;
2012-07-28 21:49:47 +02:00
2021-03-18 20:57:50 +01:00
$morehtmlref = '' ;
2017-01-18 15:49:12 +01:00
dol_banner_tab ( $object , 'ref' , $linkback , 1 , 'ref' , 'ref' , $morehtmlref , '' , 0 , '' , '' , 1 );
2007-11-05 23:37:41 +01:00
2020-10-27 18:19:31 +01:00
print dol_get_fiche_end ();
2017-10-03 16:00:52 +02:00
2007-09-12 00:36:57 +02:00
2008-07-31 18:07:40 +02:00
// Remainder to pay in future
2018-12-30 21:21:40 +01:00
$sqls = array ();
2007-09-12 00:36:57 +02:00
2008-07-31 18:07:40 +02:00
// Customer invoices
2018-12-02 14:31:45 +01:00
$sql = " SELECT 'invoice' as family, f.rowid as objid, f.ref as ref, f.total_ttc, f.type, f.date_lim_reglement as dlr, " ;
2020-02-21 17:53:37 +01:00
$sql .= " s.rowid as socid, s.nom as name, s.fournisseur " ;
$sql .= " FROM " . MAIN_DB_PREFIX . " facture as f " ;
$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . " societe as s ON f.fk_soc = s.rowid " ;
$sql .= " WHERE f.entity IN ( " . getEntity ( 'invoice' ) . " ) " ;
$sql .= " AND f.paye = 0 AND f.fk_statut = 1 " ; // Not paid
$sql .= " AND (f.fk_account IN (0, " . $object -> id . " ) OR f.fk_account IS NULL) " ; // Id bank account of invoice
$sql .= " ORDER BY dlr ASC " ;
2018-12-30 21:21:40 +01:00
$sqls [] = $sql ;
2008-07-31 18:07:40 +02:00
// Supplier invoices
2018-09-22 18:44:00 +02:00
$sql = " SELECT 'invoice_supplier' as family, ff.rowid as objid, ff.ref as ref, ff.ref_supplier as ref_supplier, (-1*ff.total_ttc) as total_ttc, ff.type, ff.date_lim_reglement as dlr, " ;
2020-02-21 17:53:37 +01:00
$sql .= " s.rowid as socid, s.nom as name, s.fournisseur " ;
$sql .= " FROM " . MAIN_DB_PREFIX . " facture_fourn as ff " ;
$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . " societe as s ON ff.fk_soc = s.rowid " ;
$sql .= " WHERE ff.entity = " . $conf -> entity ;
$sql .= " AND ff.paye = 0 AND fk_statut = 1 " ; // Not paid
$sql .= " AND (ff.fk_account IN (0, " . $object -> id . " ) OR ff.fk_account IS NULL) " ; // Id bank account of supplier invoice
$sql .= " ORDER BY dlr ASC " ;
2018-12-30 21:21:40 +01:00
$sqls [] = $sql ;
2007-09-12 00:36:57 +02:00
2008-07-31 18:07:40 +02:00
// Social contributions
2021-06-30 17:14:19 +02:00
$sql = " SELECT 'social_contribution' as family, cs.rowid as objid, cs.libelle as ref, (-1*cs.amount) as total_ttc, ccs.libelle as type, cs.date_ech as dlr, " ;
$sql .= " 0 as socid, 'noname' as name, 0 as fournisseur " ;
2020-02-21 17:53:37 +01:00
$sql .= " FROM " . MAIN_DB_PREFIX . " chargesociales as cs " ;
$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . " c_chargesociales as ccs ON cs.fk_type = ccs.id " ;
$sql .= " WHERE cs.entity = " . $conf -> entity ;
$sql .= " AND cs.paye = 0 " ; // Not paid
$sql .= " AND (cs.fk_account IN (0, " . $object -> id . " ) OR cs.fk_account IS NULL) " ; // Id bank account of social contribution
$sql .= " ORDER BY dlr ASC " ;
2018-12-30 21:21:40 +01:00
$sqls [] = $sql ;
2018-09-22 18:44:00 +02:00
2018-12-30 21:21:40 +01:00
// others sql
$parameters = array ();
$reshook = $hookmanager -> executeHooks ( 'addMoreSQL' , $parameters , $object , $action ); // Note that $action and $object may have been modified by hook
2020-02-21 17:53:37 +01:00
if ( empty ( $reshook ) and isset ( $hookmanager -> resArray [ 'sql' ])) {
2018-12-30 21:21:40 +01:00
$sqls [] = $hookmanager -> resArray [ 'sql' ];
}
2008-07-31 18:07:40 +02:00
2020-02-21 17:53:37 +01:00
$error = 0 ;
$tab_sqlobjOrder = array ();
$tab_sqlobj = array ();
2021-07-09 13:33:37 +02:00
$nbtotalofrecords = 0 ;
2009-05-05 17:27:10 +02:00
2020-02-21 17:53:37 +01:00
foreach ( $sqls as $sql ) {
2018-12-30 21:21:40 +01:00
$resql = $db -> query ( $sql );
2019-02-03 14:29:45 +01:00
if ( $resql ) {
2021-07-09 13:33:37 +02:00
$nbtotalofrecords += $db -> num_rows ( $resql );
2019-02-03 14:29:45 +01:00
while ( $sqlobj = $db -> fetch_object ( $resql )) {
2021-06-30 17:14:19 +02:00
$tmpobj = new stdClass ();
$tmpobj -> family = $sqlobj -> family ;
$tmpobj -> objid = $sqlobj -> objid ;
$tmpobj -> ref = $sqlobj -> ref ;
$tmpobj -> total_ttc = $sqlobj -> total_ttc ;
$tmpobj -> type = $sqlobj -> type ;
2021-07-09 13:33:37 +02:00
$tmpobj -> dlr = $db -> jdate ( $sqlobj -> dlr );
2021-06-30 17:14:19 +02:00
$tmpobj -> socid = $sqlobj -> socid ;
$tmpobj -> name = $sqlobj -> name ;
$tmpobj -> fournisseur = $sqlobj -> fournisseur ;
$tab_sqlobj [] = $tmpobj ;
2020-02-21 17:53:37 +01:00
$tab_sqlobjOrder [] = $db -> jdate ( $sqlobj -> dlr );
2018-12-30 21:21:40 +01:00
}
$db -> free ( $resql );
2019-02-03 14:29:45 +01:00
} else {
2018-12-30 21:21:40 +01:00
$error ++ ;
}
}
2009-05-05 17:27:10 +02:00
2021-07-09 13:33:37 +02:00
$param = '' ;
$sortfield = '' ;
$sortorder = '' ;
$massactionbutton = '' ;
$num = 0 ;
$picto = '' ;
$morehtml = '' ;
$limit = 0 ;
print_barre_liste ( $langs -> trans ( " RemainderToPay " ), $page , $_SERVER [ " PHP_SELF " ], $param , $sortfield , $sortorder , $massactionbutton , $num , $nbtotalofrecords , $picto , 0 , $morehtml , '' , $limit , 0 , 0 , 1 );
$solde = $object -> solde ( 0 );
2022-06-13 03:56:46 +02:00
if ( getDolGlobalInt ( 'MULTICOMPANY_INVOICE_SHARING_ENABLED' )) {
2021-07-09 13:33:37 +02:00
$colspan = 6 ;
} else {
$colspan = 5 ;
}
// Show next coming entries
print '<div class="div-table-responsive">' ;
print '<table class="noborder centpercent">' ;
// Ligne de titre tableau des ecritures
print '<tr class="liste_titre">' ;
print '<td>' . $langs -> trans ( " DateDue " ) . '</td>' ;
print '<td>' . $langs -> trans ( " Description " ) . '</td>' ;
2022-06-13 03:56:46 +02:00
if ( getDolGlobalInt ( 'MULTICOMPANY_INVOICE_SHARING_ENABLED' )) {
2021-07-09 13:33:37 +02:00
print '<td>' . $langs -> trans ( " Entity " ) . '</td>' ;
}
print '<td>' . $langs -> trans ( " ThirdParty " ) . '</td>' ;
print '<td class="right">' . $langs -> trans ( " Debit " ) . '</td>' ;
print '<td class="right">' . $langs -> trans ( " Credit " ) . '</td>' ;
print '<td class="right" width="80">' . $langs -> trans ( " BankBalance " ) . '</td>' ;
print '</tr>' ;
// Current balance
print '<tr class="liste_total">' ;
print '<td class="left" colspan="5">' . $langs -> trans ( " CurrentBalance " ) . '</td>' ;
print '<td class="nowrap right">' . price ( $solde ) . '</td>' ;
print '</tr>' ;
2008-07-31 18:07:40 +02:00
// Sort array
2021-02-23 21:09:01 +01:00
if ( ! $error ) {
2019-01-27 11:55:16 +01:00
array_multisort ( $tab_sqlobjOrder , $tab_sqlobj );
2008-07-31 18:07:40 +02:00
2011-09-20 16:36:57 +02:00
$num = count ( $tab_sqlobj );
2008-07-31 18:07:40 +02:00
2007-09-12 00:36:57 +02:00
$i = 0 ;
2021-02-23 21:09:01 +01:00
while ( $i < $num ) {
2008-07-31 18:07:40 +02:00
$ref = '' ;
$refcomp = '' ;
2019-09-03 17:39:19 +02:00
$totalpayment = '' ;
2009-05-05 17:27:10 +02:00
2021-07-09 13:33:37 +02:00
$tmpobj = array_shift ( $tab_sqlobj );
2009-05-05 17:27:10 +02:00
2021-07-09 13:33:37 +02:00
if ( $tmpobj -> family == 'invoice_supplier' ) {
2020-02-21 17:53:37 +01:00
$showline = 1 ;
2014-11-16 16:36:32 +01:00
// Uncomment this line to avoid to count suppliers credit note (ff.type = 2)
2021-07-09 13:33:37 +02:00
//$showline=(($tmpobj->total_ttc < 0 && $tmpobj->type != 2) || ($tmpobj->total_ttc > 0 && $tmpobj->type == 2))
2021-02-23 21:09:01 +01:00
if ( $showline ) {
2021-07-09 13:33:37 +02:00
$ref = $tmpobj -> ref ;
2020-02-21 17:53:37 +01:00
$facturefournstatic -> ref = $ref ;
2021-07-09 13:33:37 +02:00
$facturefournstatic -> id = $tmpobj -> objid ;
$facturefournstatic -> type = $tmpobj -> type ;
2019-01-27 11:55:16 +01:00
$ref = $facturefournstatic -> getNomUrl ( 1 , '' );
2008-07-31 18:07:40 +02:00
2021-07-09 13:33:37 +02:00
$societestatic -> id = $tmpobj -> socid ;
$societestatic -> name = $tmpobj -> name ;
2020-02-21 17:53:37 +01:00
$refcomp = $societestatic -> getNomUrl ( 1 , '' , 24 );
2008-07-31 18:07:40 +02:00
2020-02-21 17:53:37 +01:00
$totalpayment = - 1 * $facturefournstatic -> getSommePaiement (); // Payment already done
2007-12-07 23:24:34 +01:00
}
2007-09-12 00:36:57 +02:00
}
2021-07-09 13:33:37 +02:00
if ( $tmpobj -> family == 'invoice' ) {
$facturestatic -> ref = $tmpobj -> ref ;
$facturestatic -> id = $tmpobj -> objid ;
$facturestatic -> type = $tmpobj -> type ;
2019-01-27 11:55:16 +01:00
$ref = $facturestatic -> getNomUrl ( 1 , '' );
2008-07-31 18:07:40 +02:00
2021-07-09 13:33:37 +02:00
$societestatic -> id = $tmpobj -> socid ;
$societestatic -> name = $tmpobj -> name ;
2020-02-21 17:53:37 +01:00
$refcomp = $societestatic -> getNomUrl ( 1 , '' , 24 );
2007-09-12 00:36:57 +02:00
2020-02-21 17:53:37 +01:00
$totalpayment = $facturestatic -> getSommePaiement (); // Payment already done
$totalpayment += $facturestatic -> getSumDepositsUsed ();
$totalpayment += $facturestatic -> getSumCreditNotesUsed ();
2008-07-31 18:07:40 +02:00
}
2021-07-09 13:33:37 +02:00
if ( $tmpobj -> family == 'social_contribution' ) {
$socialcontribstatic -> ref = $tmpobj -> ref ;
$socialcontribstatic -> id = $tmpobj -> objid ;
$socialcontribstatic -> label = $tmpobj -> type ;
2019-01-27 11:55:16 +01:00
$ref = $socialcontribstatic -> getNomUrl ( 1 , 24 );
2009-05-05 17:27:10 +02:00
2020-02-21 17:53:37 +01:00
$totalpayment = - 1 * $socialcontribstatic -> getSommePaiement (); // Payment already done
2008-07-31 18:07:40 +02:00
}
2009-05-05 17:27:10 +02:00
2021-07-09 13:33:37 +02:00
$parameters = array ( 'obj' => $tmpobj , 'ref' => $ref , 'refcomp' => $refcomp , 'totalpayment' => $totalpayment );
$reshook = $hookmanager -> executeHooks ( 'moreFamily' , $parameters , $tmpobject , $action ); // Note that $action and $tmpobject may have been modified by hook
2020-02-21 17:53:37 +01:00
if ( empty ( $reshook )) {
2019-08-30 23:56:52 +02:00
$ref = isset ( $hookmanager -> resArray [ 'ref' ]) ? $hookmanager -> resArray [ 'ref' ] : $ref ;
$refcomp = isset ( $hookmanager -> resArray [ 'refcomp' ]) ? $hookmanager -> resArray [ 'refcomp' ] : $refcomp ;
2019-09-03 17:39:19 +02:00
$totalpayment = isset ( $hookmanager -> resArray [ 'totalpayment' ]) ? $hookmanager -> resArray [ 'totalpayment' ] : $totalpayment ;
2018-12-30 21:21:40 +01:00
}
2018-09-22 18:44:00 +02:00
2021-07-09 13:33:37 +02:00
$total_ttc = $tmpobj -> total_ttc ;
2021-02-23 21:09:01 +01:00
if ( $totalpayment ) {
2021-07-09 13:33:37 +02:00
$total_ttc = $tmpobj -> total_ttc - $totalpayment ;
2021-02-23 21:09:01 +01:00
}
2007-12-07 23:24:34 +01:00
$solde += $total_ttc ;
2007-09-12 00:36:57 +02:00
2014-11-16 16:36:32 +01:00
// We discard lines with a remainder to pay to 0
2021-02-23 21:09:01 +01:00
if ( price2num ( $total_ttc ) != 0 ) {
2020-10-31 14:32:18 +01:00
// Show line
print '<tr class="oddeven">' ;
print '<td>' ;
2021-07-09 13:33:37 +02:00
if ( $tmpobj -> dlr ) {
print dol_print_date ( $tmpobj -> dlr , " day " );
2021-02-23 21:09:01 +01:00
} else {
print $langs -> trans ( " NotDefined " );
}
2020-10-31 14:32:18 +01:00
print " </td> " ;
print " <td> " . $ref . " </td> " ;
2020-02-19 15:51:27 +01:00
if ( $conf -> global -> MULTICOMPANY_INVOICE_SHARING_ENABLED ) {
2021-07-09 13:33:37 +02:00
if ( $tmpobj -> family == 'invoice' ) {
$mc -> getInfo ( $tmpobj -> entity );
2018-11-07 16:45:04 +01:00
print " <td> " . $mc -> label . " </td> " ;
2020-05-21 15:05:19 +02:00
} else {
2020-02-19 15:51:27 +01:00
print " <td></td> " ;
}
2018-11-07 16:45:04 +01:00
}
2020-10-31 14:32:18 +01:00
print " <td> " . $refcomp . " </td> " ;
2021-07-09 13:33:37 +02:00
if ( $tmpobj -> total_ttc < 0 ) {
2021-02-23 21:09:01 +01:00
print '<td class="nowrap right">' . price ( abs ( $total_ttc )) . " </td><td> </td> " ;
};
2021-07-09 13:33:37 +02:00
if ( $tmpobj -> total_ttc >= 0 ) {
2021-02-23 21:09:01 +01:00
print '<td> </td><td class="nowrap right">' . price ( $total_ttc ) . " </td> " ;
};
2020-10-31 14:32:18 +01:00
print '<td class="nowrap right">' . price ( $solde ) . '</td>' ;
print " </tr> " ;
2010-08-29 21:53:37 +02:00
}
2007-09-12 00:36:57 +02:00
$i ++ ;
}
2020-05-21 15:05:19 +02:00
} else {
2009-02-20 23:53:15 +01:00
dol_print_error ( $db );
2007-12-07 23:24:34 +01:00
}
2007-09-12 00:36:57 +02:00
2018-09-22 18:44:00 +02:00
// Other lines
$parameters = array ( 'solde' => $solde );
$reshook = $hookmanager -> executeHooks ( 'printObjectLine' , $parameters , $object , $action ); // Note that $action and $object may have been modified by hook
2020-02-21 17:53:37 +01:00
if ( empty ( $reshook )) {
2018-09-22 18:44:00 +02:00
print $hookmanager -> resPrint ;
2020-10-31 14:32:18 +01:00
$solde = isset ( $hookmanager -> resArray [ 'solde' ]) ? $hookmanager -> resArray [ 'solde' ] : $solde ;
2018-09-22 18:44:00 +02:00
}
2017-10-03 16:00:52 +02:00
2018-12-30 21:21:40 +01:00
// solde
2008-07-31 19:48:14 +02:00
print '<tr class="liste_total">' ;
2019-01-24 10:02:06 +01:00
print '<td class="left" colspan="' . $colspan . '">' . $langs -> trans ( " FutureBalance " ) . ' (' . $object -> currency_code . ')</td>' ;
print '<td class="nowrap right">' . price ( $solde , 0 , $langs , 0 , 0 , - 1 , $object -> currency_code ) . '</td>' ;
2008-07-31 19:48:14 +02:00
print '</tr>' ;
2009-05-05 17:27:10 +02:00
2007-09-12 00:36:57 +02:00
print " </table> " ;
2020-10-31 14:32:18 +01:00
print " </div> " ;
2020-05-21 15:05:19 +02:00
} else {
2007-09-12 00:36:57 +02:00
print $langs -> trans ( " ErrorBankAccountNotFound " );
}
2018-07-29 19:16:28 +02:00
// End of page
2011-08-27 16:24:16 +02:00
llxFooter ();
2015-12-11 14:19:38 +01:00
$db -> close ();