@@ -548,7 +548,7 @@ |
||
| 548 | 548 | $accountsystem->fetch(getDolGlobalInt('CHARTOFACCOUNTS')); |
| 549 | 549 | $sql = 'SELECT DISTINCT pcg_type FROM ' . MAIN_DB_PREFIX . 'accounting_account'; |
| 550 | 550 | $sql .= " WHERE fk_pcg_version = '" . $db->escape($accountsystem->ref) . "'"; |
| 551 | - $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy. |
|
| 551 | + $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy. |
|
| 552 | 552 | $sql .= ' LIMIT 50000'; // just as a sanity check |
| 553 | 553 | $resql = $db->query($sql); |
| 554 | 554 | if ($resql) { |
@@ -337,7 +337,7 @@ |
||
| 337 | 337 | print '<table class="border centpercent tableforfield">' . "\n"; |
| 338 | 338 | |
| 339 | 339 | // Common attributes |
| 340 | - $keyforbreak = 'date_acquisition'; // We change column just before this field |
|
| 340 | + $keyforbreak = 'date_acquisition'; // We change column just before this field |
|
| 341 | 341 | //unset($object->fields['fk_project']); // Hide field already shown in banner |
| 342 | 342 | //unset($object->fields['fk_soc']); // Hide field already shown in banner |
| 343 | 343 | include DOL_DOCUMENT_ROOT . '/core/tpl/commonfields_view.tpl.php'; |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | // Default sort order (if not yet defined by previous GETPOST) |
| 73 | 73 | if (!$sortfield) { |
| 74 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 74 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 75 | 75 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
| 76 | 76 | } |
| 77 | 77 | if (!$sortorder) { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'assetlist'; // To manage different context of search |
| 45 | 45 | $backtopage = GETPOST('backtopage', 'alpha'); // Go back to a dedicated page |
| 46 | 46 | $optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print') |
| 47 | -$mode = GETPOST('mode', 'alpha'); // mode view (kanban or common) |
|
| 47 | +$mode = GETPOST('mode', 'alpha'); // mode view (kanban or common) |
|
| 48 | 48 | $id = GETPOSTINT('id'); |
| 49 | 49 | |
| 50 | 50 | // Load variable for pagination |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | // Default sort order (if not yet defined by previous GETPOST) |
| 75 | 75 | if (!$sortfield) { |
| 76 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 76 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 77 | 77 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
| 78 | 78 | } |
| 79 | 79 | if (!$sortorder) { |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | // Parameters |
| 36 | 36 | $action = GETPOST('action', 'aZ09'); |
| 37 | 37 | $backtopage = GETPOST('backtopage', 'alpha'); |
| 38 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 38 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 39 | 39 | |
| 40 | 40 | if (empty($action)) { |
| 41 | 41 | $action = 'edit'; |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | //'gemini' => 'Gemini' |
| 72 | 72 | ); |
| 73 | 73 | |
| 74 | -$item = $formSetup->newItem('AI_API_SERVICE'); // Name of constant must end with _KEY so it is encrypted when saved into database. |
|
| 74 | +$item = $formSetup->newItem('AI_API_SERVICE'); // Name of constant must end with _KEY so it is encrypted when saved into database. |
|
| 75 | 75 | $item->setAsSelect($arrayofia); |
| 76 | 76 | $item->cssClass = 'minwidth150'; |
| 77 | 77 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $item->defaultFieldValue = ''; |
| 82 | 82 | $item->cssClass = 'minwidth500';*/ |
| 83 | 83 | |
| 84 | - $item = $formSetup->newItem('AI_API_' . strtoupper($ia) . '_KEY')->setAsSecureKey(); // Name of constant must end with _KEY so it is encrypted when saved into database. |
|
| 84 | + $item = $formSetup->newItem('AI_API_' . strtoupper($ia) . '_KEY')->setAsSecureKey(); // Name of constant must end with _KEY so it is encrypted when saved into database. |
|
| 85 | 85 | $item->nameText = $langs->trans("AI_API_KEY") . ' (' . $ialabel . ')'; |
| 86 | 86 | $item->defaultFieldValue = ''; |
| 87 | 87 | $item->fieldParams['hideGenerateButton'] = 1; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | // Parameters |
| 35 | 35 | $action = GETPOST('action', 'aZ09'); |
| 36 | 36 | $backtopage = GETPOST('backtopage', 'alpha'); |
| 37 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 37 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 38 | 38 | |
| 39 | 39 | if (empty($action)) { |
| 40 | 40 | $action = 'edit'; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | $ai = new Ai($db); |
| 65 | 65 | |
| 66 | 66 | // Get parameters |
| 67 | -$function = empty($jsonData['function']) ? 'textgeneration' : $jsonData['function']; // Default value. Can also be 'textgenerationemail', 'textgenerationwebpage', ... |
|
| 67 | +$function = empty($jsonData['function']) ? 'textgeneration' : $jsonData['function']; // Default value. Can also be 'textgenerationemail', 'textgenerationwebpage', ... |
|
| 68 | 68 | $instructions = dol_string_nohtmltag($jsonData['instructions'], 1, 'UTF-8'); |
| 69 | 69 | $format = empty($jsonData['format']) ? '' : $jsonData['format']; |
| 70 | 70 | |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | // Create a line of payments |
| 301 | 301 | $paiement = new PaymentSalary($db); |
| 302 | 302 | $paiement->fk_salary = $object->id; |
| 303 | - $paiement->chid = $object->id; // deprecated |
|
| 303 | + $paiement->chid = $object->id; // deprecated |
|
| 304 | 304 | $paiement->datep = $datep; |
| 305 | 305 | $paiement->datev = $datev; |
| 306 | 306 | $paiement->amounts = array($object->id => $amount); // Tableau de montant |
@@ -621,7 +621,7 @@ discard block |
||
| 621 | 621 | |
| 622 | 622 | // Auto create payment |
| 623 | 623 | print '<tr><td><label for="auto_create_paiement">' . $langs->trans('AutomaticCreationPayment') . '</label></td>'; |
| 624 | - print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" ' . (empty($auto_create_paiement) ? '' : 'checked="checked"') . ' value="1"></td></tr>' . "\n"; // Date payment |
|
| 624 | + print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" ' . (empty($auto_create_paiement) ? '' : 'checked="checked"') . ' value="1"></td></tr>' . "\n"; // Date payment |
|
| 625 | 625 | |
| 626 | 626 | // Bank |
| 627 | 627 | if (isModEnabled("bank")) { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | dol_print_error($db, 'Failed to get payment id ' . $id); |
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | -restrictedArea($user, 'salaries', $object->fk_salary, 'salary', ''); // $object is payment of salary |
|
| 58 | +restrictedArea($user, 'salaries', $object->fk_salary, 'salary', ''); // $object is payment of salary |
|
| 59 | 59 | |
| 60 | 60 | |
| 61 | 61 | /* |