Update supplier_turnover_by_thirdparty.php
This commit is contained in:
parent
c3afd7ab4f
commit
079dab3a2c
@ -16,17 +16,19 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/compta/stats/supplier_turnover_by_thirdparty.php
|
* \file htdocs/compta/stats/supplier_turnover_by_thirdparty.php
|
||||||
* \brief Page reporting purchase turnover by thirdparty
|
* \brief Page reporting purchase turnover by thirdparty
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// Load Dolibarr environment
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/report.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/tax.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/report.lib.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/tax.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
@ -38,6 +40,7 @@ if (GETPOST("modecompta")) {
|
|||||||
$modecompta = GETPOST("modecompta");
|
$modecompta = GETPOST("modecompta");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sort Order
|
||||||
$sortorder = GETPOST("sortorder", 'aZ09comma');
|
$sortorder = GETPOST("sortorder", 'aZ09comma');
|
||||||
$sortfield = GETPOST("sortfield", 'aZ09comma');
|
$sortfield = GETPOST("sortfield", 'aZ09comma');
|
||||||
if (!$sortorder) {
|
if (!$sortorder) {
|
||||||
@ -47,6 +50,7 @@ if (!$sortfield) {
|
|||||||
$sortfield = "nom";
|
$sortfield = "nom";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$socid = GETPOST('socid', 'int');
|
$socid = GETPOST('socid', 'int');
|
||||||
|
|
||||||
// Category
|
// Category
|
||||||
@ -59,13 +63,17 @@ if (GETPOST('subcat', 'alpha') === 'yes') {
|
|||||||
// Hook
|
// Hook
|
||||||
$hookmanager->initHooks(array('supplierturnoverbythirdpartylist'));
|
$hookmanager->initHooks(array('supplierturnoverbythirdpartylist'));
|
||||||
|
|
||||||
// Date range
|
|
||||||
$year = GETPOST("year", 'int');
|
// Search Parameters
|
||||||
$month = GETPOST("month", 'int');
|
|
||||||
$search_societe = GETPOST("search_societe", 'alpha');
|
$search_societe = GETPOST("search_societe", 'alpha');
|
||||||
$search_zip = GETPOST("search_zip", 'alpha');
|
$search_zip = GETPOST("search_zip", 'alpha');
|
||||||
$search_town = GETPOST("search_town", 'alpha');
|
$search_town = GETPOST("search_town", 'alpha');
|
||||||
$search_country = GETPOST("search_country", 'alpha');
|
$search_country = GETPOST("search_country", 'alpha');
|
||||||
|
|
||||||
|
|
||||||
|
// Date range
|
||||||
|
$year = GETPOST("year", 'int');
|
||||||
|
$month = GETPOST("month", 'int');
|
||||||
$date_startyear = GETPOST("date_startyear", 'alpha');
|
$date_startyear = GETPOST("date_startyear", 'alpha');
|
||||||
$date_startmonth = GETPOST("date_startmonth", 'alpha');
|
$date_startmonth = GETPOST("date_startmonth", 'alpha');
|
||||||
$date_startday = GETPOST("date_startday", 'alpha');
|
$date_startday = GETPOST("date_startday", 'alpha');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user