Move script
This commit is contained in:
parent
74ef9d5c59
commit
6bad77d8fb
@ -18,25 +18,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/accountancy/admin/thirdpartyaccount.php
|
* \file htdocs/accountancy/admin/export-thirdpartyaccount.php
|
||||||
* \ingroup Accounting Expert
|
* \ingroup Accounting Expert
|
||||||
* \brief Onglet de gestion de parametrages des ventilations
|
* \brief Page to detect empty accounting account
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Dolibarr environment
|
require_once($path."../../htdocs/master.inc.php");
|
||||||
$res = @include ("../main.inc.php");
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/report.lib.php';
|
||||||
if (! $res && file_exists("../main.inc.php"))
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||||
$res = @include ("../main.inc.php");
|
|
||||||
if (! $res && file_exists("../../main.inc.php"))
|
|
||||||
$res = @include ("../../main.inc.php");
|
|
||||||
if (! $res && file_exists("../../../main.inc.php"))
|
|
||||||
$res = @include ("../../../main.inc.php");
|
|
||||||
if (! $res)
|
|
||||||
die("Include of main fails");
|
|
||||||
|
|
||||||
// Class
|
|
||||||
dol_include_once("/core/lib/report.lib.php");
|
|
||||||
dol_include_once("/core/lib/date.lib.php");
|
|
||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
$langs->load("compta");
|
$langs->load("compta");
|
||||||
@ -47,7 +36,7 @@ $langs->load("accountancy");
|
|||||||
if (!$user->admin)
|
if (!$user->admin)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
// Date range
|
// Date range
|
||||||
$year = GETPOST("year");
|
$year = GETPOST("year");
|
||||||
if (empty($year)) {
|
if (empty($year)) {
|
||||||
$year_current = strftime("%Y", dol_now());
|
$year_current = strftime("%Y", dol_now());
|
||||||
@ -124,10 +113,11 @@ print '<input type="button" class="button" style="float: right;" value="Export C
|
|||||||
|
|
||||||
print '
|
print '
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function launch_export() {
|
function launch_export()
|
||||||
|
{
|
||||||
$("div.fiche div.tabBar form input[name=\"action\"]").val("export_csv");
|
$("div.fiche div.tabBar form input[name=\"action\"]").val("export_csv");
|
||||||
$("div.fiche div.tabBar form input[type=\"submit\"]").click();
|
$("div.fiche div.tabBar form input[type=\"submit\"]").click();
|
||||||
$("div.fiche div.tabBar form input[name=\"action\"]").val("");
|
$("div.fiche div.tabBar form input[name=\"action\"]").val();
|
||||||
}
|
}
|
||||||
</script>';
|
</script>';
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user