@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $nbContact = $obj->nb; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - dol_setcache($cachekey, $nbContact, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 86 | + dol_setcache($cachekey, $nbContact, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | $head[$h][0] = DOL_URL_ROOT.'/societe/contact.php?socid='.$object->id; |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | } else { |
| 163 | 163 | dol_print_error($db); |
| 164 | 164 | } |
| 165 | - dol_setcache($cachekey, $nbProject, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 165 | + dol_setcache($cachekey, $nbProject, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 166 | 166 | } |
| 167 | 167 | $head[$h][0] = DOL_URL_ROOT.'/societe/project.php?socid='.$object->id; |
| 168 | 168 | $head[$h][1] = $langs->trans("Projects"); |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | } else { |
| 327 | 327 | dol_print_error($db); |
| 328 | 328 | } |
| 329 | - dol_setcache($cachekey, $nbTicket, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 329 | + dol_setcache($cachekey, $nbTicket, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 330 | 330 | } |
| 331 | 331 | |
| 332 | 332 | $head[$h][0] = DOL_URL_ROOT.'/ticket/list.php?socid='.urlencode((string) ($object->id)); |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | } else { |
| 373 | 373 | dol_print_error($db); |
| 374 | 374 | } |
| 375 | - dol_setcache($cachekey, $nbNotif, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 375 | + dol_setcache($cachekey, $nbNotif, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 376 | 376 | } |
| 377 | 377 | |
| 378 | 378 | $head[$h][0] = DOL_URL_ROOT.'/societe/notify/card.php?socid='.urlencode((string) ($object->id)); |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | $nbFiles = count(dol_dir_list($upload_dir, 'files', 0, '', '(\.meta|_preview.*\.png)$')); |
| 416 | 416 | $nbLinks = Link::count($db, $object->element, $object->id); |
| 417 | 417 | $totalAttached = $nbFiles + $nbLinks; |
| 418 | - dol_setcache($cachekey, $totalAttached, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 418 | + dol_setcache($cachekey, $totalAttached, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 419 | 419 | } |
| 420 | 420 | |
| 421 | 421 | $head[$h][0] = DOL_URL_ROOT.'/societe/document.php?socid='.$object->id; |
@@ -449,7 +449,7 @@ discard block |
||
| 449 | 449 | } else { |
| 450 | 450 | dol_syslog('Failed to count actioncomm '.$db->lasterror(), LOG_ERR); |
| 451 | 451 | } |
| 452 | - dol_setcache($cachekey, $nbEvent, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 452 | + dol_setcache($cachekey, $nbEvent, 120); // If setting cache fails, this is not a problem, so we do not test result. |
|
| 453 | 453 | } |
| 454 | 454 | |
| 455 | 455 | $head[$h][1] .= '/'; |
@@ -850,7 +850,7 @@ discard block |
||
| 850 | 850 | return false; |
| 851 | 851 | } |
| 852 | 852 | |
| 853 | - $country_code_in_EEC = getCountriesInEEC(); // This make a database call but there is a cache done into $conf->cache['country_code_in_EEC'] |
|
| 853 | + $country_code_in_EEC = getCountriesInEEC(); // This make a database call but there is a cache done into $conf->cache['country_code_in_EEC'] |
|
| 854 | 854 | |
| 855 | 855 | //print "dd".$object->country_code; |
| 856 | 856 | return in_array($object->country_code, $country_code_in_EEC); |
@@ -1297,7 +1297,7 @@ discard block |
||
| 1297 | 1297 | $mode = 'view'; |
| 1298 | 1298 | |
| 1299 | 1299 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
| 1300 | - $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
| 1300 | + $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
| 1301 | 1301 | $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
| 1302 | 1302 | $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
| 1303 | 1303 | |
@@ -1347,7 +1347,7 @@ discard block |
||
| 1347 | 1347 | $sql .= " FROM ".MAIN_DB_PREFIX."socpeople as t"; |
| 1348 | 1348 | $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."socpeople_extrafields as ef on (t.rowid = ef.fk_object)"; |
| 1349 | 1349 | $sql .= " WHERE t.fk_soc = ".((int) $object->id); |
| 1350 | - $sql .= " AND t.entity IN (" .getEntity('socpeople') .")"; |
|
| 1350 | + $sql .= " AND t.entity IN (".getEntity('socpeople').")"; |
|
| 1351 | 1351 | $sql .= " AND ((t.fk_user_creat = ".((int) $user->id)." AND t.priv = 1) OR t.priv = 0)"; |
| 1352 | 1352 | if ($search_rowid) { |
| 1353 | 1353 | $sql .= natural_search('t.rowid', $search_rowid); |
@@ -1776,7 +1776,7 @@ discard block |
||
| 1776 | 1776 | $tms_start = ''; |
| 1777 | 1777 | $tms_end = ''; |
| 1778 | 1778 | } |
| 1779 | - require_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php'; |
|
| 1779 | + require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php'; |
|
| 1780 | 1780 | |
| 1781 | 1781 | // Check parameters |
| 1782 | 1782 | if (!is_object($filterobj) && !is_object($objcon)) { |
@@ -1839,7 +1839,7 @@ discard block |
||
| 1839 | 1839 | |
| 1840 | 1840 | // Fields from hook |
| 1841 | 1841 | $parameters = array('sql' => &$sql, 'filterobj' => $filterobj, 'objcon' => $objcon); |
| 1842 | - $reshook = $hookmanager->executeHooks('showActionsDoneListSelect', $parameters); // Note that $action and $object may have been modified by hook |
|
| 1842 | + $reshook = $hookmanager->executeHooks('showActionsDoneListSelect', $parameters); // Note that $action and $object may have been modified by hook |
|
| 1843 | 1843 | if (!empty($hookmanager->resPrint)) { |
| 1844 | 1844 | $sql .= $hookmanager->resPrint; |
| 1845 | 1845 | } |
@@ -1863,7 +1863,7 @@ discard block |
||
| 1863 | 1863 | |
| 1864 | 1864 | // Fields from hook |
| 1865 | 1865 | $parameters = array('sql' => &$sql, 'filterobj' => $filterobj, 'objcon' => $objcon); |
| 1866 | - $reshook = $hookmanager->executeHooks('showActionsDoneListFrom', $parameters); // Note that $action and $object may have been modified by hook |
|
| 1866 | + $reshook = $hookmanager->executeHooks('showActionsDoneListFrom', $parameters); // Note that $action and $object may have been modified by hook |
|
| 1867 | 1867 | if (!empty($hookmanager->resPrint)) { |
| 1868 | 1868 | $sql .= $hookmanager->resPrint; |
| 1869 | 1869 | } |
@@ -1955,7 +1955,7 @@ discard block |
||
| 1955 | 1955 | } |
| 1956 | 1956 | } else { |
| 1957 | 1957 | if (is_object($filterobj) && $filterobj->id > 0 && get_class($filterobj) == 'User') { |
| 1958 | - $sql .= " AND (u.rowid = ". ((int) $filterobj->id).' OR '; |
|
| 1958 | + $sql .= " AND (u.rowid = ".((int) $filterobj->id).' OR '; |
|
| 1959 | 1959 | $sql .= " EXISTS (SELECT r.rowid FROM ".MAIN_DB_PREFIX."actioncomm_resources as r WHERE a.id = r.fk_actioncomm"; |
| 1960 | 1960 | $sql .= " AND r.element_type = '".$db->escape($filterobj->table_element)."' AND r.fk_element = ".((int) $filterobj->id).')'; |
| 1961 | 1961 | $sql .= ")"; |
@@ -1993,7 +1993,7 @@ discard block |
||
| 1993 | 1993 | |
| 1994 | 1994 | // Fields from hook |
| 1995 | 1995 | $parameters = array('sql' => &$sql, 'filterobj' => $filterobj, 'objcon' => $objcon, 'module' => $module); |
| 1996 | - $reshook = $hookmanager->executeHooks('showActionsDoneListWhere', $parameters); // Note that $action and $object may have been modified by hook |
|
| 1996 | + $reshook = $hookmanager->executeHooks('showActionsDoneListWhere', $parameters); // Note that $action and $object may have been modified by hook |
|
| 1997 | 1997 | if (!empty($hookmanager->resPrint)) { |
| 1998 | 1998 | $sql .= $hookmanager->resPrint; |
| 1999 | 1999 | } |
@@ -2692,14 +2692,14 @@ discard block |
||
| 2692 | 2692 | $parammessageform = 'ONLINE_PAYMENT_MESSAGE_FORM_'.$suffix; |
| 2693 | 2693 | if (getDolGlobalString($parammessageform) !== '') { |
| 2694 | 2694 | print $langs->transnoentities(getDolGlobalString($parammessageform)); |
| 2695 | - } elseif (getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORM') !== '') { |
|
| 2695 | + } elseif (getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORM') !== '') { |
|
| 2696 | 2696 | print $langs->transnoentities(getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORM')); |
| 2697 | 2697 | } |
| 2698 | 2698 | |
| 2699 | 2699 | // Add other message if VAT exists |
| 2700 | 2700 | if (!empty($object->total_vat) || !empty($object->total_tva)) { |
| 2701 | 2701 | $parammessageform = 'ONLINE_PAYMENT_MESSAGE_FORMIFVAT_'.$suffix; |
| 2702 | - if (getDolGlobalString($parammessageform) !== '') { |
|
| 2702 | + if (getDolGlobalString($parammessageform) !== '') { |
|
| 2703 | 2703 | print $langs->transnoentities(getDolGlobalString($parammessageform)); |
| 2704 | 2704 | } elseif (getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORMIFVAT') !== '') { |
| 2705 | 2705 | print $langs->transnoentities(getDolGlobalString('ONLINE_PAYMENT_MESSAGE_FORMIFVAT')); |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | if ($sql) { |
| 332 | 332 | // Test if the SQL is allowed SQL |
| 333 | 333 | if ($onlysqltoimportwebsite) { |
| 334 | - $newsql = str_replace(array("\'"), '__BACKSLASHQUOTE__', $sql); // Replace the \' char |
|
| 334 | + $newsql = str_replace(array("\'"), '__BACKSLASHQUOTE__', $sql); // Replace the \' char |
|
| 335 | 335 | |
| 336 | 336 | // Remove all strings contents including the ' so we can analyse SQL instruction only later |
| 337 | 337 | $l = strlen($newsql); |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | $extractphpold = ''; |
| 380 | 380 | |
| 381 | 381 | // Security analysis |
| 382 | - $errorphpcheck = checkPHPCode($extractphpold, $extractphp); // Contains the setEventMessages |
|
| 382 | + $errorphpcheck = checkPHPCode($extractphpold, $extractphp); // Contains the setEventMessages |
|
| 383 | 383 | if ($errorphpcheck) { |
| 384 | 384 | $error++; |
| 385 | 385 | //print 'Request '.($i + 1)." contains non allowed instructions.<br>\n"; |
@@ -666,7 +666,7 @@ discard block |
||
| 666 | 666 | dol_print_error($db, "Error: Call to function dolibarr_set_const with wrong parameters"); |
| 667 | 667 | exit; |
| 668 | 668 | } |
| 669 | - if (! is_object($hookmanager)) { |
|
| 669 | + if (!is_object($hookmanager)) { |
|
| 670 | 670 | require_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php'; |
| 671 | 671 | $hookmanager = new HookManager($db); |
| 672 | 672 | } |
@@ -1107,7 +1107,7 @@ discard block |
||
| 1107 | 1107 | |
| 1108 | 1108 | if (preg_match('/dol_login/i', $sessValues) && // limit to dolibarr session |
| 1109 | 1109 | preg_match('/dol_entity\|s:([0-9]+):"('.$conf->entity.')"/i', $sessValues) && // limit to current entity |
| 1110 | - preg_match('/dol_company\|s:([0-9]+):"(' . getDolGlobalString('MAIN_INFO_SOCIETE_NOM').')"/i', $sessValues)) { // limit to company name |
|
| 1110 | + preg_match('/dol_company\|s:([0-9]+):"('.getDolGlobalString('MAIN_INFO_SOCIETE_NOM').')"/i', $sessValues)) { // limit to company name |
|
| 1111 | 1111 | $tmp = explode('_', $file); |
| 1112 | 1112 | $idsess = $tmp[1]; |
| 1113 | 1113 | // We remove session if it's not ourself |
@@ -1911,7 +1911,7 @@ discard block |
||
| 1911 | 1911 | global $conf, $langs; |
| 1912 | 1912 | |
| 1913 | 1913 | $text = $langs->trans("OnlyFollowingModulesAreOpenedToExternalUsers"); |
| 1914 | - $listofmodules = explode(',', getDolGlobalString('MAIN_MODULES_FOR_EXTERNAL')); // List of modules qualified for external user management |
|
| 1914 | + $listofmodules = explode(',', getDolGlobalString('MAIN_MODULES_FOR_EXTERNAL')); // List of modules qualified for external user management |
|
| 1915 | 1915 | |
| 1916 | 1916 | $i = 0; |
| 1917 | 1917 | if (!empty($modules)) { |
@@ -106,10 +106,10 @@ |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | - * Get the last fetch date. |
|
| 110 | - * |
|
| 111 | - * @return int Timestamp of the last successful fetch. |
|
| 112 | - */ |
|
| 109 | + * Get the last fetch date. |
|
| 110 | + * |
|
| 111 | + * @return int Timestamp of the last successful fetch. |
|
| 112 | + */ |
|
| 113 | 113 | public function getLastFetchDate() |
| 114 | 114 | { |
| 115 | 115 | return $this->lastFetchDate; |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | // Try to know count of actioncomm from cache |
| 214 | 214 | require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php'; |
| 215 | 215 | $cachekey = 'count_events_user_'.$object->id; |
| 216 | - $nbEvent = dol_getcache($cachekey); // TODO Add nb into badge in menu so we can get it from cache also here |
|
| 216 | + $nbEvent = dol_getcache($cachekey); // TODO Add nb into badge in menu so we can get it from cache also here |
|
| 217 | 217 | |
| 218 | 218 | $titlelist = $langs->trans("ActionsOnUser").(is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">('.$nbEvent.')</span>' : ''); |
| 219 | 219 | if (!empty($conf->dol_optimize_smallscreen)) { |
@@ -129,9 +129,9 @@ discard block |
||
| 129 | 129 | $object->ref = dol_string_nospecial(trim(GETPOST('ref', 'alpha'))); |
| 130 | 130 | $object->label = trim(GETPOST("label", 'alphanohtml')); |
| 131 | 131 | $object->type = GETPOSTINT("type"); |
| 132 | - $object->courant = $object->type; // deprecated |
|
| 132 | + $object->courant = $object->type; // deprecated |
|
| 133 | 133 | $object->status = GETPOSTINT("clos"); |
| 134 | - $object->clos = $object->status; // deprecated |
|
| 134 | + $object->clos = $object->status; // deprecated |
|
| 135 | 135 | $object->rappro = (GETPOST("norappro", 'alpha') ? 0 : 1); |
| 136 | 136 | $object->url = trim(GETPOST("url", 'alpha')); |
| 137 | 137 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $object->pti_in_ctti = empty(GETPOST("pti_in_ctti")) ? 0 : 1; |
| 146 | 146 | |
| 147 | 147 | $object->address = trim(GETPOST("account_address", "alphanohtml")); |
| 148 | - $object->domiciliation = $object->address; // deprecated |
|
| 148 | + $object->domiciliation = $object->address; // deprecated |
|
| 149 | 149 | |
| 150 | 150 | $object->proprio = trim(GETPOST("proprio", 'alphanohtml')); |
| 151 | 151 | $object->owner_name = trim(GETPOST("proprio", 'alphanohtml')); |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | $object->balance = GETPOSTFLOAT("solde"); |
| 174 | - $object->solde = $object->balance; // deprecated |
|
| 174 | + $object->solde = $object->balance; // deprecated |
|
| 175 | 175 | $object->date_solde = dol_mktime(12, 0, 0, GETPOSTINT("remonth"), GETPOSTINT('reday'), GETPOSTINT("reyear")); |
| 176 | 176 | |
| 177 | 177 | $object->currency_code = trim(GETPOST("account_currency_code")); |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | $urltogo = preg_replace('/--IDFORBACKTOPAGE--/', (string) $object->id, $urltogo); // New method to autoselect project after a New on another form object creation |
| 230 | 230 | |
| 231 | 231 | if (empty($noback)) { |
| 232 | - header("Location: " . $urltogo); |
|
| 232 | + header("Location: ".$urltogo); |
|
| 233 | 233 | exit; |
| 234 | 234 | } |
| 235 | 235 | } else { |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | |
| 350 | 350 | if ($result > 0) { |
| 351 | 351 | setEventMessages($langs->trans("RecordDeleted"), null, 'mesgs'); |
| 352 | - header("Location: " . DOL_URL_ROOT . "/compta/bank/list.php"); |
|
| 352 | + header("Location: ".DOL_URL_ROOT."/compta/bank/list.php"); |
|
| 353 | 353 | exit; |
| 354 | 354 | } else { |
| 355 | 355 | setEventMessages($object->error, $object->errors, 'errors'); |
@@ -597,7 +597,7 @@ discard block |
||
| 597 | 597 | if (isModEnabled('paymentbybanktransfer')) { |
| 598 | 598 | if ($mysoc->isInEEC()) { |
| 599 | 599 | print '<tr><td>'.$form->textwithpicto($langs->trans("SEPAXMLPlacePaymentTypeInformationInCreditTransfertransactionInformation"), $langs->trans("SEPAXMLPlacePaymentTypeInformationInCreditTransfertransactionInformationHelp")).'</td>'; |
| 600 | - print '<td><input type="checkbox" class="flat" name="pti_in_ctti"'. (empty(GETPOST('pti_in_ctti')) ? '' : ' checked ') . '>'; |
|
| 600 | + print '<td><input type="checkbox" class="flat" name="pti_in_ctti"'.(empty(GETPOST('pti_in_ctti')) ? '' : ' checked ').'>'; |
|
| 601 | 601 | print '</td></tr>'; |
| 602 | 602 | } |
| 603 | 603 | } |
@@ -1190,7 +1190,7 @@ discard block |
||
| 1190 | 1190 | } |
| 1191 | 1191 | if ($mysoc->isInEEC()) { |
| 1192 | 1192 | print '<tr><td>'.$form->textwithpicto($langs->trans("SEPAXMLPlacePaymentTypeInformationInCreditTransfertransactionInformation"), $langs->trans("SEPAXMLPlacePaymentTypeInformationInCreditTransfertransactionInformationHelp")).'</td>'; |
| 1193 | - print '<td><input type="checkbox" class="flat" name="pti_in_ctti"'. ($object->pti_in_ctti ? ' checked ' : '') . '>'; |
|
| 1193 | + print '<td><input type="checkbox" class="flat" name="pti_in_ctti"'.($object->pti_in_ctti ? ' checked ' : '').'>'; |
|
| 1194 | 1194 | print '</td></tr>'; |
| 1195 | 1195 | } |
| 1196 | 1196 | } |
@@ -80,18 +80,18 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | |
| 82 | 82 | $id = (GETPOSTINT('id') ? GETPOSTINT('id') : GETPOSTINT('orderid')); |
| 83 | -$ref = GETPOST('ref', 'alpha'); |
|
| 84 | -$socid = GETPOSTINT('socid'); |
|
| 85 | -$action = GETPOST('action', 'aZ09'); |
|
| 86 | -$cancel = GETPOST('cancel', 'alpha'); |
|
| 87 | -$confirm = GETPOST('confirm', 'alpha'); |
|
| 83 | +$ref = GETPOST('ref', 'alpha'); |
|
| 84 | +$socid = GETPOSTINT('socid'); |
|
| 85 | +$action = GETPOST('action', 'aZ09'); |
|
| 86 | +$cancel = GETPOST('cancel', 'alpha'); |
|
| 87 | +$confirm = GETPOST('confirm', 'alpha'); |
|
| 88 | 88 | $backtopage = GETPOST('backtopage', 'alpha'); |
| 89 | 89 | |
| 90 | -$lineid = GETPOSTINT('lineid'); |
|
| 91 | -$contactid = GETPOSTINT('contactid'); |
|
| 92 | -$projectid = GETPOSTINT('projectid'); |
|
| 93 | -$origin = GETPOST('origin', 'alpha'); |
|
| 94 | -$originid = (GETPOSTINT('originid') ? GETPOSTINT('originid') : GETPOSTINT('origin_id')); // For backward compatibility |
|
| 90 | +$lineid = GETPOSTINT('lineid'); |
|
| 91 | +$contactid = GETPOSTINT('contactid'); |
|
| 92 | +$projectid = GETPOSTINT('projectid'); |
|
| 93 | +$origin = GETPOST('origin', 'alpha'); |
|
| 94 | +$originid = (GETPOSTINT('originid') ? GETPOSTINT('originid') : GETPOSTINT('origin_id')); // For backward compatibility |
|
| 95 | 95 | $rank = (GETPOSTINT('rank') > 0) ? GETPOSTINT('rank') : -1; |
| 96 | 96 | |
| 97 | 97 | |
@@ -116,26 +116,26 @@ discard block |
||
| 116 | 116 | $extrafields->fetch_name_optionals_label($object->table_element); |
| 117 | 117 | |
| 118 | 118 | // Load object |
| 119 | -include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be 'include', not 'include_once' |
|
| 119 | +include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be 'include', not 'include_once' |
|
| 120 | 120 | |
| 121 | 121 | // Permissions / Rights |
| 122 | -$usercanread = $user->hasRight("commande", "lire"); |
|
| 123 | -$usercancreate = $user->hasRight("commande", "creer"); |
|
| 124 | -$usercandelete = $user->hasRight("commande", "supprimer"); |
|
| 122 | +$usercanread = $user->hasRight("commande", "lire"); |
|
| 123 | +$usercancreate = $user->hasRight("commande", "creer"); |
|
| 124 | +$usercandelete = $user->hasRight("commande", "supprimer"); |
|
| 125 | 125 | |
| 126 | 126 | // Advanced permissions |
| 127 | -$usercanclose = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && !empty($usercancreate)) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'close'))); |
|
| 128 | -$usercanvalidate = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'validate'))); |
|
| 129 | -$usercancancel = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'annuler'))); |
|
| 130 | -$usercansend = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'send')); |
|
| 131 | -$usercangeneretedoc = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'generetedoc')); |
|
| 127 | +$usercanclose = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && !empty($usercancreate)) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'close'))); |
|
| 128 | +$usercanvalidate = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'validate'))); |
|
| 129 | +$usercancancel = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'annuler'))); |
|
| 130 | +$usercansend = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'send')); |
|
| 131 | +$usercangeneretedoc = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'generetedoc')); |
|
| 132 | 132 | |
| 133 | 133 | $usermustrespectpricemin = ((getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && !$user->hasRight('produit', 'ignore_price_min_advance')) || !getDolGlobalString('MAIN_USE_ADVANCED_PERMS')); |
| 134 | 134 | $usercancreatepurchaseorder = ($user->hasRight('fournisseur', 'commande', 'creer') || $user->hasRight('supplier_order', 'creer')); |
| 135 | 135 | |
| 136 | -$permissionnote = $usercancreate; // Used by the include of actions_setnotes.inc.php |
|
| 137 | -$permissiondellink = $usercancreate; // Used by the include of actions_dellink.inc.php |
|
| 138 | -$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
| 136 | +$permissionnote = $usercancreate; // Used by the include of actions_setnotes.inc.php |
|
| 137 | +$permissiondellink = $usercancreate; // Used by the include of actions_dellink.inc.php |
|
| 138 | +$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
|
| 139 | 139 | |
| 140 | 140 | |
| 141 | 141 | $error = 0; |
@@ -180,11 +180,11 @@ discard block |
||
| 180 | 180 | $action = ''; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be 'include', not 'include_once' |
|
| 183 | + include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be 'include', not 'include_once' |
|
| 184 | 184 | |
| 185 | - include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php'; // Must be 'include', not 'include_once' |
|
| 185 | + include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php'; // Must be 'include', not 'include_once' |
|
| 186 | 186 | |
| 187 | - include DOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php'; // Must be 'include', not 'include_once' |
|
| 187 | + include DOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php'; // Must be 'include', not 'include_once' |
|
| 188 | 188 | |
| 189 | 189 | // Action clone object |
| 190 | 190 | if ($action == 'confirm_clone' && $confirm == 'yes' && $usercancreate) { |
@@ -682,7 +682,7 @@ discard block |
||
| 682 | 682 | $remise_percent = (GETPOST('remiseforalllines') ? GETPOST('remiseforalllines') : 0); |
| 683 | 683 | $remise_percent = str_replace('*', '', $remise_percent); |
| 684 | 684 | foreach ($object->lines as $line) { |
| 685 | - $tvatx= $line->tva_tx; |
|
| 685 | + $tvatx = $line->tva_tx; |
|
| 686 | 686 | if (!empty($line->vat_src_code)) { |
| 687 | 687 | $tvatx .= ' ('.$line->vat_src_code.')'; |
| 688 | 688 | } |
@@ -703,7 +703,7 @@ discard block |
||
| 703 | 703 | $pu_ht = ''; |
| 704 | 704 | $pu_ttc = ''; |
| 705 | 705 | $pu_ht_devise = ''; |
| 706 | - $pu_ttc_devise = ''; |
|
| 706 | + $pu_ttc_devise = ''; |
|
| 707 | 707 | |
| 708 | 708 | if (GETPOST('price_ht') !== '') { |
| 709 | 709 | $price_ht = price2num(GETPOST('price_ht'), 'MU', 2); |
@@ -848,8 +848,8 @@ discard block |
||
| 848 | 848 | if (count($prodcustprice->lines) > 0) { |
| 849 | 849 | $pu_ht = price($prodcustprice->lines[0]->price); |
| 850 | 850 | $pu_ttc = price($prodcustprice->lines[0]->price_ttc); |
| 851 | - $price_min = price($prodcustprice->lines[0]->price_min); |
|
| 852 | - $price_min_ttc = price($prodcustprice->lines[0]->price_min_ttc); |
|
| 851 | + $price_min = price($prodcustprice->lines[0]->price_min); |
|
| 852 | + $price_min_ttc = price($prodcustprice->lines[0]->price_min_ttc); |
|
| 853 | 853 | $price_base_type = $prodcustprice->lines[0]->price_base_type; |
| 854 | 854 | $tva_tx = $prodcustprice->lines[0]->tva_tx; |
| 855 | 855 | if ($prodcustprice->lines[0]->default_vat_code && !preg_match('/\(.*\)/', $tva_tx)) { |
@@ -1372,7 +1372,7 @@ discard block |
||
| 1372 | 1372 | GETPOST('generate_deposit', 'alpha') == 'on' && !empty($deposit_percent_from_payment_terms) |
| 1373 | 1373 | && isModEnabled('invoice') && $user->hasRight('facture', 'creer') |
| 1374 | 1374 | ) { |
| 1375 | - require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php'; |
|
| 1375 | + require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; |
|
| 1376 | 1376 | |
| 1377 | 1377 | $date = dol_mktime(0, 0, 0, GETPOSTINT('datefmonth'), GETPOSTINT('datefday'), GETPOSTINT('datefyear')); |
| 1378 | 1378 | $forceFields = array(); |
@@ -1385,7 +1385,7 @@ discard block |
||
| 1385 | 1385 | |
| 1386 | 1386 | if ($deposit) { |
| 1387 | 1387 | setEventMessage('DepositGenerated'); |
| 1388 | - $locationTarget = DOL_URL_ROOT . '/compta/facture/card.php?id=' . $deposit->id; |
|
| 1388 | + $locationTarget = DOL_URL_ROOT.'/compta/facture/card.php?id='.$deposit->id; |
|
| 1389 | 1389 | } else { |
| 1390 | 1390 | $error++; |
| 1391 | 1391 | setEventMessages($object->error, $object->errors, 'errors'); |
@@ -1393,7 +1393,7 @@ discard block |
||
| 1393 | 1393 | } |
| 1394 | 1394 | |
| 1395 | 1395 | // Define output language |
| 1396 | - if (! $error) { |
|
| 1396 | + if (!$error) { |
|
| 1397 | 1397 | $db->commit(); |
| 1398 | 1398 | |
| 1399 | 1399 | if (!getDolGlobalString('MAIN_DISABLE_PDF_AUTOUPDATE')) { |
@@ -1421,7 +1421,7 @@ discard block |
||
| 1421 | 1421 | } |
| 1422 | 1422 | |
| 1423 | 1423 | if ($locationTarget) { |
| 1424 | - header('Location: ' . $locationTarget); |
|
| 1424 | + header('Location: '.$locationTarget); |
|
| 1425 | 1425 | exit; |
| 1426 | 1426 | } |
| 1427 | 1427 | } else { |
@@ -1845,7 +1845,7 @@ discard block |
||
| 1845 | 1845 | print '<form name="crea_commande" action="'.$_SERVER["PHP_SELF"].'" method="POST">'; |
| 1846 | 1846 | print '<input type="hidden" name="token" value="'.newToken().'">'; |
| 1847 | 1847 | print '<input type="hidden" name="action" value="add">'; |
| 1848 | - print '<input type="hidden" name="changecompany" value="0">'; // will be set to 1 by javascript so we know post is done after a company change |
|
| 1848 | + print '<input type="hidden" name="changecompany" value="0">'; // will be set to 1 by javascript so we know post is done after a company change |
|
| 1849 | 1849 | print '<input type="hidden" name="remise_percent" value="'.$soc->remise_percent.'">'; |
| 1850 | 1850 | print '<input type="hidden" name="origin" value="'.$origin.'">'; |
| 1851 | 1851 | print '<input type="hidden" name="originid" value="'.$originid.'">'; |
@@ -1913,7 +1913,7 @@ discard block |
||
| 1913 | 1913 | print "<tr><td>".$langs->trans("DefaultContact").'</td><td>'; |
| 1914 | 1914 | print img_picto('', 'contact', 'class="pictofixedwidth"'); |
| 1915 | 1915 | //print $form->selectcontacts($soc->id, $contactid, 'contactid', 1, empty($srccontactslist) ? "" : $srccontactslist, '', 1, 'maxwidth300 widthcentpercentminusx'); |
| 1916 | - print $form->select_contact($soc->id, $contactid, 'contactid', 1, empty($srccontactslist) ? "" : $srccontactslist, '', 1, 'maxwidth300 widthcentpercentminusx', true); |
|
| 1916 | + print $form->select_contact($soc->id, $contactid, 'contactid', 1, empty($srccontactslist) ? "" : $srccontactslist, '', 1, 'maxwidth300 widthcentpercentminusx', true); |
|
| 1917 | 1917 | print '</td></tr>'; |
| 1918 | 1918 | |
| 1919 | 1919 | // Ligne info remises tiers |
@@ -2024,7 +2024,7 @@ discard block |
||
| 2024 | 2024 | // Other attributes |
| 2025 | 2025 | $parameters = array(); |
| 2026 | 2026 | if (!empty($origin) && !empty($originid) && is_object($objectsrc)) { |
| 2027 | - $parameters['objectsrc'] = $objectsrc; |
|
| 2027 | + $parameters['objectsrc'] = $objectsrc; |
|
| 2028 | 2028 | } |
| 2029 | 2029 | $parameters['socid'] = $socid; |
| 2030 | 2030 | |
@@ -2241,7 +2241,7 @@ discard block |
||
| 2241 | 2241 | $nbMandated = 0; |
| 2242 | 2242 | foreach ($object->lines as $line) { |
| 2243 | 2243 | $res = $line->fetch_product(); |
| 2244 | - if ($res > 0) { |
|
| 2244 | + if ($res > 0) { |
|
| 2245 | 2245 | if ($line->product->isService() && $line->product->isMandatoryPeriod() && (empty($line->date_start) || empty($line->date_end))) { |
| 2246 | 2246 | $nbMandated++; |
| 2247 | 2247 | break; |
@@ -2265,7 +2265,7 @@ discard block |
||
| 2265 | 2265 | $deposit_percent_from_payment_terms = (float) getDictionaryValue('c_payment_term', 'deposit_percent', $object->cond_reglement_id); |
| 2266 | 2266 | |
| 2267 | 2267 | if (!empty($deposit_percent_from_payment_terms) && isModEnabled('invoice') && $user->hasRight('facture', 'creer')) { |
| 2268 | - require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php'; |
|
| 2268 | + require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; |
|
| 2269 | 2269 | |
| 2270 | 2270 | $object->fetchObjectLinked(); |
| 2271 | 2271 | |
@@ -2476,7 +2476,7 @@ discard block |
||
| 2476 | 2476 | $morehtmlref = '<div class="refidno">'; |
| 2477 | 2477 | // Ref customer |
| 2478 | 2478 | $morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, $usercancreate, 'string', '', 0, 1); |
| 2479 | - $morehtmlref .= $form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, $usercancreate, 'string'.(isset($conf->global->THIRDPARTY_REF_INPUT_SIZE) ? ':' . getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1); |
|
| 2479 | + $morehtmlref .= $form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, $usercancreate, 'string'.(isset($conf->global->THIRDPARTY_REF_INPUT_SIZE) ? ':'.getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1); |
|
| 2480 | 2480 | // Thirdparty |
| 2481 | 2481 | $morehtmlref .= '<br>'.$soc->getNomUrl(1, 'customer'); |
| 2482 | 2482 | if (!getDolGlobalString('MAIN_DISABLE_OTHER_LINK') && $object->thirdparty->id > 0) { |
@@ -2799,36 +2799,36 @@ discard block |
||
| 2799 | 2799 | |
| 2800 | 2800 | $alert = ''; |
| 2801 | 2801 | if (getDolGlobalString('ORDER_MANAGE_MIN_AMOUNT') && $object->total_ht < $object->thirdparty->order_min_amount) { |
| 2802 | - $alert = ' ' . img_warning($langs->trans('OrderMinAmount') . ': ' . price($object->thirdparty->order_min_amount)); |
|
| 2802 | + $alert = ' '.img_warning($langs->trans('OrderMinAmount').': '.price($object->thirdparty->order_min_amount)); |
|
| 2803 | 2803 | } |
| 2804 | 2804 | |
| 2805 | 2805 | print '<tr>'; |
| 2806 | - print '<td class="titlefieldmiddle">' . $langs->trans('AmountHT') . '</td>'; |
|
| 2807 | - print '<td class="nowrap amountcard right">' . price($object->total_ht, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
| 2806 | + print '<td class="titlefieldmiddle">'.$langs->trans('AmountHT').'</td>'; |
|
| 2807 | + print '<td class="nowrap amountcard right">'.price($object->total_ht, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
| 2808 | 2808 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 2809 | 2809 | // Multicurrency Amount HT |
| 2810 | - print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_ht, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 2810 | + print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_ht, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 2811 | 2811 | } |
| 2812 | 2812 | print '</tr>'; |
| 2813 | 2813 | |
| 2814 | 2814 | print '<tr>'; |
| 2815 | - print '<td class="titlefieldmiddle">' . $langs->trans('AmountVAT') . '</td>'; |
|
| 2816 | - print '<td class="nowrap amountcard right">' . price($object->total_tva, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
| 2815 | + print '<td class="titlefieldmiddle">'.$langs->trans('AmountVAT').'</td>'; |
|
| 2816 | + print '<td class="nowrap amountcard right">'.price($object->total_tva, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
| 2817 | 2817 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 2818 | 2818 | // Multicurrency Amount VAT |
| 2819 | - print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_tva, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 2819 | + print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_tva, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 2820 | 2820 | } |
| 2821 | 2821 | print '</tr>'; |
| 2822 | 2822 | |
| 2823 | 2823 | // Amount Local Taxes |
| 2824 | 2824 | if ($mysoc->localtax1_assuj == "1" || $object->total_localtax1 != 0) { |
| 2825 | 2825 | print '<tr>'; |
| 2826 | - print '<td class="titlefieldmiddle">' . $langs->transcountry("AmountLT1", $mysoc->country_code) . '</td>'; |
|
| 2827 | - print '<td class="nowrap amountcard right">' . price($object->total_localtax1, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
| 2826 | + print '<td class="titlefieldmiddle">'.$langs->transcountry("AmountLT1", $mysoc->country_code).'</td>'; |
|
| 2827 | + print '<td class="nowrap amountcard right">'.price($object->total_localtax1, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
| 2828 | 2828 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 2829 | 2829 | $object->multicurrency_total_localtax1 = price2num($object->total_localtax1 * $object->multicurrency_tx, 'MT'); |
| 2830 | 2830 | |
| 2831 | - print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_localtax1, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 2831 | + print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_localtax1, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 2832 | 2832 | } |
| 2833 | 2833 | print '</tr>'; |
| 2834 | 2834 | } |
@@ -2836,22 +2836,22 @@ discard block |
||
| 2836 | 2836 | // Amount Local Taxes |
| 2837 | 2837 | if ($mysoc->localtax2_assuj == "1" || $object->total_localtax2 != 0) { |
| 2838 | 2838 | print '<tr>'; |
| 2839 | - print '<td>' . $langs->transcountry("AmountLT2", $mysoc->country_code) . '</td>'; |
|
| 2840 | - print '<td class="nowrap amountcard right">' . price($object->total_localtax2, 0, $langs, 0, -1, -1, $conf->currency) . '</td>'; |
|
| 2839 | + print '<td>'.$langs->transcountry("AmountLT2", $mysoc->country_code).'</td>'; |
|
| 2840 | + print '<td class="nowrap amountcard right">'.price($object->total_localtax2, 0, $langs, 0, -1, -1, $conf->currency).'</td>'; |
|
| 2841 | 2841 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 2842 | 2842 | $object->multicurrency_total_localtax2 = price2num($object->total_localtax2 * $object->multicurrency_tx, 'MT'); |
| 2843 | 2843 | |
| 2844 | - print '<td class="nowrap amountcard right">' . price($object->multicurrency_total_localtax2, 0, $langs, 0, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 2844 | + print '<td class="nowrap amountcard right">'.price($object->multicurrency_total_localtax2, 0, $langs, 0, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 2845 | 2845 | } |
| 2846 | 2846 | print '</tr>'; |
| 2847 | 2847 | } |
| 2848 | 2848 | |
| 2849 | 2849 | print '<tr>'; |
| 2850 | - print '<td>' . $langs->trans('AmountTTC') . '</td>'; |
|
| 2851 | - print '<td class="valuefield nowrap right amountcard">' . price($object->total_ttc, 1, '', 1, -1, -1, $conf->currency) . '</td>'; |
|
| 2850 | + print '<td>'.$langs->trans('AmountTTC').'</td>'; |
|
| 2851 | + print '<td class="valuefield nowrap right amountcard">'.price($object->total_ttc, 1, '', 1, -1, -1, $conf->currency).'</td>'; |
|
| 2852 | 2852 | if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { |
| 2853 | 2853 | // Multicurrency Amount TTC |
| 2854 | - print '<td class="valuefield nowrap right amountcard">' . price($object->multicurrency_total_ttc, 1, '', 1, -1, -1, $object->multicurrency_code) . '</td>'; |
|
| 2854 | + print '<td class="valuefield nowrap right amountcard">'.price($object->multicurrency_total_ttc, 1, '', 1, -1, -1, $object->multicurrency_code).'</td>'; |
|
| 2855 | 2855 | } |
| 2856 | 2856 | print '</tr>'."\n"; |
| 2857 | 2857 | |
@@ -2968,7 +2968,7 @@ discard block |
||
| 2968 | 2968 | if ($usercansend) { |
| 2969 | 2969 | print dolGetButtonAction('', $langs->trans('SendMail'), 'email', $_SERVER["PHP_SELF"].'?action=presend&token='.newToken().'&id='.$object->id.'&mode=init#formmailbeforetitle', ''); |
| 2970 | 2970 | } else { |
| 2971 | - print dolGetButtonAction('', $langs->trans('SendMail'), 'email', $_SERVER['PHP_SELF']. '#', '', false); |
|
| 2971 | + print dolGetButtonAction('', $langs->trans('SendMail'), 'email', $_SERVER['PHP_SELF'].'#', '', false); |
|
| 2972 | 2972 | } |
| 2973 | 2973 | } |
| 2974 | 2974 | } |
@@ -3040,7 +3040,7 @@ discard block |
||
| 3040 | 3040 | }*/ |
| 3041 | 3041 | } else { |
| 3042 | 3042 | $langs->load("errors"); |
| 3043 | - print dolGetButtonAction($langs->trans('ErrorModuleSetupNotComplete'), $langs->trans('CreateShipment'), 'default', $_SERVER['PHP_SELF']. '#', '', false); |
|
| 3043 | + print dolGetButtonAction($langs->trans('ErrorModuleSetupNotComplete'), $langs->trans('CreateShipment'), 'default', $_SERVER['PHP_SELF'].'#', '', false); |
|
| 3044 | 3044 | } |
| 3045 | 3045 | } |
| 3046 | 3046 | |
@@ -3102,7 +3102,7 @@ discard block |
||
| 3102 | 3102 | if ($numshipping == 0) { |
| 3103 | 3103 | print dolGetButtonAction('', $langs->trans('Delete'), 'delete', $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&id='.$object->id, ''); |
| 3104 | 3104 | } else { |
| 3105 | - print dolGetButtonAction($langs->trans('ShippingExist'), $langs->trans('Delete'), 'default', $_SERVER['PHP_SELF']. '#', '', false); |
|
| 3105 | + print dolGetButtonAction($langs->trans('ShippingExist'), $langs->trans('Delete'), 'default', $_SERVER['PHP_SELF'].'#', '', false); |
|
| 3106 | 3106 | } |
| 3107 | 3107 | } |
| 3108 | 3108 | } |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | // Try to know count of actioncomm from cache |
| 195 | 195 | require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php'; |
| 196 | 196 | $cachekey = 'count_events_user_'.$object->id; |
| 197 | - $nbEvent = dol_getcache($cachekey); // TODO Add nb into badge in menu so we can get it from cache also here |
|
| 197 | + $nbEvent = dol_getcache($cachekey); // TODO Add nb into badge in menu so we can get it from cache also here |
|
| 198 | 198 | |
| 199 | 199 | $titlelist = $langs->trans("ActionsOnMember").(is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">('.$nbEvent.')</span>' : ''); |
| 200 | 200 | if (!empty($conf->dol_optimize_smallscreen)) { |