2004-10-19 22:35:36 +02:00
< ? php
2024-07-11 00:45:05 +02:00
/* Copyright ( C ) 2001 - 2005 Rodolphe Quiedeville < rodolphe @ quiedeville . org >
* Copyright ( C ) 2004 - 2019 Laurent Destailleur < eldy @ users . sourceforge . net >
* Copyright ( C ) 2005 - 2012 Regis Houssin < regis . houssin @ inodbox . com >
* Copyright ( C ) 2015 Jean - François Ferry < jfefe @ aternatik . fr >
* Copyright ( C ) 2018 Ferran Marcet < fmarcet @ 2 byte . es >
* Copyright ( C ) 2020 Tobias Sekan < tobias . sekan @ startmail . com >
2024-03-20 22:35:39 +01:00
* Copyright ( C ) 2024 MDW < mdeweerd @ users . noreply . github . com >
2024-07-11 00:45:05 +02:00
* Copyright ( C ) 2024 Alexandre Spangaro < alexandre @ inovea - conseil . com >
2024-07-15 20:52:09 +02:00
* Copyright ( C ) 2024 Frédéric France < frederic . france @ free . fr >
2002-05-11 20:52:36 +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
2002-05-11 20:52:36 +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 />.
2002-05-11 20:52:36 +02:00
*/
2004-11-26 01:16:52 +01:00
2005-02-14 21:26:23 +01:00
/**
2017-10-03 16:00:52 +02:00
* \file htdocs / compta / bank / list . php
2009-01-02 17:43:58 +01:00
* \ingroup banque
2011-12-30 00:33:34 +01:00
* \brief Home page of bank module
2009-01-02 17:43:58 +01:00
*/
2004-11-26 01:16:52 +01:00
2022-09-07 20:08:59 +02:00
// Load Dolibarr environment
2018-07-26 11:57:25 +02:00
require '../../main.inc.php' ;
2024-02-27 12:28:16 +01:00
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formcategory.class.php' ;
2012-08-22 23:11:24 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/lib/bank.lib.php' ;
require_once DOL_DOCUMENT_ROOT . '/compta/tva/class/tva.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' ;
2022-08-29 11:21:49 +02:00
if ( isModEnabled ( 'accounting' )) {
2021-02-23 21:09:01 +01:00
require_once DOL_DOCUMENT_ROOT . '/accountancy/class/accountingaccount.class.php' ;
}
2022-08-29 11:21:49 +02:00
if ( isModEnabled ( 'accounting' )) {
2021-02-23 21:09:01 +01:00
require_once DOL_DOCUMENT_ROOT . '/accountancy/class/accountingjournal.class.php' ;
}
2024-02-27 15:30:37 +01:00
if ( isModEnabled ( 'category' )) {
2021-02-23 21:09:01 +01:00
require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php' ;
}
2013-06-05 16:24:32 +02:00
2024-11-04 23:53:20 +01:00
/**
* @ var Conf $conf
* @ var DoliDB $db
* @ var HookManager $hookmanager
* @ var Translate $langs
* @ var User $user
*/
2018-05-27 09:40:17 +02:00
// Load translation files required by the page
$langs -> loadLangs ( array ( 'banks' , 'categories' , 'accountancy' , 'compta' ));
2005-02-14 21:26:23 +01:00
2020-09-16 19:39:50 +02:00
$action = GETPOST ( 'action' , 'aZ09' );
2020-03-12 12:45:44 +01:00
$massaction = GETPOST ( 'massaction' , 'alpha' );
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$show_files = GETPOSTINT ( 'show_files' );
2020-03-12 12:45:44 +01:00
$confirm = GETPOST ( 'confirm' , 'alpha' );
2016-09-18 15:48:29 +02:00
$toselect = GETPOST ( 'toselect' , 'array' );
2023-12-04 12:01:45 +01:00
$contextpage = GETPOST ( 'contextpage' , 'aZ' ) ? GETPOST ( 'contextpage' , 'aZ' ) : 'bankaccountlist' ; // To manage different context of search
2023-12-08 01:34:52 +01:00
$mode = GETPOST ( 'mode' , 'aZ' );
2016-09-18 15:48:29 +02:00
2020-03-12 12:45:44 +01:00
$search_ref = GETPOST ( 'search_ref' , 'alpha' );
$search_label = GETPOST ( 'search_label' , 'alpha' );
$search_number = GETPOST ( 'search_number' , 'alpha' );
2024-04-02 17:02:14 +02:00
$search_status = GETPOST ( 'search_status' , 'alpha' );
2019-01-27 11:55:16 +01:00
$optioncss = GETPOST ( 'optioncss' , 'alpha' );
2016-09-18 15:48:29 +02:00
2024-03-08 02:49:21 +01:00
$search_category_list = " " ;
2024-02-27 15:30:37 +01:00
if ( isModEnabled ( 'category' )) {
2022-11-17 07:12:57 +01:00
$search_category_list = GETPOST ( " search_category_ " . Categorie :: TYPE_ACCOUNT . " _list " , " array " );
}
2020-03-09 11:43:15 +01:00
2021-03-15 15:12:10 +01:00
$socid = 0 ;
2009-05-05 14:43:51 +02:00
// Security check
2021-02-23 21:09:01 +01:00
if ( $user -> socid ) {
$socid = $user -> socid ;
}
2021-07-19 10:01:11 +02:00
2020-03-12 12:45:44 +01:00
$diroutputmassaction = $conf -> bank -> dir_output . '/temp/massgeneration/' . $user -> id ;
2016-09-18 15:48:29 +02:00
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$limit = GETPOSTINT ( 'limit' ) ? GETPOSTINT ( 'limit' ) : $conf -> liste_limit ;
2022-01-13 11:09:37 +01:00
$sortfield = GETPOST ( 'sortfield' , 'aZ09comma' );
$sortorder = GETPOST ( 'sortorder' , 'aZ09comma' );
2024-10-28 19:08:35 +01:00
$page = GETPOSTISSET ( 'pageplusone' ) ? ( GETPOSTINT ( 'pageplusone' ) - 1 ) : GETPOSTINT ( 'page' );
if ( empty ( $page ) || $page < 0 || GETPOST ( 'button_search' , 'alpha' ) || GETPOST ( 'button_removefilter' , 'alpha' )) {
// If $page is not defined, or '' or -1 or if we click on clear filters
2021-02-23 21:09:01 +01:00
$page = 0 ;
2024-10-28 19:08:35 +01:00
}
2016-09-18 15:48:29 +02:00
$offset = $limit * $page ;
$pageprev = $page - 1 ;
$pagenext = $page + 1 ;
2021-02-23 21:09:01 +01:00
if ( ! $sortfield ) {
$sortfield = 'b.label' ;
}
if ( ! $sortorder ) {
$sortorder = 'ASC' ;
}
2016-09-18 15:48:29 +02:00
2024-06-30 21:02:50 +02:00
// Initialize a technical object to manage hooks of page. Note that conf->hooks_modules contains an array of hook context
2018-03-31 18:48:27 +02:00
$object = new Account ( $db );
2016-09-18 15:48:29 +02:00
$extrafields = new ExtraFields ( $db );
2021-04-15 15:30:02 +02:00
$hookmanager -> initHooks ( array ( 'bankaccountlist' ));
2016-09-18 15:48:29 +02:00
// fetch optionals attributes and labels
2019-10-16 03:34:32 +02:00
$extrafields -> fetch_name_optionals_label ( $object -> table_element );
2020-03-12 12:45:44 +01:00
$search_array_options = $extrafields -> getOptionalsFromPost ( $object -> table_element , '' , 'search_' );
2016-09-18 15:48:29 +02:00
// List of fields to search into when doing a "search in all"
$fieldstosearchall = array (
2024-03-08 02:49:21 +01:00
'b.ref' => 'Ref' ,
'b.label' => 'Label' ,
2016-09-18 15:48:29 +02:00
);
2019-11-13 19:35:39 +01:00
$checkedtypetiers = 0 ;
$arrayfields = array (
2024-03-08 02:49:21 +01:00
'b.ref' => array ( 'label' => $langs -> trans ( " BankAccounts " ), 'checked' => 1 , 'position' => 10 ),
'b.label' => array ( 'label' => $langs -> trans ( " Label " ), 'checked' => 1 , 'position' => 12 ),
'accountype' => array ( 'label' => $langs -> trans ( " Type " ), 'checked' => 1 , 'position' => 14 ),
'b.number' => array ( 'label' => $langs -> trans ( " AccountIdShort " ), 'checked' => 1 , 'position' => 16 ),
'b.account_number' => array ( 'label' => $langs -> trans ( " AccountAccounting " ), 'checked' => ( isModEnabled ( 'accounting' )), 'position' => 18 ),
'b.fk_accountancy_journal' => array ( 'label' => $langs -> trans ( " AccountancyJournal " ), 'checked' => ( isModEnabled ( 'accounting' )), 'position' => 20 ),
'toreconcile' => array ( 'label' => $langs -> trans ( " TransactionsToConciliate " ), 'checked' => 1 , 'position' => 50 ),
'b.currency_code' => array ( 'label' => $langs -> trans ( " Currency " ), 'checked' => 0 , 'position' => 22 ),
'b.datec' => array ( 'label' => $langs -> trans ( " DateCreation " ), 'checked' => 0 , 'position' => 500 ),
'b.tms' => array ( 'label' => $langs -> trans ( " DateModificationShort " ), 'checked' => 0 , 'position' => 500 ),
'b.clos' => array ( 'label' => $langs -> trans ( " Status " ), 'checked' => 1 , 'position' => 1000 ),
'balance' => array ( 'label' => $langs -> trans ( " Balance " ), 'checked' => 1 , 'position' => 1010 ),
2016-09-18 15:48:29 +02:00
);
// Extra fields
2020-12-23 19:14:47 +01:00
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_array_fields.tpl.php' ;
2019-10-22 17:08:37 +02:00
$object -> fields = dol_sort_array ( $object -> fields , 'position' );
$arrayfields = dol_sort_array ( $arrayfields , 'position' );
2024-03-20 22:35:39 +01:00
'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields' ; // dol_sort_array looses type for Phan
2016-09-18 15:48:29 +02:00
2024-02-09 15:58:49 +01:00
$permissiontoadd = $user -> hasRight ( 'banque' , 'modifier' );
$permissiontodelete = $user -> hasRight ( 'banque' , 'configurer' );
2005-08-13 19:55:18 +02:00
2024-01-04 03:30:48 +01:00
$allowed = 0 ;
if ( $user -> hasRight ( 'accounting' , 'chartofaccount' )) {
$allowed = 1 ; // Dictionary with list of banks accounting account allowed to manager of chart account
}
if ( ! $allowed ) {
$result = restrictedArea ( $user , 'banque' );
}
2016-09-18 15:48:29 +02:00
/*
* Actions
*/
2005-08-13 19:55:18 +02:00
2021-02-23 21:09:01 +01:00
if ( GETPOST ( 'cancel' , 'alpha' )) {
2021-03-01 20:37:16 +01:00
$action = 'list' ;
$massaction = '' ;
2021-02-23 21:09:01 +01:00
}
if ( ! GETPOST ( 'confirmmassaction' , 'alpha' ) && $massaction != 'presend' && $massaction != 'confirm_presend' ) {
$massaction = '' ;
}
2008-09-04 21:47:46 +02:00
2024-03-08 02:49:21 +01:00
$parameters = array ( 'socid' => $socid );
2019-11-13 19:35:39 +01:00
$reshook = $hookmanager -> executeHooks ( 'doActions' , $parameters , $object , $action ); // Note that $action and $object may have been modified by some hooks
2021-02-23 21:09:01 +01:00
if ( $reshook < 0 ) {
setEventMessages ( $hookmanager -> error , $hookmanager -> errors , 'errors' );
}
2016-09-18 15:48:29 +02:00
2020-12-24 14:56:26 +01:00
if ( empty ( $reshook )) {
include DOL_DOCUMENT_ROOT . '/core/actions_changeselectedfields.inc.php' ;
2016-09-18 15:48:29 +02:00
2020-12-24 14:56:26 +01:00
// Purge search criteria
2021-02-23 21:09:01 +01:00
if ( GETPOST ( 'button_removefilter_x' , 'alpha' ) || GETPOST ( 'button_removefilter.x' , 'alpha' ) || GETPOST ( 'button_removefilter' , 'alpha' )) { // All tests are required to be compatible with all browsers
2020-12-24 14:56:26 +01:00
$search_ref = '' ;
$search_label = '' ;
$search_number = '' ;
$search_status = '' ;
2022-10-11 02:26:12 +02:00
$search_category_list = array ();
2020-12-24 14:56:26 +01:00
}
2017-06-19 14:31:08 +02:00
2020-12-24 14:56:26 +01:00
// Mass actions
$objectclass = 'Account' ;
$objectlabel = 'FinancialAccount' ;
$uploaddir = $conf -> banque -> dir_output ;
include DOL_DOCUMENT_ROOT . '/core/actions_massactions.inc.php' ;
}
2017-06-19 14:31:08 +02:00
2008-09-04 21:47:46 +02:00
/*
* View
*/
2020-03-09 11:43:15 +01:00
$form = new FormCategory ( $db );
2016-11-05 03:27:56 +01:00
2020-03-09 11:43:15 +01:00
$title = $langs -> trans ( 'BankAccounts' );
2024-01-04 03:30:48 +01:00
$help_url = 'EN:Module_Banks_and_Cash|FR:Module_Banques_et_Caisses|ES:Módulo_Bancos_y_Cajas' ;
2002-05-11 20:52:36 +02:00
2016-06-25 14:20:23 +02:00
// Load array of financial accounts (opened by default)
2005-05-07 23:56:12 +02:00
$accounts = array ();
2024-01-04 03:30:48 +01:00
// Build and execute select
// --------------------------------------------------------------------
2024-02-15 14:08:08 +01:00
$sql = " SELECT b.rowid, b.label, b.courant, b.rappro, b.account_number, b.fk_accountancy_journal, b.currency_code, b.datec as date_creation, b.tms as date_modification " ;
2016-09-18 15:48:29 +02:00
// Add fields from extrafields
2020-03-12 12:45:44 +01:00
if ( ! empty ( $extrafields -> attributes [ $object -> table_element ][ 'label' ])) {
2021-02-23 21:09:01 +01:00
foreach ( $extrafields -> attributes [ $object -> table_element ][ 'label' ] as $key => $val ) {
2021-08-27 22:42:04 +02:00
$sql .= ( $extrafields -> attributes [ $object -> table_element ][ 'type' ][ $key ] != 'separate' ? " , ef. " . $key . " as options_ " . $key : '' );
2021-02-23 21:09:01 +01:00
}
2019-10-16 03:34:32 +02:00
}
2016-09-18 15:48:29 +02:00
// Add fields from hooks
2020-03-09 11:43:15 +01:00
$parameters = array ();
2022-10-18 10:45:48 +02:00
$reshook = $hookmanager -> executeHooks ( 'printFieldListSelect' , $parameters , $object , $action ); // Note that $action and $object may have been modified by hook
2020-03-12 12:45:44 +01:00
$sql .= $hookmanager -> resPrint ;
2024-01-04 03:30:48 +01:00
$sql = preg_replace ( '/,\s*$/' , '' , $sql );
2022-11-26 00:54:49 +01:00
$sqlfields = $sql ; // $sql fields to remove for count total
2020-03-12 12:45:44 +01:00
$sql .= " FROM " . MAIN_DB_PREFIX . " bank_account as b " ;
2021-07-19 10:01:11 +02:00
if ( ! empty ( $extrafields -> attributes [ $object -> table_element ][ 'label' ]) && is_array ( $extrafields -> attributes [ $object -> table_element ][ 'label' ]) && count ( $extrafields -> attributes [ $object -> table_element ][ 'label' ])) {
2021-02-23 21:09:01 +01:00
$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . $object -> table_element . " _extrafields as ef on (b.rowid = ef.fk_object) " ;
}
2020-03-12 12:45:44 +01:00
$sql .= " WHERE b.entity IN ( " . getEntity ( 'bank_account' ) . " ) " ;
2024-04-02 17:02:14 +02:00
if ( $search_status === 'opened' ) {
2021-02-23 21:09:01 +01:00
$sql .= " AND clos = 0 " ;
}
2024-04-02 17:02:14 +02:00
if ( $search_status === 'closed' ) {
2021-02-23 21:09:01 +01:00
$sql .= " AND clos = 1 " ;
}
if ( $search_ref != '' ) {
$sql .= natural_search ( 'b.ref' , $search_ref );
}
if ( $search_label != '' ) {
$sql .= natural_search ( 'b.label' , $search_label );
}
if ( $search_number != '' ) {
$sql .= natural_search ( 'b.number' , $search_number );
}
2022-10-11 02:26:12 +02:00
// Search for tag/category ($searchCategoryBankList is an array of ID)
$searchCategoryBankList = $search_category_list ;
$searchCategoryBankOperator = 0 ;
if ( ! empty ( $searchCategoryBankList )) {
$searchCategoryBankSqlList = array ();
$listofcategoryid = '' ;
foreach ( $searchCategoryBankList as $searchCategoryBank ) {
if ( intval ( $searchCategoryBank ) == - 2 ) {
$searchCategoryBankSqlList [] = " NOT EXISTS (SELECT ck.fk_account FROM " . MAIN_DB_PREFIX . " categorie_account as ck WHERE b.rowid = ck.fk_account) " ;
} elseif ( intval ( $searchCategoryBank ) > 0 ) {
2022-10-31 08:13:11 +01:00
if ( $searchCategoryBankOperator == 0 ) {
$searchCategoryBankSqlList [] = " EXISTS (SELECT ck.fk_account FROM " . MAIN_DB_PREFIX . " categorie_account as ck WHERE b.rowid = ck.fk_account AND ck.fk_categorie = " . (( int ) $searchCategoryBank ) . " ) " ;
} else {
$listofcategoryid .= ( $listofcategoryid ? ', ' : '' ) . (( int ) $searchCategoryBank );
}
2022-10-11 02:26:12 +02:00
}
}
if ( $listofcategoryid ) {
$searchCategoryBankSqlList [] = " EXISTS (SELECT ck.fk_account FROM " . MAIN_DB_PREFIX . " categorie_account as ck WHERE b.rowid = ck.fk_account AND ck.fk_categorie IN ( " . $db -> sanitize ( $listofcategoryid ) . " )) " ;
}
if ( $searchCategoryBankOperator == 1 ) {
if ( ! empty ( $searchCategoryBankSqlList )) {
$sql .= " AND ( " . implode ( ' OR ' , $searchCategoryBankSqlList ) . " ) " ;
}
} else {
if ( ! empty ( $searchCategoryBankSqlList )) {
$sql .= " AND ( " . implode ( ' AND ' , $searchCategoryBankSqlList ) . " ) " ;
}
}
}
2016-09-18 15:48:29 +02:00
// Add where from extra fields
2017-11-27 15:24:29 +01:00
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_search_sql.tpl.php' ;
2016-09-18 15:48:29 +02:00
// Add where from hooks
2020-03-12 12:45:44 +01:00
$parameters = array ();
2022-10-18 10:45:48 +02:00
$reshook = $hookmanager -> executeHooks ( 'printFieldListWhere' , $parameters , $object , $action ); // Note that $action and $object may have been modified by hook
2020-03-12 12:45:44 +01:00
$sql .= $hookmanager -> resPrint ;
2016-09-18 15:48:29 +02:00
// Count total nb of records
2017-01-15 20:49:20 +01:00
$nbtotalofrecords = '' ;
2023-04-28 16:05:25 +02:00
if ( ! getDolGlobalInt ( 'MAIN_DISABLE_FULL_SCANLIST' )) {
2022-11-26 00:54:49 +01:00
/* The fast and low memory method to get and count full list converts the sql into a sql count */
$sqlforcount = preg_replace ( '/^' . preg_quote ( $sqlfields , '/' ) . '/' , 'SELECT COUNT(*) as nbtotalofrecords' , $sql );
$sqlforcount = preg_replace ( '/GROUP BY .*$/' , '' , $sqlforcount );
$resql = $db -> query ( $sqlforcount );
if ( $resql ) {
$objforcount = $db -> fetch_object ( $resql );
$nbtotalofrecords = $objforcount -> nbtotalofrecords ;
} else {
dol_print_error ( $db );
}
2024-01-04 03:30:48 +01:00
if (( $page * $limit ) > $nbtotalofrecords ) { // if total resultset is smaller than the paging size (filtering), goto and load page 0
2022-11-26 00:54:49 +01:00
$page = 0 ;
$offset = 0 ;
}
$db -> free ( $resql );
2016-09-18 15:48:29 +02:00
}
2024-01-04 03:30:48 +01:00
// Complete request and execute it with limit
2022-11-27 21:10:37 +01:00
$sql .= $db -> order ( $sortfield , $sortorder );
if ( $limit ) {
$sql .= $db -> plimit ( $limit + 1 , $offset );
}
2002-05-11 20:52:36 +02:00
2005-08-02 16:52:04 +02:00
$resql = $db -> query ( $sql );
2021-02-23 21:09:01 +01:00
if ( $resql ) {
2020-10-31 14:32:18 +01:00
$num = $db -> num_rows ( $resql );
$i = 0 ;
2021-02-23 21:09:01 +01:00
while ( $i < $num ) {
2020-10-31 14:32:18 +01:00
$objp = $db -> fetch_object ( $resql );
$accounts [ $objp -> rowid ] = $objp -> courant ;
$i ++ ;
}
$db -> free ( $resql );
2021-02-23 21:09:01 +01:00
} else {
dol_print_error ( $db );
}
2002-05-11 20:52:36 +02:00
2016-06-25 14:20:23 +02:00
2024-07-15 20:52:09 +02:00
llxHeader ( '' , $title , $help_url , '' , 0 , 0 , '' , '' , '' , 'bodyforlist' );
2016-06-25 14:20:23 +02:00
2019-11-13 19:35:39 +01:00
$arrayofselected = is_array ( $toselect ) ? $toselect : array ();
$param = '' ;
2023-01-12 16:16:23 +01:00
if ( ! empty ( $mode )) {
$param .= '&mode=' . urlencode ( $mode );
}
2021-02-23 21:09:01 +01:00
if ( ! empty ( $contextpage ) && $contextpage != $_SERVER [ " PHP_SELF " ]) {
$param .= '&contextpage=' . urlencode ( $contextpage );
}
if ( $limit > 0 && $limit != $conf -> liste_limit ) {
2023-04-08 01:43:21 +02:00
$param .= '&limit=' . (( int ) $limit );
2021-02-23 21:09:01 +01:00
}
2024-01-04 03:30:48 +01:00
if ( $optioncss != '' ) {
$param .= '&optioncss=' . urlencode ( $optioncss );
}
2021-02-23 21:09:01 +01:00
if ( $search_ref != '' ) {
$param .= '&search_ref=' . urlencode ( $search_ref );
}
if ( $search_label != '' ) {
$param .= '&search_label=' . urlencode ( $search_label );
}
if ( $search_number != '' ) {
$param .= '&search_number=' . urlencode ( $search_number );
}
2024-04-02 17:02:14 +02:00
if ( $search_status != '' && $search_status != '-1' ) {
2021-02-23 21:09:01 +01:00
$param .= '&search_status=' . urlencode ( $search_status );
}
if ( $show_files ) {
2024-03-08 02:49:21 +01:00
$param .= '&show_files=' . urlencode (( string ) ( $show_files ));
2021-02-23 21:09:01 +01:00
}
2016-09-18 15:48:29 +02:00
// Add $param from extra fields
2017-11-27 15:24:29 +01:00
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_search_param.tpl.php' ;
2021-04-15 15:30:02 +02:00
// Add $param from hooks
2024-05-23 14:41:56 +02:00
$parameters = array ( 'param' => & $param );
2022-10-18 10:45:48 +02:00
$reshook = $hookmanager -> executeHooks ( 'printFieldListSearchParam' , $parameters , $object , $action ); // Note that $action and $object may have been modified by hook
2021-04-15 15:30:02 +02:00
$param .= $hookmanager -> resPrint ;
2011-12-30 00:33:34 +01:00
2016-09-18 15:48:29 +02:00
// List of mass actions available
2019-11-13 19:35:39 +01:00
$arrayofmassactions = array (
2021-04-14 14:45:55 +02:00
// 'presend'=>img_picto('', 'email', 'class="pictofixedwidth"').$langs->trans("SendByMail"),
// 'builddoc'=>img_picto('', 'pdf', 'class="pictofixedwidth"').$langs->trans("PDFMerge"),
2016-09-18 15:48:29 +02:00
);
2024-01-04 03:30:48 +01:00
if ( ! empty ( $permissiontodelete )) {
2021-04-14 12:28:01 +02:00
$arrayofmassactions [ 'predelete' ] = img_picto ( '' , 'delete' , 'class="pictofixedwidth"' ) . $langs -> trans ( " Delete " );
2021-02-23 21:09:01 +01:00
}
2023-10-15 15:32:35 +02:00
if ( isModEnabled ( 'category' ) && $user -> hasRight ( 'banque' , 'modifier' )) {
2021-04-14 12:33:53 +02:00
$arrayofmassactions [ 'preaffecttag' ] = img_picto ( '' , 'category' , 'class="pictofixedwidth"' ) . $langs -> trans ( " AffectTag " );
2021-02-23 21:09:01 +01:00
}
if ( in_array ( $massaction , array ( 'presend' , 'predelete' , 'preaffecttag' ))) {
$arrayofmassactions = array ();
}
2019-11-13 19:35:39 +01:00
$massactionbutton = $form -> selectMassAction ( '' , $arrayofmassactions );
2006-07-01 16:37:19 +02:00
2021-04-15 15:30:02 +02:00
print '<form method="POST" id="searchFormList" action="' . $_SERVER [ " PHP_SELF " ] . '">' . " \n " ;
2021-02-23 21:09:01 +01:00
if ( $optioncss != '' ) {
print '<input type="hidden" name="optioncss" value="' . $optioncss . '">' ;
}
2019-12-18 23:12:31 +01:00
print '<input type="hidden" name="token" value="' . newToken () . '">' ;
2016-09-18 15:48:29 +02:00
print '<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">' ;
print '<input type="hidden" name="action" value="list">' ;
print '<input type="hidden" name="sortfield" value="' . $sortfield . '">' ;
print '<input type="hidden" name="sortorder" value="' . $sortorder . '">' ;
2017-05-21 02:43:51 +02:00
print '<input type="hidden" name="page" value="' . $page . '">' ;
2024-01-04 03:30:48 +01:00
print '<input type="hidden" name="contextpage" value="' . $contextpage . '">' ;
print '<input type="hidden" name="page_y" value="">' ;
2020-04-15 15:01:00 +02:00
print '<input type="hidden" name="search_status" value="' . $search_status . '">' ;
2023-01-12 16:16:23 +01:00
print '<input type="hidden" name="mode" value="' . $mode . '">' ;
2006-07-01 16:37:19 +02:00
2023-01-12 16:16:23 +01:00
$newcardbutton = '' ;
2024-03-08 02:49:21 +01:00
$newcardbutton .= dolGetButtonTitle ( $langs -> trans ( 'ViewList' ), '' , 'fa fa-bars imgforviewmode' , $_SERVER [ " PHP_SELF " ] . '?mode=common' . preg_replace ( '/(&|\?)*mode=[^&]+/' , '' , $param ), '' , (( empty ( $mode ) || $mode == 'common' ) ? 2 : 1 ), array ( 'morecss' => 'reposition' ));
$newcardbutton .= dolGetButtonTitle ( $langs -> trans ( 'ViewKanban' ), '' , 'fa fa-th-list imgforviewmode' , $_SERVER [ " PHP_SELF " ] . '?mode=kanban' . preg_replace ( '/(&|\?)*mode=[^&]+/' , '' , $param ), '' , ( $mode == 'kanban' ? 2 : 1 ), array ( 'morecss' => 'reposition' ));
2023-10-20 03:20:44 +02:00
$newcardbutton .= dolGetButtonTitleSeparator ();
2023-10-15 15:32:35 +02:00
$newcardbutton .= dolGetButtonTitle ( $langs -> trans ( 'NewFinancialAccount' ), '' , 'fa fa-plus-circle' , 'card.php?action=create' , '' , $user -> hasRight ( 'banque' , 'configurer' ));
2021-04-15 15:30:02 +02:00
2020-12-24 14:56:26 +01:00
print_barre_liste ( $title , $page , $_SERVER [ " PHP_SELF " ], $param , $sortfield , $sortorder , $massactionbutton , $num , $nbtotalofrecords , 'bank_account' , 0 , $newcardbutton , '' , $limit , 1 );
2016-09-18 15:48:29 +02:00
2019-11-13 19:35:39 +01:00
$topicmail = " Information " ;
2017-11-15 11:39:11 +01:00
//$modelmail="subscription";
2019-11-13 19:35:39 +01:00
$objecttmp = new Account ( $db );
2020-11-09 15:18:56 +01:00
$trackid = 'bank' . $object -> id ;
2017-11-15 11:39:11 +01:00
include DOL_DOCUMENT_ROOT . '/core/tpl/massactions_pre.tpl.php' ;
2016-09-18 15:48:29 +02:00
2021-07-19 10:01:11 +02:00
//if ($sall) {
// foreach ($fieldstosearchall as $key => $val) {
// $fieldstosearchall[$key] = $langs->trans($val);
// }
// print '<div class="divsearchfieldfilter">'.$langs->trans("FilterOnInto", $sall).join(', ', $fieldstosearchall).'</div>';
//}
2004-02-15 19:42:02 +01:00
2019-11-13 19:35:39 +01:00
$moreforfilter = '' ;
2004-11-16 21:42:37 +01:00
2024-02-27 15:30:37 +01:00
if ( isModEnabled ( 'category' ) && $user -> hasRight ( 'categorie' , 'lire' )) {
2020-03-09 11:43:15 +01:00
$moreforfilter .= $form -> getFilterBox ( Categorie :: TYPE_ACCOUNT , $search_category_list );
}
2005-05-07 23:56:12 +02:00
2016-09-18 15:48:29 +02:00
// Bank accounts
2019-11-13 19:35:39 +01:00
$parameters = array ();
2022-10-18 10:45:48 +02:00
$reshook = $hookmanager -> executeHooks ( 'printFieldPreListTitle' , $parameters , $object , $action ); // Note that $action and $object may have been modified by hook
2021-02-23 21:09:01 +01:00
if ( empty ( $reshook )) {
$moreforfilter .= $hookmanager -> resPrint ;
} else {
$moreforfilter = $hookmanager -> resPrint ;
}
2016-09-18 15:48:29 +02:00
2021-02-23 21:09:01 +01:00
if ( ! empty ( $moreforfilter )) {
2016-09-18 15:48:29 +02:00
print '<div class="liste_titre liste_titre_bydiv centpercent">' ;
print $moreforfilter ;
print '</div>' ;
}
2011-12-30 00:33:34 +01:00
2019-11-13 19:35:39 +01:00
$varpage = empty ( $contextpage ) ? $_SERVER [ " PHP_SELF " ] : $contextpage ;
2024-04-30 09:45:28 +02:00
$htmlofselectarray = $form -> multiSelectArrayWithCheckbox ( 'selectedfields' , $arrayfields , $varpage , getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )); // This also change content of $arrayfields with user setup
$selectedfields = ( $mode != 'kanban' ? $htmlofselectarray : '' );
2021-04-15 15:30:02 +02:00
$selectedfields .= ( count ( $arrayofmassactions ) ? $form -> showCheckAddButtons ( 'checkforselect' , 1 ) : '' );
2006-07-01 16:37:19 +02:00
2024-01-11 09:58:34 +01:00
print '<div class="div-table-responsive">' ; // You can use div-table-responsive-no-min if you don't need reserved height for your table
2021-04-15 15:30:02 +02:00
print '<table class="tagtable nobottomiftotal liste' . ( $moreforfilter ? " listwithfilterbefore " : " " ) . '">' . " \n " ;
2006-07-01 16:37:19 +02:00
2021-04-15 15:30:02 +02:00
// Fields title search
// --------------------------------------------------------------------
2023-06-13 02:41:44 +02:00
print '<tr class="liste_titre_filter">' ;
2022-11-19 23:26:07 +01:00
// Action column
if ( getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
2024-01-04 03:30:48 +01:00
print '<td class="liste_titre center maxwidthsearch">' ;
2022-11-19 23:26:07 +01:00
$searchpicto = $form -> showFilterButtons ( 'left' );
print $searchpicto ;
print '</td>' ;
}
2016-09-18 15:48:29 +02:00
// Ref
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.ref' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '<input class="flat" size="6" type="text" name="search_ref" value="' . dol_escape_htmltag ( $search_ref ) . '">' ;
print '</td>' ;
2005-05-07 23:56:12 +02:00
}
2016-11-04 17:48:20 +01:00
// Label
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.label' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '<input class="flat" size="6" type="text" name="search_label" value="' . dol_escape_htmltag ( $search_label ) . '">' ;
print '</td>' ;
2015-03-08 02:37:25 +01:00
}
2016-11-04 17:48:20 +01:00
// Account type
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'accountype' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '</td>' ;
2014-06-11 17:42:03 +02:00
}
2017-04-29 15:30:40 +02:00
// Bank number
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.number' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '<input class="flat" size="6" type="text" name="search_number" value="' . dol_escape_htmltag ( $search_number ) . '">' ;
print '</td>' ;
2016-09-18 15:48:29 +02:00
}
2017-04-29 15:30:40 +02:00
// Account number
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.account_number' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '</td>' ;
2016-11-16 19:56:03 +01:00
}
2017-04-29 15:30:40 +02:00
// Accountancy journal
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.fk_accountancy_journal' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '</td>' ;
2017-04-29 15:30:40 +02:00
}
2016-09-18 15:48:29 +02:00
// Transactions to reconcile
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'toreconcile' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '</td>' ;
2016-09-18 15:48:29 +02:00
}
2017-09-25 18:11:03 +02:00
// Currency
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.currency_code' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '</td>' ;
2017-09-25 18:11:03 +02:00
}
2016-09-18 15:48:29 +02:00
// Extra fields
2017-11-27 15:24:29 +01:00
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_search_input.tpl.php' ;
2016-09-18 15:48:29 +02:00
// Fields from hook
2024-03-08 02:49:21 +01:00
$parameters = array ( 'arrayfields' => $arrayfields );
2022-10-18 10:45:48 +02:00
$reshook = $hookmanager -> executeHooks ( 'printFieldListOption' , $parameters , $object , $action ); // Note that $action and $object may have been modified by hook
2016-09-18 15:48:29 +02:00
print $hookmanager -> resPrint ;
// Date creation
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.datec' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '</td>' ;
2016-09-18 15:48:29 +02:00
}
// Date modification
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.tms' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre">' ;
print '</td>' ;
2016-09-18 15:48:29 +02:00
}
2017-09-19 19:00:28 +02:00
// Status
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.clos' ][ 'checked' ])) {
2023-01-05 04:04:16 +01:00
print '<td class="liste_titre center parentonrightofpage">' ;
2020-10-31 14:32:18 +01:00
$array = array (
2024-03-08 02:49:21 +01:00
'opened' => $langs -> trans ( " Opened " ),
'closed' => $langs -> trans ( " Closed " )
2020-10-31 14:32:18 +01:00
);
2023-06-13 02:41:44 +02:00
print $form -> selectarray ( " search_status " , $array , $search_status , 1 , 0 , 0 , '' , 0 , 0 , 0 , '' , 'search_status minwidth75 maxwidth125 onrightofpage' , 1 );
2020-10-31 14:32:18 +01:00
print '</td>' ;
2016-09-18 15:48:29 +02:00
}
// Balance
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'balance' ][ 'checked' ])) {
2020-10-31 14:32:18 +01:00
print '<td class="liste_titre"></td>' ;
2016-11-16 19:56:03 +01:00
}
2016-09-18 15:48:29 +02:00
// Action column
2022-11-19 23:26:07 +01:00
if ( ! getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
2024-01-04 03:30:48 +01:00
print '<td class="liste_titre center maxwidthsearch">' ;
2022-11-19 23:26:07 +01:00
$searchpicto = $form -> showFilterButtons ();
print $searchpicto ;
print '</td>' ;
}
2021-04-15 15:30:02 +02:00
print '</tr>' . " \n " ;
2005-05-07 23:56:12 +02:00
2023-06-29 13:16:44 +02:00
$totalarray = array ();
$totalarray [ 'nbfield' ] = 0 ;
2021-04-15 15:30:02 +02:00
// Fields title label
// --------------------------------------------------------------------
2017-03-28 18:42:23 +02:00
print '<tr class="liste_titre">' ;
2024-01-04 03:30:48 +01:00
// Action column
2022-11-19 23:26:07 +01:00
if ( getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print_liste_field_titre ( $selectedfields , $_SERVER [ " PHP_SELF " ], " " , '' , '' , '' , $sortfield , $sortorder , 'center maxwidthsearch ' );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2022-11-19 23:26:07 +01:00
}
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.ref' ][ 'checked' ])) {
2024-09-29 21:52:31 +02:00
// False positive @phan-suppress-next-line PhanTypeInvalidDimOffset
2021-02-23 21:09:01 +01:00
print_liste_field_titre ( $arrayfields [ 'b.ref' ][ 'label' ], $_SERVER [ " PHP_SELF " ], 'b.ref' , '' , $param , '' , $sortfield , $sortorder );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'b.label' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'b.label' ][ 'label' ], $_SERVER [ " PHP_SELF " ], 'b.label' , '' , $param , '' , $sortfield , $sortorder );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'accountype' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'accountype' ][ 'label' ], $_SERVER [ " PHP_SELF " ], '' , '' , $param , '' , $sortfield , $sortorder );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'b.number' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'b.number' ][ 'label' ], $_SERVER [ " PHP_SELF " ], 'b.number' , '' , $param , '' , $sortfield , $sortorder );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'b.account_number' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'b.account_number' ][ 'label' ], $_SERVER [ " PHP_SELF " ], 'b.account_number' , '' , $param , '' , $sortfield , $sortorder );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'b.fk_accountancy_journal' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'b.fk_accountancy_journal' ][ 'label' ], $_SERVER [ " PHP_SELF " ], 'b.fk_accountancy_journal' , '' , $param , '' , $sortfield , $sortorder );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'b.currency_code' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'b.currency_code' ][ 'label' ], $_SERVER [ " PHP_SELF " ], 'b.currency_code' , '' , $param , '' , $sortfield , $sortorder , 'center ' );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'toreconcile' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'toreconcile' ][ 'label' ], $_SERVER [ " PHP_SELF " ], '' , '' , $param , '' , $sortfield , $sortorder , 'center ' );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
2017-03-28 18:42:23 +02:00
// Extra fields
2017-11-27 15:24:29 +01:00
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_search_title.tpl.php' ;
2017-03-28 18:42:23 +02:00
// Hook fields
2024-03-08 02:49:21 +01:00
$parameters = array ( 'arrayfields' => $arrayfields , 'param' => $param , 'sortfield' => $sortfield , 'sortorder' => $sortorder );
2022-10-18 10:45:48 +02:00
$reshook = $hookmanager -> executeHooks ( 'printFieldListTitle' , $parameters , $object , $action ); // Note that $action and $object may have been modified by hook
2017-03-28 18:42:23 +02:00
print $hookmanager -> resPrint ;
2021-02-23 21:09:01 +01:00
if ( ! empty ( $arrayfields [ 'b.datec' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'b.datec' ][ 'label' ], $_SERVER [ " PHP_SELF " ], " b.datec " , " " , $param , '' , $sortfield , $sortorder , 'center nowrap ' );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'b.tms' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'b.tms' ][ 'label' ], $_SERVER [ " PHP_SELF " ], " b.tms " , " " , $param , '' , $sortfield , $sortorder , 'center nowrap ' );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'b.clos' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'b.clos' ][ 'label' ], $_SERVER [ " PHP_SELF " ], 'b.clos' , '' , $param , '' , $sortfield , $sortorder , 'center ' );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
if ( ! empty ( $arrayfields [ 'balance' ][ 'checked' ])) {
print_liste_field_titre ( $arrayfields [ 'balance' ][ 'label' ], $_SERVER [ " PHP_SELF " ], '' , '' , $param , '' , $sortfield , $sortorder , 'right ' );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2021-02-23 21:09:01 +01:00
}
2024-01-04 03:30:48 +01:00
// Action column
2022-11-19 23:26:07 +01:00
if ( ! getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print_liste_field_titre ( $selectedfields , $_SERVER [ " PHP_SELF " ], " " , '' , '' , '' , $sortfield , $sortorder , 'center maxwidthsearch ' );
2023-06-29 13:16:44 +02:00
$totalarray [ 'nbfield' ] ++ ;
2022-11-19 23:26:07 +01:00
}
2024-01-04 03:30:48 +01:00
print '</tr>' . " \n " ;
2005-05-07 23:56:12 +02:00
2024-01-04 03:30:48 +01:00
// Loop on record
// --------------------------------------------------------------------
$i = 0 ;
2023-06-28 11:50:28 +02:00
$savnbfield = $totalarray [ 'nbfield' ];
2023-06-29 13:16:44 +02:00
$totalarray = array ();
2021-05-11 18:25:20 +02:00
$totalarray [ 'nbfield' ] = 0 ;
2024-03-08 02:49:21 +01:00
$totalarray [ 'val' ] = array ( 'balance' => 0 );
2021-10-23 10:57:03 +02:00
$total = array ();
2021-03-01 20:37:16 +01:00
$found = 0 ;
$lastcurrencycode = '' ;
2023-03-02 19:40:28 +01:00
$imaxinloop = ( $limit ? min ( $num , $limit ) : $num );
2018-06-13 22:52:24 +02:00
2021-02-23 21:09:01 +01:00
foreach ( $accounts as $key => $type ) {
if ( $i >= $limit ) {
break ;
}
2017-06-19 14:31:08 +02:00
2020-10-31 14:32:18 +01:00
$found ++ ;
2011-12-30 00:33:34 +01:00
2019-04-01 19:27:34 +02:00
$result = $objecttmp -> fetch ( $key );
2005-05-07 23:56:12 +02:00
2019-04-01 19:27:34 +02:00
$solde = $objecttmp -> solde ( 1 );
2005-05-07 23:56:12 +02:00
2021-02-23 21:09:01 +01:00
if ( ! empty ( $lastcurrencycode ) && $lastcurrencycode != $objecttmp -> currency_code ) {
2020-03-12 12:45:44 +01:00
$lastcurrencycode = 'various' ; // We found several different currencies
2016-12-11 11:51:21 +01:00
}
2021-02-23 21:09:01 +01:00
if ( $lastcurrencycode != 'various' ) {
2020-03-12 12:45:44 +01:00
$lastcurrencycode = $objecttmp -> currency_code ;
2016-12-11 11:51:21 +01:00
}
2017-06-19 14:31:08 +02:00
2023-01-12 16:16:23 +01:00
if ( $mode == 'kanban' ) {
if ( $i == 0 ) {
2023-06-28 11:50:28 +02:00
print '<tr class="trkanban"><td colspan="' . $savnbfield . '">' ;
2023-02-19 02:39:39 +01:00
print '<div class="box-flex-container kanban">' ;
2023-01-12 16:16:23 +01:00
}
// Output Kanban
2024-01-04 03:30:48 +01:00
$selected = - 1 ;
if ( $massactionbutton || $massaction ) { // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
$selected = 0 ;
if ( in_array ( $object -> id , $arrayofselected )) {
$selected = 1 ;
}
}
//print $object->getKanbanView('', array('thirdparty'=>$object->thirdparty, 'selected' => $selected));
2024-01-04 03:32:39 +01:00
print $objecttmp -> getKanbanView ( '' , array ( 'selected' => $selected ));
2023-03-02 19:40:28 +01:00
if ( $i == ( $imaxinloop - 1 )) {
2023-01-12 16:16:23 +01:00
print '</div>' ;
print '</td></tr>' ;
}
} else {
2024-01-04 03:30:48 +01:00
// Show line of result
$j = 0 ;
print '<tr data-rowid="' . $objecttmp -> id . '" class="oddeven">' ;
2023-01-12 16:16:23 +01:00
// Action column
if ( getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print '<td class="nowrap center">' ;
if ( $massactionbutton || $massaction ) { // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
$selected = 0 ;
if ( in_array ( $objecttmp -> id , $arrayofselected )) {
$selected = 1 ;
}
print '<input id="cb' . $objecttmp -> id . '" class="flat checkforselect" type="checkbox" name="toselect[]" value="' . $objecttmp -> id . '"' . ( $selected ? ' checked="checked"' : '' ) . '>' ;
2022-11-19 23:26:07 +01:00
}
2023-01-12 16:16:23 +01:00
print '</td>' ;
2024-01-04 03:30:48 +01:00
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2022-11-19 23:26:07 +01:00
}
2023-01-12 16:16:23 +01:00
// Ref
if ( ! empty ( $arrayfields [ 'b.ref' ][ 'checked' ])) {
print '<td class="nowraponall">' . $objecttmp -> getNomUrl ( 1 ) . '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2017-06-19 14:31:08 +02:00
2023-01-12 16:16:23 +01:00
// Label
if ( ! empty ( $arrayfields [ 'b.label' ][ 'checked' ])) {
print '<td class="tdoverflowmax200" title="' . dol_escape_htmltag ( $objecttmp -> label ) . '">' . dol_escape_htmltag ( $objecttmp -> label ) . '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2017-06-19 14:31:08 +02:00
2023-01-12 16:16:23 +01:00
// Account type
if ( ! empty ( $arrayfields [ 'accountype' ][ 'checked' ])) {
print '<td class="tdoverflowmax150" title="' . dol_escape_htmltag ( $objecttmp -> type_lib [ $objecttmp -> type ]) . '">' ;
print $objecttmp -> type_lib [ $objecttmp -> type ];
print '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2020-10-31 14:32:18 +01:00
2023-01-12 16:16:23 +01:00
// Number
if ( ! empty ( $arrayfields [ 'b.number' ][ 'checked' ])) {
print '<td>' . dol_escape_htmltag ( $objecttmp -> number ) . '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2020-10-31 14:32:18 +01:00
2023-01-12 16:16:23 +01:00
// Account number
if ( ! empty ( $arrayfields [ 'b.account_number' ][ 'checked' ])) {
print '<td class="tdoverflowmax250">' ;
if ( isModEnabled ( 'accounting' ) && ! empty ( $objecttmp -> account_number )) {
$accountingaccount = new AccountingAccount ( $db );
2024-07-31 18:54:52 +02:00
$accountingaccount -> fetch ( 0 , $objecttmp -> account_number , 1 );
2023-01-12 16:16:23 +01:00
print '<span title="' . dol_escape_htmltag ( $accountingaccount -> account_number . ' - ' . $accountingaccount -> label ) . '">' ;
print $accountingaccount -> getNomUrl ( 0 , 1 , 1 , '' , 0 );
print '</span>' ;
} else {
print '<span title="' . dol_escape_htmltag ( $objecttmp -> account_number ) . '">' . $objecttmp -> account_number . '</span>' ;
}
print '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2017-06-19 14:31:08 +02:00
2023-01-12 16:16:23 +01:00
// Accountancy journal
if ( ! empty ( $arrayfields [ 'b.fk_accountancy_journal' ][ 'checked' ])) {
print '<td class="tdoverflowmax125">' ;
if ( isModEnabled ( 'accounting' )) {
if ( empty ( $objecttmp -> fk_accountancy_journal )) {
print img_warning ( $langs -> trans ( " Mandatory " ));
} else {
$accountingjournal = new AccountingJournal ( $db );
$accountingjournal -> fetch ( $objecttmp -> fk_accountancy_journal );
print $accountingjournal -> getNomUrl ( 0 , 1 , 1 , '' , 1 );
}
2022-04-29 17:15:42 +02:00
} else {
2023-01-12 16:16:23 +01:00
print '' ;
}
print '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
2022-04-29 17:15:42 +02:00
}
2021-02-23 21:09:01 +01:00
}
2020-10-31 14:32:18 +01:00
2023-01-12 16:16:23 +01:00
// Currency
if ( ! empty ( $arrayfields [ 'b.currency_code' ][ 'checked' ])) {
print '<td class="center nowraponall">' ;
print $objecttmp -> currency_code ;
print '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2020-10-31 14:32:18 +01:00
2023-01-12 16:16:23 +01:00
// Transactions to reconcile
if ( ! empty ( $arrayfields [ 'toreconcile' ][ 'checked' ])) {
$conciliate = $objecttmp -> canBeConciliated ();
$labeltoshow = '' ;
if ( $conciliate == - 2 ) {
$labeltoshow = $langs -> trans ( " CashAccount " );
} elseif ( $conciliate == - 3 ) {
$labeltoshow = $langs -> trans ( " Closed " );
} elseif ( empty ( $objecttmp -> rappro )) {
$labeltoshow = $langs -> trans ( " ConciliationDisabled " );
}
2022-05-31 11:00:21 +02:00
2023-01-12 16:16:23 +01:00
print '<td class="center tdoverflowmax125"' . ( $labeltoshow ? ' title="' . dol_escape_htmltag ( $labeltoshow ) . '"' : '' ) . '>' ;
if ( $conciliate == - 2 ) {
print '<span class="opacitymedium">' . $langs -> trans ( " CashAccount " ) . '</span>' ;
} elseif ( $conciliate == - 3 ) {
print '<span class="opacitymedium">' . $langs -> trans ( " Closed " ) . '</span>' ;
} elseif ( empty ( $objecttmp -> rappro )) {
print '<span class="opacitymedium">' . $langs -> trans ( " ConciliationDisabled " ) . '</span>' ;
2020-10-31 14:32:18 +01:00
} else {
2023-01-12 16:16:23 +01:00
$result = $objecttmp -> load_board ( $user , $objecttmp -> id );
if ( is_numeric ( $result ) && $result < 0 ) {
setEventMessages ( $objecttmp -> error , $objecttmp -> errors , 'errors' );
} else {
print '<a href="' . DOL_URL_ROOT . '/compta/bank/bankentries_list.php?action=reconcile&sortfield=b.datev,b.dateo,b.rowid&sortorder=asc,asc,asc&id=' . $objecttmp -> id . '&search_account=' . $objecttmp -> id . '&search_conciliated=0&contextpage=banktransactionlist">' ;
print '<span class="badge badge-info classfortooltip" title="' . dol_htmlentities ( $langs -> trans ( " TransactionsToConciliate " )) . '">' ;
print $result -> nbtodo ;
2020-10-31 14:32:18 +01:00
print '</span>' ;
2023-01-12 16:16:23 +01:00
print '</a>' ;
if ( $result -> nbtodolate ) {
print '<span title="' . dol_htmlentities ( $langs -> trans ( " Late " )) . '" class="classfortooltip badge badge-danger marginleftonlyshort">' ;
print '<i class="fa fa-exclamation-triangle"></i> ' . $result -> nbtodolate ;
print '</span>' ;
}
2020-10-31 14:32:18 +01:00
}
}
2023-01-12 16:16:23 +01:00
print '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2020-10-31 14:32:18 +01:00
2023-01-12 16:16:23 +01:00
// Extra fields
if ( is_array ( $objecttmp -> array_options )) {
$obj = new stdClass ();
foreach ( $objecttmp -> array_options as $k => $v ) {
$obj -> $k = $v ;
}
2024-08-27 04:57:04 +02:00
} else {
$obj = null ;
2020-05-05 14:47:31 +02:00
}
2023-01-12 16:16:23 +01:00
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_print_fields.tpl.php' ;
// Fields from hook
2024-03-08 02:49:21 +01:00
$parameters = array ( 'arrayfields' => $arrayfields , 'obj' => $obj , 'i' => $i , 'totalarray' => & $totalarray );
2023-01-12 16:16:23 +01:00
$reshook = $hookmanager -> executeHooks ( 'printFieldListValue' , $parameters , $objecttmp , $action ); // Note that $action and $objecttmpect may have been modified by hook
print $hookmanager -> resPrint ;
// Date creation
if ( ! empty ( $arrayfields [ 'b.datec' ][ 'checked' ])) {
print '<td class="center nowraponall">' ;
print dol_print_date ( $objecttmp -> date_creation , 'dayhour' );
print '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2023-01-12 16:16:23 +01:00
// Date modification
if ( ! empty ( $arrayfields [ 'b.tms' ][ 'checked' ])) {
print '<td class="center nowraponall">' ;
2024-02-15 14:08:08 +01:00
print dol_print_date ( $objecttmp -> date_modification , 'dayhour' );
2023-01-12 16:16:23 +01:00
print '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2020-10-31 14:32:18 +01:00
2023-01-12 16:16:23 +01:00
// Status
if ( ! empty ( $arrayfields [ 'b.clos' ][ 'checked' ])) {
print '<td class="center">' . $objecttmp -> getLibStatut ( 5 ) . '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2017-06-19 14:31:08 +02:00
2023-01-12 16:16:23 +01:00
// Balance
if ( ! empty ( $arrayfields [ 'balance' ][ 'checked' ])) {
print '<td class="nowraponall right">' ;
print '<a href="' . DOL_URL_ROOT . '/compta/bank/bankentries_list.php?id=' . $objecttmp -> id . '">' ;
2023-03-01 20:10:37 +01:00
print '<span class="amount">' . price ( price2num ( $solde , 'MT' ), 0 , $langs , 1 , - 1 , - 1 , $objecttmp -> currency_code ) . '</span>' ;
2023-01-12 16:16:23 +01:00
print '</a>' ;
print '</td>' ;
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
if ( ! $i ) {
$totalarray [ 'pos' ][ $totalarray [ 'nbfield' ]] = 'balance' ;
}
$totalarray [ 'val' ][ 'balance' ] += $solde ;
2021-02-23 21:09:01 +01:00
}
2017-06-19 14:31:08 +02:00
2023-01-12 16:16:23 +01:00
// Action column
if ( ! getDolGlobalString ( 'MAIN_CHECKBOX_LEFT_COLUMN' )) {
print '<td class="nowrap center">' ;
if ( $massactionbutton || $massaction ) { // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
$selected = 0 ;
if ( in_array ( $objecttmp -> id , $arrayofselected )) {
$selected = 1 ;
}
print '<input id="cb' . $objecttmp -> id . '" class="flat checkforselect" type="checkbox" name="toselect[]" value="' . $objecttmp -> id . '"' . ( $selected ? ' checked="checked"' : '' ) . '>' ;
2022-11-19 23:26:07 +01:00
}
2023-01-12 16:16:23 +01:00
print '</td>' ;
2024-01-04 03:30:48 +01:00
if ( ! $i ) {
$totalarray [ 'nbfield' ] ++ ;
}
2021-02-23 21:09:01 +01:00
}
2017-06-19 14:31:08 +02:00
2024-01-04 03:30:48 +01:00
print '</tr>' . " \n " ;
2016-11-16 21:24:51 +01:00
2023-01-12 16:16:23 +01:00
if ( empty ( $total [ $objecttmp -> currency_code ])) {
$total [ $objecttmp -> currency_code ] = $solde ;
} else {
$total [ $objecttmp -> currency_code ] += $solde ;
}
2021-10-23 10:57:03 +02:00
}
2016-11-16 21:24:51 +01:00
$i ++ ;
2014-10-16 20:55:13 +02:00
}
2016-11-16 21:24:51 +01:00
2019-04-17 01:18:02 +02:00
// If no record found
2021-02-23 21:09:01 +01:00
if ( ! $found ) {
2020-10-31 14:32:18 +01:00
$colspan = 1 ;
2021-02-23 21:09:01 +01:00
foreach ( $arrayfields as $key => $val ) {
if ( ! empty ( $val [ 'checked' ])) {
$colspan ++ ;
}
}
2023-06-14 15:09:36 +02:00
print '<tr><td colspan="' . $colspan . '"><span class="opacitymedium">' . $langs -> trans ( " NoRecordFound " ) . '</span></td></tr>' ;
2019-04-17 01:18:02 +02:00
}
2016-11-16 21:24:51 +01:00
// Show total line
2021-02-23 21:09:01 +01:00
if ( $lastcurrencycode != 'various' ) { // If there is several currency, $lastcurrencycode is set to 'various' before
2019-11-05 12:47:38 +01:00
// Show total line
include DOL_DOCUMENT_ROOT . '/core/tpl/list_print_total.tpl.php' ;
2014-06-11 17:42:03 +02:00
}
2005-05-07 23:56:12 +02:00
2024-01-04 03:30:48 +01:00
print '</table>' . " \n " ;
print '</div>' . " \n " ;
2016-11-27 11:41:10 +01:00
2024-01-04 03:30:48 +01:00
print '</form>' . " \n " ;
2002-05-11 20:52:36 +02:00
2018-07-29 19:16:28 +02:00
// End of page
2011-08-27 16:24:16 +02:00
llxFooter ();
2011-12-30 00:33:34 +01:00
$db -> close ();