Clean log
This commit is contained in:
parent
06e92bb262
commit
625ade1a53
@ -288,8 +288,8 @@ if ($action == 'addthumb' || $action == 'addthumbsquarred') { // Regenerate thu
|
|||||||
} else {
|
} else {
|
||||||
$error++;
|
$error++;
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
setEventMessages($langs->trans("ErrorFileDoesNotExists", $_GET["file"]), null, 'errors');
|
setEventMessages($langs->trans("ErrorFileDoesNotExists", GETPOST("file")), null, 'errors');
|
||||||
dol_syslog($langs->transnoentities("ErrorFileDoesNotExists", $_GET["file"]), LOG_WARNING);
|
dol_syslog($langs->transnoentities("ErrorFileDoesNotExists", GETPOST("file")), LOG_WARNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -45,14 +45,14 @@ if (empty($user->rights->cashdesk->run)) {
|
|||||||
|
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
default:
|
default:
|
||||||
if ($_POST['hdnSource'] != 'NULL') {
|
if (GETPOST('hdnSource') != 'NULL') {
|
||||||
$sql = "SELECT p.rowid, p.ref, p.price, p.tva_tx, p.default_vat_code, p.recuperableonly";
|
$sql = "SELECT p.rowid, p.ref, p.price, p.tva_tx, p.default_vat_code, p.recuperableonly";
|
||||||
if (!empty($conf->stock->enabled) && !empty($conf_fkentrepot)) {
|
if (!empty($conf->stock->enabled) && !empty($conf_fkentrepot)) {
|
||||||
$sql .= ", ps.reel";
|
$sql .= ", ps.reel";
|
||||||
}
|
}
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."product as p";
|
$sql .= " FROM ".MAIN_DB_PREFIX."product as p";
|
||||||
if (!empty($conf->stock->enabled) && !empty($conf_fkentrepot)) {
|
if (!empty($conf->stock->enabled) && !empty($conf_fkentrepot)) {
|
||||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_stock as ps ON p.rowid = ps.fk_product AND ps.fk_entrepot = ".$conf_fkentrepot;
|
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_stock as ps ON p.rowid = ps.fk_product AND ps.fk_entrepot = ".((int) $conf_fkentrepot);
|
||||||
}
|
}
|
||||||
$sql .= " WHERE p.entity IN (".getEntity('product').")";
|
$sql .= " WHERE p.entity IN (".getEntity('product').")";
|
||||||
|
|
||||||
@ -164,18 +164,18 @@ switch ($action) {
|
|||||||
$obj_facturation->vatrate = $vatrate; // Save vat rate (full text vat with code)
|
$obj_facturation->vatrate = $vatrate; // Save vat rate (full text vat with code)
|
||||||
|
|
||||||
// Definition du filtre pour n'afficher que le produit concerne
|
// Definition du filtre pour n'afficher que le produit concerne
|
||||||
if ($_POST['hdnSource'] == 'LISTE') {
|
if (GETPOST('hdnSource') == 'LISTE') {
|
||||||
$filtre = $ret['ref'];
|
$filtre = $ret['ref'];
|
||||||
} elseif ($_POST['hdnSource'] == 'REF') {
|
} elseif (GETPOST('hdnSource') == 'REF') {
|
||||||
$filtre = $_POST['txtRef'];
|
$filtre = GETPOST('txtRef');
|
||||||
}
|
}
|
||||||
|
|
||||||
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation&filtre='.$filtre;
|
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation&filtre='.urlencode($filtre);
|
||||||
} else {
|
} else {
|
||||||
$obj_facturation->raz();
|
$obj_facturation->raz();
|
||||||
|
|
||||||
if ($_POST['hdnSource'] == 'REF') {
|
if (GETPOST('hdnSource') == 'REF') {
|
||||||
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation&filtre='.$_POST['txtRef'];
|
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation&filtre='.urlencode(GETPOST('txtRef'));
|
||||||
} else {
|
} else {
|
||||||
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation';
|
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation';
|
||||||
}
|
}
|
||||||
@ -200,10 +200,10 @@ switch ($action) {
|
|||||||
|
|
||||||
case 'ajout_article':
|
case 'ajout_article':
|
||||||
if (!empty($obj_facturation->id)) { // A product was previously selected and stored in session, so we can add it
|
if (!empty($obj_facturation->id)) { // A product was previously selected and stored in session, so we can add it
|
||||||
dol_syslog("facturation_verif save vat ".$_POST['selTva']);
|
dol_syslog("facturation_verif save vat ".GETPOST('selTva'));
|
||||||
$obj_facturation->qte($_POST['txtQte']);
|
$obj_facturation->qte(GETPOST('txtQte'));
|
||||||
$obj_facturation->tva($_POST['selTva']); // id of vat. Saved so we can use it for next product
|
$obj_facturation->tva(GETPOST('selTva')); // id of vat. Saved so we can use it for next product
|
||||||
$obj_facturation->remisePercent($_POST['txtRemise']);
|
$obj_facturation->remisePercent(GETPOST('txtRemise'));
|
||||||
$obj_facturation->ajoutArticle(); // This add an entry into $_SESSION['poscart']
|
$obj_facturation->ajoutArticle(); // This add an entry into $_SESSION['poscart']
|
||||||
// We update prixTotalTtc
|
// We update prixTotalTtc
|
||||||
}
|
}
|
||||||
@ -212,7 +212,7 @@ switch ($action) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'suppr_article':
|
case 'suppr_article':
|
||||||
$obj_facturation->supprArticle($_GET['suppr_id']);
|
$obj_facturation->supprArticle(GETPOST('suppr_id'));
|
||||||
|
|
||||||
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation';
|
$redirection = DOL_URL_ROOT.'/cashdesk/affIndex.php?menutpl=facturation';
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -165,7 +165,7 @@ switch ($action) {
|
|||||||
if (empty($cond_reglement_id)) {
|
if (empty($cond_reglement_id)) {
|
||||||
$cond_reglement_id = 0; // If cond_reglement_id not found
|
$cond_reglement_id = 0; // If cond_reglement_id not found
|
||||||
}
|
}
|
||||||
$note .= $_POST['txtaNotes'];
|
$note .= GETPOST('txtaNotes', 'alphanohtml');
|
||||||
dol_syslog("obj_facturation->getSetPaymentMode()=".$obj_facturation->getSetPaymentMode()." mode_reglement_id=".$mode_reglement_id." cond_reglement_id=".$cond_reglement_id);
|
dol_syslog("obj_facturation->getSetPaymentMode()=".$obj_facturation->getSetPaymentMode()." mode_reglement_id=".$mode_reglement_id." cond_reglement_id=".$cond_reglement_id);
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|||||||
@ -43,9 +43,7 @@ require '../../main.inc.php';
|
|||||||
|
|
||||||
$objectdesc = GETPOST('objectdesc', 'alpha');
|
$objectdesc = GETPOST('objectdesc', 'alpha');
|
||||||
$htmlname = GETPOST('htmlname', 'aZ09');
|
$htmlname = GETPOST('htmlname', 'aZ09');
|
||||||
$sqlfilter = GETPOST('sqlfilter', 'alpha');
|
|
||||||
$outjson = (GETPOST('outjson', 'int') ? GETPOST('outjson', 'int') : 0);
|
$outjson = (GETPOST('outjson', 'int') ? GETPOST('outjson', 'int') : 0);
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
|
|
||||||
|
|
||||||
@ -54,11 +52,8 @@ $id = GETPOST('id', 'int');
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
//print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
||||||
|
|
||||||
dol_syslog(join(',', $_GET));
|
|
||||||
//print_r($_GET);
|
//print_r($_GET);
|
||||||
|
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|
||||||
|
|||||||
@ -59,17 +59,17 @@ top_httphead();
|
|||||||
|
|
||||||
//print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
//print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
||||||
|
|
||||||
dol_syslog("GET is ".join(',', $_GET).', MAIN_USE_ZIPTOWN_DICTIONNARY='.(empty($conf->global->MAIN_USE_ZIPTOWN_DICTIONNARY) ? '' : $conf->global->MAIN_USE_ZIPTOWN_DICTIONNARY));
|
dol_syslog('ziptown call with MAIN_USE_ZIPTOWN_DICTIONNARY='.(empty($conf->global->MAIN_USE_ZIPTOWN_DICTIONNARY) ? '' : $conf->global->MAIN_USE_ZIPTOWN_DICTIONNARY));
|
||||||
//var_dump($_GET);
|
//var_dump($_GET);
|
||||||
|
|
||||||
// Generation of list of zip-town
|
// Generation of list of zip-town
|
||||||
if (!empty($_GET['zipcode']) || !empty($_GET['town'])) {
|
if (GETPOST('zipcode') || GETPOST('town')) {
|
||||||
$return_arr = array();
|
$return_arr = array();
|
||||||
$formcompany = new FormCompany($db);
|
$formcompany = new FormCompany($db);
|
||||||
|
|
||||||
// Define filter on text typed
|
// Define filter on text typed
|
||||||
$zipcode = $_GET['zipcode'] ? $_GET['zipcode'] : '';
|
$zipcode = GETPOST('zipcode');
|
||||||
$town = $_GET['town'] ? $_GET['town'] : '';
|
$town = GETPOST('town');
|
||||||
|
|
||||||
if (!empty($conf->global->MAIN_USE_ZIPTOWN_DICTIONNARY)) { // Use zip-town table
|
if (!empty($conf->global->MAIN_USE_ZIPTOWN_DICTIONNARY)) { // Use zip-town table
|
||||||
$sql = "SELECT z.rowid, z.zip, z.town, z.fk_county, z.fk_pays as fk_country";
|
$sql = "SELECT z.rowid, z.zip, z.town, z.fk_county, z.fk_pays as fk_country";
|
||||||
@ -141,7 +141,6 @@ if (!empty($_GET['zipcode']) || !empty($_GET['town'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo json_encode($return_arr);
|
echo json_encode($return_arr);
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
@ -307,8 +307,8 @@ if ($step == 4 && $action == 'select_model') {
|
|||||||
|
|
||||||
if ($action == 'saveorder') {
|
if ($action == 'saveorder') {
|
||||||
// Enregistrement de la position des champs
|
// Enregistrement de la position des champs
|
||||||
dol_syslog("boxorder=".$_GET['boxorder']." datatoimport=".$_GET["datatoimport"], LOG_DEBUG);
|
dol_syslog("boxorder=".GETPOST('boxorder')." datatoimport=".GETPOST("datatoimport"), LOG_DEBUG);
|
||||||
$part = explode(':', $_GET['boxorder']);
|
$part = explode(':', GETPOST('boxorder'));
|
||||||
$colonne = $part[0];
|
$colonne = $part[0];
|
||||||
$list = $part[1];
|
$list = $part[1];
|
||||||
dol_syslog('column='.$colonne.' list='.$list);
|
dol_syslog('column='.$colonne.' list='.$list);
|
||||||
|
|||||||
@ -68,8 +68,6 @@ $hidepriceinlabel = GETPOST('hidepriceinlabel', 'int');
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
// print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
||||||
|
|
||||||
dol_syslog(join(',', $_GET));
|
|
||||||
// print_r($_GET);
|
// print_r($_GET);
|
||||||
|
|
||||||
if (!empty($action) && $action == 'fetch' && !empty($id)) {
|
if (!empty($action) && $action == 'fetch' && !empty($id)) {
|
||||||
|
|||||||
@ -61,7 +61,6 @@ restrictedArea($user, 'projet', 0, 'projet&project');
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
dol_syslog("Call ajax projet/ajax/projects.php");
|
dol_syslog("Call ajax projet/ajax/projects.php");
|
||||||
//dol_syslog(join(',', $_GET));
|
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
|
||||||
|
|
||||||
|
|||||||
@ -57,8 +57,6 @@ $showtype = GETPOST('showtype', 'int');
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
//print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
||||||
|
|
||||||
dol_syslog(join(',', $_GET));
|
|
||||||
//print_r($_GET);
|
//print_r($_GET);
|
||||||
|
|
||||||
if (!empty($action) && $action == 'fetch' && !empty($id)) {
|
if (!empty($action) && $action == 'fetch' && !empty($id)) {
|
||||||
|
|||||||
@ -58,8 +58,6 @@ top_httphead();
|
|||||||
|
|
||||||
//print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
//print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
||||||
|
|
||||||
dol_syslog(join(',', $_GET));
|
|
||||||
|
|
||||||
|
|
||||||
// Generation liste des societes
|
// Generation liste des societes
|
||||||
if (GETPOST('newcompany') || GETPOST('socid', 'int') || GETPOST('id_fourn')) {
|
if (GETPOST('newcompany') || GETPOST('socid', 'int') || GETPOST('id_fourn')) {
|
||||||
|
|||||||
@ -59,8 +59,6 @@ top_httphead();
|
|||||||
|
|
||||||
print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
print '<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER["PHP_SELF"]).'?'.dol_escape_htmltag($_SERVER["QUERY_STRING"]).' -->'."\n";
|
||||||
|
|
||||||
dol_syslog(join(',', $_POST));
|
|
||||||
|
|
||||||
// Generate list of countries
|
// Generate list of countries
|
||||||
if (!empty($country)) {
|
if (!empty($country)) {
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user