mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch 'develop' into nospaceaftercomma
This commit is contained in:
commit
e18bd6f986
|
|
@ -220,4 +220,3 @@ for ($s = 0 ; $s < GEN_NUMBER_COMMANDE ; $s++)
|
|||
dol_print_error($db, $object->error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -96,5 +96,3 @@ for ($s = 0 ; $s < GEN_NUMBER_PRODUIT ; $s++)
|
|||
if ($ret < 0) print "Error $ret - ".$produit->error."\n";
|
||||
else print " OK with ref ".$produit->ref."\n";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -127,5 +127,3 @@ for ($s = 0 ; $s < GEN_NUMBER_SOCIETE ; $s++)
|
|||
print "Error: ".$soc->error."\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -275,4 +275,3 @@ else
|
|||
}
|
||||
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -426,4 +426,8 @@
|
|||
<!-- The closing ?> tag MUST be omitted from files containing only PHP. -->
|
||||
<rule ref="Zend.Files.ClosingTag"/>
|
||||
|
||||
<rule ref="PSR2.Classes.ClassDeclaration" />
|
||||
<rule ref="PSR2.Methods.FunctionClosingBrace" />
|
||||
<rule ref="PSR2.Files.EndFileNewline.TooMany" />
|
||||
|
||||
</ruleset>
|
||||
|
|
|
|||
|
|
@ -388,4 +388,3 @@ if ($web)
|
|||
}
|
||||
|
||||
exit;
|
||||
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ if ($resql)
|
|||
if (! empty($arrayfields['aa.pcg_type']['checked'])) print '<td class="liste_titre"><input type="text" class="flat" size="6" name="search_pcgtype" value="' . $search_pcgtype . '"></td>';
|
||||
if (! empty($arrayfields['aa.pcg_subtype']['checked'])) print '<td class="liste_titre"><input type="text" class="flat" size="6" name="search_pcgsubtype" value="' . $search_pcgsubtype . '"></td>';
|
||||
if (! empty($arrayfields['aa.active']['checked'])) print '<td class="liste_titre"> </td>';
|
||||
print '<td align="right" class="liste_titre">';
|
||||
print '<td class="liste_titre right">';
|
||||
$searchpicto=$form->showFilterAndCheckAddButtons($massactionbutton?1:0, 'checkforselect', 1);
|
||||
print $searchpicto;
|
||||
print '</td>';
|
||||
|
|
|
|||
|
|
@ -517,7 +517,7 @@ if ($id)
|
|||
// dans les dictionnaires de donnees
|
||||
$valuetoshow=ucfirst($fieldlist[$field]); // Par defaut
|
||||
$valuetoshow=$langs->trans($valuetoshow); // try to translate
|
||||
$align="left";
|
||||
$class="left";
|
||||
if ($fieldlist[$field]=='code') { $valuetoshow=$langs->trans("Code"); }
|
||||
if ($fieldlist[$field]=='libelle' || $fieldlist[$field]=='label')
|
||||
{
|
||||
|
|
@ -576,7 +576,7 @@ if ($id)
|
|||
fieldListAccountModel($fieldlist, $obj, $tabname[$id], 'add');
|
||||
}
|
||||
|
||||
print '<td colspan="3" align="right">';
|
||||
print '<td colspan="3" class="right">';
|
||||
print '<input type="submit" class="button" name="actionadd" value="'.$langs->trans("Add").'">';
|
||||
print '</td>';
|
||||
print "</tr>";
|
||||
|
|
@ -609,7 +609,7 @@ if ($id)
|
|||
// There is several pages
|
||||
if ($num > $listlimit)
|
||||
{
|
||||
print '<tr class="none"><td align="right" colspan="'.(3+count($fieldlist)).'">';
|
||||
print '<tr class="none"><td class="right" colspan="'.(3+count($fieldlist)).'">';
|
||||
print_fleche_navigation($page, $_SERVER["PHP_SELF"], $paramwithsearch, ($num > $listlimit), '<li class="pagination"><span>'.$langs->trans("Page").' '.($page+1).'</span></li>');
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
|
@ -637,7 +637,7 @@ if ($id)
|
|||
}
|
||||
}
|
||||
print '<td class="liste_titre"></td>';
|
||||
print '<td class="liste_titre" colspan="2" align="right">';
|
||||
print '<td class="liste_titre right" colspan="2">';
|
||||
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
||||
print $searchpicto;
|
||||
print '</td>';
|
||||
|
|
@ -650,7 +650,7 @@ if ($id)
|
|||
// Determine le nom du champ par rapport aux noms possibles
|
||||
// dans les dictionnaires de donnees
|
||||
$showfield=1; // By defaut
|
||||
$align="left";
|
||||
$class="left";
|
||||
$sortable=1;
|
||||
$valuetoshow='';
|
||||
/*
|
||||
|
|
@ -705,7 +705,7 @@ if ($id)
|
|||
|
||||
if (empty($reshook)) fieldListAccountModel($fieldlist, $obj, $tabname[$id], 'edit');
|
||||
|
||||
print '<td colspan="3" align="right"><a name="'.(! empty($obj->rowid)?$obj->rowid:$obj->code).'"> </a><input type="submit" class="button" name="actionmodify" value="'.$langs->trans("Modify").'">';
|
||||
print '<td colspan="3" class="right"><a name="'.(! empty($obj->rowid)?$obj->rowid:$obj->code).'"> </a><input type="submit" class="button" name="actionmodify" value="'.$langs->trans("Modify").'">';
|
||||
print ' <input type="submit" class="button" name="actioncancel" value="'.$langs->trans("Cancel").'"></td>';
|
||||
}
|
||||
else
|
||||
|
|
@ -722,7 +722,7 @@ if ($id)
|
|||
{
|
||||
|
||||
$showfield=1;
|
||||
$align="left";
|
||||
$class="left";
|
||||
$valuetoshow=$obj->{$fieldlist[$field]};
|
||||
if ($value == 'type_template')
|
||||
{
|
||||
|
|
@ -877,4 +877,3 @@ function fieldListAccountModel($fieldlist, $obj = '', $tabname = '', $context =
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -467,7 +467,7 @@ if ($id)
|
|||
// dans les dictionnaires de donnees
|
||||
$valuetoshow=ucfirst($fieldlist[$field]); // Par defaut
|
||||
$valuetoshow=$langs->trans($valuetoshow); // try to translate
|
||||
$align="left";
|
||||
$class="left";
|
||||
if ($fieldlist[$field]=='type') {
|
||||
if ($tabname[$id] == MAIN_DB_PREFIX."c_paiement") $valuetoshow=$form->textwithtooltip($langs->trans("Type"), $langs->trans("TypePaymentDesc"), 2, 1, img_help(1, ''));
|
||||
else $valuetoshow=$langs->trans("Type");
|
||||
|
|
@ -531,7 +531,7 @@ if ($id)
|
|||
fieldListAccountingCategories($fieldlist, $obj, $tabname[$id], 'add');
|
||||
}
|
||||
|
||||
print '<td colspan="4" align="right">';
|
||||
print '<td colspan="4" class="right">';
|
||||
print '<input type="submit" class="button" name="actionadd" value="'.$langs->trans("Add").'">';
|
||||
print '</td>';
|
||||
print "</tr>";
|
||||
|
|
@ -559,7 +559,7 @@ if ($id)
|
|||
// There is several pages
|
||||
if ($num > $listlimit)
|
||||
{
|
||||
print '<tr class="none"><td align="right" colspan="'.(3+count($fieldlist)).'">';
|
||||
print '<tr class="none"><td class="right" colspan="'.(3+count($fieldlist)).'">';
|
||||
print_fleche_navigation($page, $_SERVER["PHP_SELF"], $paramwithsearch, ($num > $listlimit), '<li class="pagination"><span>'.$langs->trans("Page").' '.($page+1).'</span></li>');
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
|
@ -607,7 +607,7 @@ if ($id)
|
|||
// Determine le nom du champ par rapport aux noms possibles
|
||||
// dans les dictionnaires de donnees
|
||||
$showfield=1; // By defaut
|
||||
$align="left";
|
||||
$class="left";
|
||||
$sortable=1;
|
||||
$valuetoshow='';
|
||||
|
||||
|
|
@ -693,7 +693,7 @@ if ($id)
|
|||
{
|
||||
|
||||
$showfield=1;
|
||||
$align="left";
|
||||
$class="left";
|
||||
$valuetoshow=$obj->{$fieldlist[$field]};
|
||||
if ($value == 'category_type')
|
||||
{
|
||||
|
|
@ -873,4 +873,3 @@ function fieldListAccountingCategories($fieldlist, $obj = '', $tabname = '', $co
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/* Copyright (C) 2013-2014 Olivier Geffroy <jeff@jeffinfo.com>
|
||||
* Copyright (C) 2013-2014 Florian Henry <florian.henry@open-concept.pro>
|
||||
* Copyright (C) 2013-2018 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||
* Copyright (C) 2013-2019 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||
* Copyright (C) 2014-2015 Ari Elbaz (elarifr) <github@accedinfo.com>
|
||||
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es>
|
||||
|
|
@ -55,6 +55,8 @@ $list_account_main = array (
|
|||
$list_account = array (
|
||||
'ACCOUNTING_PRODUCT_BUY_ACCOUNT',
|
||||
'ACCOUNTING_PRODUCT_SOLD_ACCOUNT',
|
||||
'ACCOUNTING_PRODUCT_SOLD_INTRA_ACCOUNT',
|
||||
'ACCOUNTING_PRODUCT_SOLD_EXPORT_ACCOUNT',
|
||||
'ACCOUNTING_SERVICE_BUY_ACCOUNT',
|
||||
'ACCOUNTING_SERVICE_SOLD_ACCOUNT',
|
||||
'ACCOUNTING_VAT_BUY_ACCOUNT',
|
||||
|
|
|
|||
|
|
@ -429,7 +429,7 @@ if ($id)
|
|||
// dans les dictionnaires de donnees
|
||||
$valuetoshow=ucfirst($fieldlist[$field]); // Par defaut
|
||||
$valuetoshow=$langs->trans($valuetoshow); // try to translate
|
||||
$align="left";
|
||||
$class="left";
|
||||
if ($fieldlist[$field]=='code') { $valuetoshow=$langs->trans("Code"); }
|
||||
if ($fieldlist[$field]=='libelle' || $fieldlist[$field]=='label')
|
||||
{
|
||||
|
|
@ -480,7 +480,7 @@ if ($id)
|
|||
fieldListJournal($fieldlist, $obj, $tabname[$id], 'add');
|
||||
}
|
||||
|
||||
print '<td colspan="4" align="right">';
|
||||
print '<td colspan="4" class="right">';
|
||||
print '<input type="submit" class="button" name="actionadd" value="'.$langs->trans("Add").'">';
|
||||
print '</td>';
|
||||
print "</tr>";
|
||||
|
|
@ -508,7 +508,7 @@ if ($id)
|
|||
// There is several pages
|
||||
if ($num > $listlimit)
|
||||
{
|
||||
print '<tr class="none"><td align="right" colspan="'.(3+count($fieldlist)).'">';
|
||||
print '<tr class="none"><td class="right" colspan="'.(3+count($fieldlist)).'">';
|
||||
print_fleche_navigation($page, $_SERVER["PHP_SELF"], $paramwithsearch, ($num > $listlimit), '<li class="pagination"><span>'.$langs->trans("Page").' '.($page+1).'</span></li>');
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
|
@ -537,7 +537,7 @@ if ($id)
|
|||
// Determine le nom du champ par rapport aux noms possibles
|
||||
// dans les dictionnaires de donnees
|
||||
$showfield=1; // By defaut
|
||||
$align="left";
|
||||
$class="left";
|
||||
$sortable=1;
|
||||
$valuetoshow='';
|
||||
/*
|
||||
|
|
@ -606,7 +606,7 @@ if ($id)
|
|||
{
|
||||
|
||||
$showfield=1;
|
||||
$align="left";
|
||||
$class="left";
|
||||
$valuetoshow=$obj->{$fieldlist[$field]};
|
||||
if ($valuetoshow=='all') {
|
||||
$valuetoshow=$langs->trans('All');
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ if ($action != 'export_csv')
|
|||
print $langs->trans('to');
|
||||
print $formaccounting->select_account($search_accountancy_code_end, 'search_accountancy_code_end', 1, array(), 1, 1, '');
|
||||
print '</td>';
|
||||
print '<td align="right" class="liste_titre">';
|
||||
print '<td class="liste_titre right">';
|
||||
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
||||
print $searchpicto;
|
||||
print '</td>';
|
||||
|
|
@ -245,9 +245,9 @@ if ($action != 'export_csv')
|
|||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre("AccountAccounting", $_SERVER['PHP_SELF'], "t.numero_compte", "", $param, "", $sortfield, $sortorder);
|
||||
print_liste_field_titre("Label", $_SERVER['PHP_SELF'], "t.label_operation", "", $param, "", $sortfield, $sortorder);
|
||||
print_liste_field_titre("Debit", $_SERVER['PHP_SELF'], "t.debit", "", $param, 'align="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Credit", $_SERVER['PHP_SELF'], "t.credit", "", $param, 'align="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Balance", $_SERVER["PHP_SELF"], "", $param, "", 'align="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Debit", $_SERVER['PHP_SELF'], "t.debit", "", $param, 'class="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Credit", $_SERVER['PHP_SELF'], "t.credit", "", $param, 'class="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Balance", $_SERVER["PHP_SELF"], "", $param, "", 'class="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre('', $_SERVER["PHP_SELF"], "", $param, "", 'width="60" align="center"', $sortfield, $sortorder);
|
||||
print "</tr>\n";
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ if ($action != 'export_csv')
|
|||
{
|
||||
// Affiche un Sous-Total par compte comptable
|
||||
if ($displayed_account != "") {
|
||||
print '<tr class="liste_total"><td align="right" colspan="2">' . $langs->trans("SubTotal") . ':</td><td class="nowrap" align="right">' . price($sous_total_debit) . '</td><td class="nowrap" align="right">' . price($sous_total_credit) . '</td><td class="nowrap" align="right">' . price(price2num($sous_total_credit - $sous_total_debit)) . '</td>';
|
||||
print '<tr class="liste_total"><td class="right" colspan="2">' . $langs->trans("SubTotal") . ':</td><td class="nowrap right">' . price($sous_total_debit) . '</td><td class="nowrap right">' . price($sous_total_credit) . '</td><td class="nowrap right">' . price(price2num($sous_total_credit - $sous_total_debit)) . '</td>';
|
||||
print "<td> </td>\n";
|
||||
print '</tr>';
|
||||
}
|
||||
|
|
@ -305,11 +305,11 @@ if ($action != 'export_csv')
|
|||
$sous_total_credit += $line->credit;
|
||||
}
|
||||
|
||||
print '<tr class="liste_total"><td align="right" colspan="2">' . $langs->trans("SubTotal") . ':</td><td class="nowrap" align="right">' . price($sous_total_debit) . '</td><td class="nowrap" align="right">' . price($sous_total_credit) . '</td><td class="nowrap" align="right">' . price(price2num($sous_total_credit - $sous_total_debit)) . '</td>';
|
||||
print '<tr class="liste_total"><td class="right" colspan="2">' . $langs->trans("SubTotal") . ':</td><td class="nowrap right">' . price($sous_total_debit) . '</td><td class="nowrap right">' . price($sous_total_credit) . '</td><td class="nowrap right">' . price(price2num($sous_total_credit - $sous_total_debit)) . '</td>';
|
||||
print "<td> </td>\n";
|
||||
print '</tr>';
|
||||
|
||||
print '<tr class="liste_total"><td align="right" colspan="2">' . $langs->trans("AccountBalance") . ':</td><td class="nowrap" align="right">' . price($total_debit) . '</td><td class="nowrap" align="right">' . price($total_credit) . '</td><td class="nowrap" align="right">' . price(price2num($total_credit - $total_debit)) . '</td>';
|
||||
print '<tr class="liste_total"><td class="right" colspan="2">' . $langs->trans("AccountBalance") . ':</td><td class="nowrap right">' . price($total_debit) . '</td><td class="nowrap right">' . price($total_credit) . '</td><td class="nowrap right">' . price(price2num($total_credit - $total_debit)) . '</td>';
|
||||
print "<td> </td>\n";
|
||||
print '</tr>';
|
||||
|
||||
|
|
|
|||
|
|
@ -117,19 +117,19 @@ if ($resql) {
|
|||
$row = $db->fetch_row($resql);
|
||||
|
||||
print '<tr class="oddeven"><td width="14%">' . length_accountg($row[0]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[1]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[2]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[3]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[4]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[5]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[6]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[7]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[8]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[9]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[10]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[11]) . '</td>';
|
||||
print '<td align="right" width="6.5%">' . price($row[12]) . '</td>';
|
||||
print '<td align="right" width="8%"><strong>' . price($row[13]) . '</strong></td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[1]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[2]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[3]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[4]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[5]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[6]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[7]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[8]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[9]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[10]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[11]) . '</td>';
|
||||
print '<td class="right" width="6.5%">' . price($row[12]) . '</td>';
|
||||
print '<td class="right" width="8%"><strong>' . price($row[13]) . '</strong></td>';
|
||||
print '</tr>';
|
||||
|
||||
$i ++;
|
||||
|
|
|
|||
|
|
@ -314,4 +314,3 @@ class Lettering extends BookKeeping
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1990,4 +1990,3 @@ function fieldList($fieldlist, $obj = '', $tabname = '', $context = '')
|
|||
|
||||
return $withentity;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -321,4 +321,3 @@ if (function_exists("ldap_connect"))
|
|||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -481,4 +481,3 @@ print '</table>';
|
|||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -1065,4 +1065,3 @@ function fieldList($fieldlist, $obj = '', $tabname = '', $context = '')
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -585,4 +585,3 @@ print "</table>\n<br>";
|
|||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -234,4 +234,3 @@ header("Location: dolibarr_export.php");
|
|||
$time_end = time();
|
||||
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -163,4 +163,3 @@ header("Location: dolibarr_export.php");
|
|||
$time_end = time();
|
||||
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -695,4 +695,3 @@ function fieldListWebsites($fieldlist, $obj = '', $tabname = '', $context = '')
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -147,4 +147,3 @@ dol_fiche_end();
|
|||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -221,4 +221,3 @@ print $langs->trans("OnlyActiveElementsAreExposed", DOL_URL_ROOT.'/admin/modules
|
|||
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -69,5 +69,3 @@ elseif(!empty($newblock)){
|
|||
else{
|
||||
echo 'idontunderstandwhatihavetodo';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -150,4 +150,3 @@ function printBookmarksList($aDb, $aLangs)
|
|||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -212,5 +212,3 @@ else
|
|||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -139,4 +139,3 @@ class Auth
|
|||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,4 +34,3 @@ unset($_SESSION['uid']);
|
|||
|
||||
header('Location: '.DOL_URL_ROOT.'/cashdesk/index.php');
|
||||
exit;
|
||||
|
||||
|
|
|
|||
|
|
@ -233,4 +233,3 @@ $_SESSION['serObjFacturation'] = serialize($obj_facturation);
|
|||
//var_dump($_SESSION['serObjFacturation']);
|
||||
header('Location: '.$redirection);
|
||||
exit;
|
||||
|
||||
|
|
|
|||
|
|
@ -49,4 +49,3 @@ $conf_nbr_car_listes = 60; // Nombre max de caracteres par ligne dans les listes
|
|||
|
||||
// Add hidden option to force decrease of stock whatever is user setup
|
||||
if (! empty($conf->global->CASHDESK_FORCE_STOCK_ON_BILL)) $conf->global->STOCK_CALCULATE_ON_BILL=1;
|
||||
|
||||
|
|
|
|||
|
|
@ -140,4 +140,3 @@ else
|
|||
header('Location: '.DOL_URL_ROOT.'/cashdesk/index.php?err='.urlencode($retour).'&user='.$username.'&socid='.$thirdpartyid.'&warehouseid='.$warehouseid);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,4 +25,3 @@ $form=new Form($db);
|
|||
|
||||
// Affichage des templates
|
||||
require 'tpl/validation1.tpl.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -23,4 +23,3 @@
|
|||
|
||||
// Affichage des templates
|
||||
require 'tpl/validation2.tpl.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -40,4 +40,3 @@ if (empty($reshook))
|
|||
|
||||
|
||||
$_SESSION['serObjFacturation'] = serialize($obj_facturation);
|
||||
|
||||
|
|
|
|||
|
|
@ -223,4 +223,3 @@ class CommandeStats extends Stats
|
|||
return $this->_getAllByProduct($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -193,4 +193,3 @@ else
|
|||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -166,4 +166,3 @@ class DeplacementStats extends Stats
|
|||
return $this->_getAllByYear($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -225,4 +225,3 @@ class FactureStats extends Stats
|
|||
return $this->_getAllByProduct($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -228,4 +228,3 @@ else
|
|||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -164,4 +164,3 @@ class SalariesStats extends Stats
|
|||
return $this->_getAllByYear($sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -134,4 +134,3 @@ if ($action == 'remove_file' && $permissioncreate)
|
|||
header('Location: '.$urltoredirect);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,5 +44,3 @@ if (GETPOST('formfilteraction') == 'listafterchangingselectedfields')
|
|||
//$action='list';
|
||||
//var_dump($tabparam);exit;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -43,4 +43,3 @@ if ($action == 'dellink' && ! empty($permissiondellink) && ! GETPOST('cancel', '
|
|||
$result=$object->deleteObjectLinked(0, '', 0, '', $dellinkid);
|
||||
if ($result < 0) setEventMessages($object->error, $object->errors, 'errors');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -402,4 +402,3 @@ if ($action == 'delete')
|
|||
$mesg=$langs->trans("ErrorFieldCanNotContainSpecialCharacters", $langs->transnoentities("AttributeCode"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,4 +70,3 @@ if ($action == 'down' && $permissiontoedit)
|
|||
header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '#' . GETPOST('rowid'));
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1262,6 +1262,3 @@ $parameters['uploaddir']=$uploaddir;
|
|||
|
||||
$reshook=$hookmanager->executeHooks('doMassActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -114,4 +114,3 @@ if ($action == 'setModuleOptions')
|
|||
if (empty($nomessageinsetmoduleoptions)) setEventMessages($langs->trans("SetupNotSaved"), null, 'errors');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -491,4 +491,3 @@ function treeOutputForAbsoluteDir($sqltree, $selecteddir, $fullpathselecteddir,
|
|||
else print "PermissionDenied";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,4 +94,3 @@ if (($user->rights->banque->modifier || $user->rights->banque->consolidate) && $
|
|||
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -77,4 +77,3 @@ if ($boxorder && $zone != '' && $userid > 0)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,4 +116,3 @@ if ($time >= $_SESSION['auto_check_events_not_before'])
|
|||
}
|
||||
|
||||
print json_encode($eventfound);
|
||||
|
||||
|
|
|
|||
|
|
@ -64,4 +64,3 @@ if (! empty($action) && ! empty($name))
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,4 +54,3 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
|
|||
|
||||
echo json_encode($return);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,4 +74,3 @@ if(! empty($id) && ! empty($element) && ! empty($htmlelement) && ! empty($type))
|
|||
|
||||
$result=$object->setExtraParameters();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,4 +73,3 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|||
}
|
||||
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -54,4 +54,3 @@ if (! empty($id))
|
|||
|
||||
echo json_encode($return);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -112,4 +112,3 @@ if (! empty($field) && ! empty($element) && ! empty($table_element) && ! empty($
|
|||
echo $langs->transnoentities('NotEnoughPermissions');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,4 +63,3 @@ if (! empty($output) && isset($amount) && isset($tva_tx))
|
|||
|
||||
echo json_encode($return);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,4 +73,3 @@ if ((! empty($_POST['roworder'])) && (! empty($_POST['table_element_line']))
|
|||
$result=$row->line_order(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -229,4 +229,3 @@ if (! empty($field) && ! empty($element) && ! empty($table_element) && ! empty($
|
|||
echo $langs->trans('NotEnoughPermissions');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -49,4 +49,3 @@ if (isset($_GET['action']) && ! empty($_GET['action']))
|
|||
echo getRandomPassword($generic);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -170,4 +170,3 @@ if (! isset($usedbyinclude) || empty($usedbyinclude))
|
|||
print json_encode($arrayresult);
|
||||
if (is_object($db)) $db->close();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -67,4 +67,3 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
|
|||
|
||||
echo json_encode($return);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -135,4 +135,3 @@ else
|
|||
}
|
||||
|
||||
$db->close();
|
||||
|
||||
|
|
|
|||
|
|
@ -65,4 +65,3 @@ $background_color = imagecolorallocate($img, 250, 250, 250);
|
|||
$ecriture_color = imagecolorallocate($img, 0, 0, 0);
|
||||
imagestring($img, 4, 24, 8, $string, $ecriture_color);
|
||||
imagepng($img);
|
||||
|
||||
|
|
|
|||
|
|
@ -260,4 +260,3 @@ class box_actions extends ModeleBoxes
|
|||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,4 +162,3 @@ class box_bookmarks extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -178,4 +178,3 @@ class box_clients extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -203,4 +203,3 @@ class box_commandes extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -189,4 +189,3 @@ class box_comptes extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -190,4 +190,3 @@ class box_contacts extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -194,4 +194,3 @@ class box_contracts extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -200,4 +200,3 @@ class box_external_rss extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -219,4 +219,3 @@ class box_factures_fourn extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -206,4 +206,3 @@ class box_factures_fourn_imp extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -171,4 +171,3 @@ class box_ficheinter extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -165,4 +165,3 @@ class box_fournisseurs extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -174,4 +174,3 @@ class box_goodcustomers extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -280,4 +280,3 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -279,4 +279,3 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -278,4 +278,3 @@ class box_graph_orders_permonth extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -277,4 +277,3 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -417,4 +417,3 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -281,4 +281,3 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -183,4 +183,3 @@ class box_members extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -231,4 +231,3 @@ class box_produits extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -243,4 +243,3 @@ class box_produits_alerte_stock extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -200,4 +200,3 @@ class box_project extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -193,4 +193,3 @@ class box_propales extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -181,4 +181,3 @@ class box_prospect extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -246,4 +246,3 @@ class box_services_contracts extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -190,4 +190,3 @@ class box_services_expired extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -189,4 +189,3 @@ class box_supplier_orders extends ModeleBoxes
|
|||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/* Copyright (C) 2012-2018 Charlene BENKE <charlie@patas-monkey.com>
|
||||
* Copyright (C) 2015 Frederic France <frederic.france@free.fr>
|
||||
* Copyright (C) 2015-2019 Frederic France <frederic.france@netlogic.fr>
|
||||
*
|
||||
* 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
|
||||
|
|
@ -104,12 +104,10 @@ class box_task extends ModeleBoxes
|
|||
$sql.= $db->plimit($max, 0);
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$i = 0;
|
||||
if ($result) {
|
||||
$num = $db->num_rows($result);
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
{
|
||||
while ($i < $num) {
|
||||
$objp = $db->fetch_object($result);
|
||||
$this->info_box_contents[$i][] = array(
|
||||
'td' => '',
|
||||
|
|
@ -131,11 +129,11 @@ class box_task extends ModeleBoxes
|
|||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else dol_print_error($this->db);
|
||||
} else {
|
||||
dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Add the sum at the bottom of the boxes
|
||||
$this->info_box_contents[$i][] = array('tr' => 'class="liste_total"', 'td' => '', 'text' => $langs->trans("Total")." ".$textHead);
|
||||
$this->info_box_contents[$i][] = array('td' => 'align="right" ', 'text' => number_format($totalnb, 0, ',', ' ')." ".$langs->trans("Tasks"));
|
||||
|
|
|
|||
|
|
@ -503,5 +503,3 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
|
|||
return $widget;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -145,4 +145,3 @@ abstract class CommonOrderLine extends CommonObjectLine
|
|||
|
||||
public $special_code = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -694,4 +694,3 @@ class Conf
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,4 +79,3 @@ class FormBank
|
|||
return 'IBANNumber';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -281,4 +281,3 @@ class FormMargin
|
|||
print '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user