Merge pull request #3255 from aspangaro/3.8-patch8
Fix: #3253 #3252 #3251 Remove print_r
This commit is contained in:
commit
a5b5302806
@ -73,7 +73,7 @@ $obj->socid=$argv[1];
|
|||||||
|
|
||||||
$listofcontractsforcompany=$obj->getListOfContracts('all');
|
$listofcontractsforcompany=$obj->getListOfContracts('all');
|
||||||
|
|
||||||
print_r($listofcontractsforcompany);
|
print $listofcontractsforcompany;
|
||||||
|
|
||||||
|
|
||||||
// -------------------- END OF YOUR CODE --------------------
|
// -------------------- END OF YOUR CODE --------------------
|
||||||
|
|||||||
@ -106,13 +106,8 @@ if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter")) // Both
|
|||||||
$search_desc='';
|
$search_desc='';
|
||||||
}
|
}
|
||||||
|
|
||||||
//debug move header to top
|
|
||||||
llxHeader('', $langs->trans("Accounts"));
|
|
||||||
|
|
||||||
|
|
||||||
//TODO: modify to update all selected product with a sell account
|
//TODO: modify to update all selected product with a sell account
|
||||||
if (is_array($changeaccount) && count($changeaccount) > 0 && $action == $langs->trans("Accountancy_code_sell")) {
|
if (is_array($changeaccount) && count($changeaccount) > 0 && $action == $langs->trans("Accountancy_code_sell")) {
|
||||||
//print_r ($changeaccount);
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
$db->begin();
|
$db->begin();
|
||||||
@ -121,8 +116,11 @@ if (is_array($changeaccount) && count($changeaccount) > 0 && $action == $langs->
|
|||||||
$sql1 .= " SET p.accountancy_code_sell=" . $account_number_sell;
|
$sql1 .= " SET p.accountancy_code_sell=" . $account_number_sell;
|
||||||
$sql1 .= ' WHERE p.rowid IN (' . implode(',', $changeaccount) . ')';
|
$sql1 .= ' WHERE p.rowid IN (' . implode(',', $changeaccount) . ')';
|
||||||
|
|
||||||
|
// Debug
|
||||||
|
// print_r ($sql1);
|
||||||
|
|
||||||
dol_syslog('accountancy/customer/lines.php::changeaccount product sell sql= ' . $sql1);
|
dol_syslog('accountancy/customer/lines.php::changeaccount product sell sql= ' . $sql1);
|
||||||
print_r ($sql1);
|
|
||||||
$resql1 = $db->query($sql1);
|
$resql1 = $db->query($sql1);
|
||||||
if (! $resql1) {
|
if (! $resql1) {
|
||||||
$error ++;
|
$error ++;
|
||||||
@ -137,7 +135,6 @@ print_r ($sql1);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//TODO: modify to update all selected product with a buy account
|
//TODO: modify to update all selected product with a buy account
|
||||||
if (is_array($changeaccount) && count($changeaccount) > 0 && $action == $langs->trans("Accountancy_code_buy")) {
|
if (is_array($changeaccount) && count($changeaccount) > 0 && $action == $langs->trans("Accountancy_code_buy")) {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
@ -147,8 +144,12 @@ if (is_array($changeaccount) && count($changeaccount) > 0 && $action == $langs->
|
|||||||
$sql1 = "UPDATE " . MAIN_DB_PREFIX . "product as p";
|
$sql1 = "UPDATE " . MAIN_DB_PREFIX . "product as p";
|
||||||
$sql1 .= " SET p.accountancy_code_buy=" . $account_number_buy;
|
$sql1 .= " SET p.accountancy_code_buy=" . $account_number_buy;
|
||||||
$sql1 .= ' WHERE p.rowid IN (' . implode(',', $changeaccount) . ')';
|
$sql1 .= ' WHERE p.rowid IN (' . implode(',', $changeaccount) . ')';
|
||||||
print_r ($sql1);
|
|
||||||
|
// Debug
|
||||||
|
// print_r ($sql1);
|
||||||
|
|
||||||
dol_syslog('accountancy/customer/lines.php::changeaccount product buy sql= ' . $sql1);
|
dol_syslog('accountancy/customer/lines.php::changeaccount product buy sql= ' . $sql1);
|
||||||
|
|
||||||
$resql1 = $db->query($sql1);
|
$resql1 = $db->query($sql1);
|
||||||
if (! $resql1) {
|
if (! $resql1) {
|
||||||
$error ++;
|
$error ++;
|
||||||
@ -166,12 +167,10 @@ print_r ($sql1);
|
|||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
//DEBUG elarifr
|
llxHeader('', $langs->trans("Accounts"));
|
||||||
//llxHeader('', $langs->trans("Accounts"));
|
|
||||||
|
|
||||||
// For updating account export
|
// For updating account export
|
||||||
print '<script type="text/javascript">
|
print '<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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user