@@ -2387,14 +2387,14 @@ |
||
2387 | 2387 | } |
2388 | 2388 | |
2389 | 2389 | /** |
2390 | - * Export format : iSuite Expert |
|
2391 | - * |
|
2392 | - * by OpenSolus [https://opensolus.fr] |
|
2393 | - * |
|
2390 | + * Export format : iSuite Expert |
|
2391 | + * |
|
2392 | + * by OpenSolus [https://opensolus.fr] |
|
2393 | + * |
|
2394 | 2394 | * @param array $objectLines data |
2395 | 2395 | * @param resource $exportFile [=null] File resource to export or print if null |
2396 | 2396 | * @return void |
2397 | - */ |
|
2397 | + */ |
|
2398 | 2398 | public function exportiSuiteExpert($objectLines, $exportFile = null) |
2399 | 2399 | { |
2400 | 2400 | $separator = ';'; |
@@ -334,8 +334,8 @@ discard block |
||
334 | 334 | */ |
335 | 335 | public function export(&$TData, $formatexportset, $withAttachment = 0, $downloadMode = 0, $outputMode = 0, $noouput = 0) |
336 | 336 | { |
337 | - global $db, $conf, $langs; // The tpl file use $db |
|
338 | - global $search_date_end; // Used into /accountancy/tpl/export_journal.tpl.php |
|
337 | + global $db, $conf, $langs; // The tpl file use $db |
|
338 | + global $search_date_end; // Used into /accountancy/tpl/export_journal.tpl.php |
|
339 | 339 | |
340 | 340 | // Define name of file to save |
341 | 341 | $filename = 'general_ledger-'.$this->getFormatCode($formatexportset); |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | $exportFileFullName = $completefilename; |
416 | 416 | $exportFileBaseName = basename($exportFileFullName); |
417 | 417 | $exportFileName = pathinfo($exportFileBaseName, PATHINFO_FILENAME); |
418 | - $exportFilePath = $outputDir . '/' . $exportFileFullName; |
|
418 | + $exportFilePath = $outputDir.'/'.$exportFileFullName; |
|
419 | 419 | $exportFile = fopen($exportFilePath, 'w'); |
420 | 420 | if (!$exportFile) { |
421 | 421 | $this->errors[] = $langs->trans('ErrorFileNotFound', $exportFilePath); |
@@ -429,8 +429,8 @@ discard block |
||
429 | 429 | ); |
430 | 430 | |
431 | 431 | // archive name and path |
432 | - $archiveFullName = $exportFileName . '.zip'; |
|
433 | - $archivePath = $outputDir . '/' . $archiveFullName; |
|
432 | + $archiveFullName = $exportFileName.'.zip'; |
|
433 | + $archivePath = $outputDir.'/'.$archiveFullName; |
|
434 | 434 | } |
435 | 435 | } |
436 | 436 | } |
@@ -568,11 +568,11 @@ discard block |
||
568 | 568 | if (!empty($downloadFileMimeType) && !empty($downloadFileFullName) && !empty($downloadFilePath) && empty($noouput)) { |
569 | 569 | // deprecated. We must not use this anymore, but have $noouput = 1 because HTTP header must be sent |
570 | 570 | // into main page not into a method. |
571 | - header('Content-Type: ' . $downloadFileMimeType); |
|
572 | - header('Content-Disposition: attachment; filename=' . $downloadFileFullName); |
|
571 | + header('Content-Type: '.$downloadFileMimeType); |
|
572 | + header('Content-Disposition: attachment; filename='.$downloadFileFullName); |
|
573 | 573 | header('Cache-Control: Public, must-revalidate'); |
574 | 574 | header('Pragma: public'); |
575 | - header('Content-Length: ' . dol_filesize($downloadFilePath)); |
|
575 | + header('Content-Length: '.dol_filesize($downloadFilePath)); |
|
576 | 576 | |
577 | 577 | readfileLowMemory($downloadFilePath); |
578 | 578 | } |
@@ -644,14 +644,14 @@ discard block |
||
644 | 644 | $refInvoice = ''; |
645 | 645 | if ($line->doc_type == 'customer_invoice') { |
646 | 646 | // Customer invoice |
647 | - require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php'; |
|
647 | + require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; |
|
648 | 648 | $invoice = new Facture($this->db); |
649 | 649 | $invoice->fetch($line->fk_doc); |
650 | 650 | |
651 | 651 | $refInvoice = $invoice->ref; |
652 | 652 | } elseif ($line->doc_type == 'supplier_invoice') { |
653 | 653 | // Supplier invoice |
654 | - require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.facture.class.php'; |
|
654 | + require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php'; |
|
655 | 655 | $invoice = new FactureFournisseur($this->db); |
656 | 656 | $invoice->fetch($line->fk_doc); |
657 | 657 | |
@@ -1999,7 +1999,7 @@ discard block |
||
1999 | 1999 | // MOPM |
2000 | 2000 | $tab[] = ""; |
2001 | 2001 | // BONP |
2002 | - $tab[] = ""; |
|
2002 | + $tab[] = ""; |
|
2003 | 2003 | // BQAF |
2004 | 2004 | $tab[] = ""; |
2005 | 2005 | // ECES |
@@ -2205,7 +2205,7 @@ discard block |
||
2205 | 2205 | } |
2206 | 2206 | } elseif ($line->doc_type == 'customer_invoice') { |
2207 | 2207 | if (($line->amount) < 0) { |
2208 | - $nature_piece = 'AC'; // Currently, only the sign of amount allows to know the type of invoice (standard or credit note). Other solution is to analyse debit/credit/role of account. TODO Add column doc_type_long or make amount mandatory with rule on sign. |
|
2208 | + $nature_piece = 'AC'; // Currently, only the sign of amount allows to know the type of invoice (standard or credit note). Other solution is to analyse debit/credit/role of account. TODO Add column doc_type_long or make amount mandatory with rule on sign. |
|
2209 | 2209 | } else { |
2210 | 2210 | $nature_piece = 'FC'; |
2211 | 2211 | } |
@@ -2414,8 +2414,8 @@ discard block |
||
2414 | 2414 | ($line->doc_type == 'supplier_invoice' && !isset($supplier_invoices_infos[$line->fk_doc]))) { |
2415 | 2415 | if ($line->doc_type == 'customer_invoice') { |
2416 | 2416 | // Get new customer invoice ref and company name |
2417 | - $sql = 'SELECT f.ref, s.nom FROM ' . MAIN_DB_PREFIX . 'facture as f'; |
|
2418 | - $sql .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'societe AS s ON f.fk_soc = s.rowid'; |
|
2417 | + $sql = 'SELECT f.ref, s.nom FROM '.MAIN_DB_PREFIX.'facture as f'; |
|
2418 | + $sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'societe AS s ON f.fk_soc = s.rowid'; |
|
2419 | 2419 | $sql .= ' WHERE f.rowid = '.((int) $line->fk_doc); |
2420 | 2420 | $resql = $this->db->query($sql); |
2421 | 2421 | if ($resql) { |
@@ -2428,8 +2428,8 @@ discard block |
||
2428 | 2428 | } |
2429 | 2429 | } else { |
2430 | 2430 | // Get new supplier invoice ref and company name |
2431 | - $sql = 'SELECT ff.ref, s.nom FROM ' . MAIN_DB_PREFIX . 'facture_fourn as ff'; |
|
2432 | - $sql .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'societe AS s ON ff.fk_soc = s.rowid'; |
|
2431 | + $sql = 'SELECT ff.ref, s.nom FROM '.MAIN_DB_PREFIX.'facture_fourn as ff'; |
|
2432 | + $sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'societe AS s ON ff.fk_soc = s.rowid'; |
|
2433 | 2433 | $sql .= ' WHERE ff.rowid = '.((int) $line->fk_doc); |
2434 | 2434 | $resql = $this->db->query($sql); |
2435 | 2435 | if ($resql) { |
@@ -2467,7 +2467,7 @@ discard block |
||
2467 | 2467 | $tab[] = ""; |
2468 | 2468 | //print '"'.dol_trunc(str_replace('"', '', $line->label_operation),40,'right','UTF-8',1).'"'; |
2469 | 2469 | //Libellé manual |
2470 | - $tab[] = dol_trunc(str_replace('"', '', $invoice_ref . (!empty($company_name) ? ' - ' : '') . $company_name), 40, 'right', 'UTF-8', 1); |
|
2470 | + $tab[] = dol_trunc(str_replace('"', '', $invoice_ref.(!empty($company_name) ? ' - ' : '').$company_name), 40, 'right', 'UTF-8', 1); |
|
2471 | 2471 | //Numéro de pièce |
2472 | 2472 | $tab[] = dol_trunc(str_replace('"', '', $line->piece_num), 10, 'right', 'UTF-8', 1); |
2473 | 2473 | //Devise |
@@ -2521,8 +2521,8 @@ discard block |
||
2521 | 2521 | } |
2522 | 2522 | $tab[] = ""; |
2523 | 2523 | $tab[] = '"'.dol_trunc(str_replace('"', '', $line->label_operation), 40, 'right', 'UTF-8', 1).'"'; |
2524 | - $tab[] = '"' . dol_trunc(str_replace('"', '', $line->doc_ref), 40, 'right', 'UTF-8', 1) . '"'; |
|
2525 | - $tab[] = '"' . dol_trunc(str_replace('"', '', $line->piece_num), 10, 'right', 'UTF-8', 1) . '"'; |
|
2524 | + $tab[] = '"'.dol_trunc(str_replace('"', '', $line->doc_ref), 40, 'right', 'UTF-8', 1).'"'; |
|
2525 | + $tab[] = '"'.dol_trunc(str_replace('"', '', $line->piece_num), 10, 'right', 'UTF-8', 1).'"'; |
|
2526 | 2526 | $tab[] = price2num(abs($line->debit - $line->credit)); |
2527 | 2527 | $tab[] = $line->sens; |
2528 | 2528 | $tab[] = $date_document; |
@@ -72,5 +72,5 @@ |
||
72 | 72 | } |
73 | 73 | |
74 | 74 | if (empty($downloadMode)) { |
75 | - header('Content-Disposition: attachment;filename=' . $completefilename); |
|
75 | + header('Content-Disposition: attachment;filename='.$completefilename); |
|
76 | 76 | } |
@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Label")), null, 'errors'); |
77 | 77 | $action = 'create'; |
78 | 78 | } else { |
79 | - $sql = "SELECT pcg_version FROM " . MAIN_DB_PREFIX . "accounting_system WHERE rowid = ".((int) getDolGlobalInt('CHARTOFACCOUNTS')); |
|
79 | + $sql = "SELECT pcg_version FROM ".MAIN_DB_PREFIX."accounting_system WHERE rowid = ".((int) getDolGlobalInt('CHARTOFACCOUNTS')); |
|
80 | 80 | |
81 | - dol_syslog('accountancy/admin/card.php:: $sql=' . $sql); |
|
81 | + dol_syslog('accountancy/admin/card.php:: $sql='.$sql); |
|
82 | 82 | $result = $db->query($sql); |
83 | 83 | $obj = $db->fetch_object($result); |
84 | 84 | |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | if (!$error) { |
124 | 124 | setEventMessages("RecordCreatedSuccessfully", null, 'mesgs'); |
125 | 125 | $urltogo = $backtopage ? $backtopage : DOL_URL_ROOT.'/accountancy/admin/account.php'; |
126 | - header("Location: " . $urltogo); |
|
126 | + header("Location: ".$urltogo); |
|
127 | 127 | exit; |
128 | 128 | } |
129 | 129 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | $sql = "SELECT pcg_version FROM ".MAIN_DB_PREFIX."accounting_system WHERE rowid=".((int) getDolGlobalInt('CHARTOFACCOUNTS')); |
143 | 143 | |
144 | - dol_syslog('accountancy/admin/card.php:: $sql=' . $sql); |
|
144 | + dol_syslog('accountancy/admin/card.php:: $sql='.$sql); |
|
145 | 145 | $result2 = $db->query($sql); |
146 | 146 | $obj = $db->fetch_object($result2); |
147 | 147 | |
@@ -171,8 +171,8 @@ discard block |
||
171 | 171 | $result = $object->update($user); |
172 | 172 | |
173 | 173 | if ($result > 0) { |
174 | - $urltogo = $backtopage ? $backtopage : ($_SERVER["PHP_SELF"] . "?id=" . $id); |
|
175 | - header("Location: " . $urltogo); |
|
174 | + $urltogo = $backtopage ? $backtopage : ($_SERVER["PHP_SELF"]."?id=".$id); |
|
175 | + header("Location: ".$urltogo); |
|
176 | 176 | exit(); |
177 | 177 | } elseif ($result == -2) { |
178 | 178 | setEventMessages($langs->trans("ErrorAccountNumberAlreadyExists", $object->account_number), null, 'errors'); |
@@ -264,14 +264,14 @@ discard block |
||
264 | 264 | print '<input type="text" name="pcg_type" list="pcg_type_datalist" value="'.dol_escape_htmltag(GETPOSTISSET('pcg_type') ? GETPOST('pcg_type', 'alpha') : $object->pcg_type).'">'; |
265 | 265 | // autosuggest from existing account types if found |
266 | 266 | print '<datalist id="pcg_type_datalist">'; |
267 | - $sql = "SELECT DISTINCT pcg_type FROM " . MAIN_DB_PREFIX . "accounting_account"; |
|
268 | - $sql .= " WHERE fk_pcg_version = '" . $db->escape($accountsystem->ref) . "'"; |
|
269 | - $sql .= ' AND entity in ('.getEntity('accounting_account', 0).')'; // Always limit to current entity. No sharing in accountancy. |
|
267 | + $sql = "SELECT DISTINCT pcg_type FROM ".MAIN_DB_PREFIX."accounting_account"; |
|
268 | + $sql .= " WHERE fk_pcg_version = '".$db->escape($accountsystem->ref)."'"; |
|
269 | + $sql .= ' AND entity in ('.getEntity('accounting_account', 0).')'; // Always limit to current entity. No sharing in accountancy. |
|
270 | 270 | $sql .= ' LIMIT 50000'; // just as a sanity check |
271 | 271 | $resql = $db->query($sql); |
272 | 272 | if ($resql) { |
273 | 273 | while ($obj = $db->fetch_object($resql)) { |
274 | - print '<option value="' . dol_escape_htmltag($obj->pcg_type) . '">'; |
|
274 | + print '<option value="'.dol_escape_htmltag($obj->pcg_type).'">'; |
|
275 | 275 | } |
276 | 276 | } |
277 | 277 | print '</datalist>'; |
@@ -341,14 +341,14 @@ discard block |
||
341 | 341 | print '<input type="text" name="pcg_type" list="pcg_type_datalist" value="'.dol_escape_htmltag(GETPOSTISSET('pcg_type') ? GETPOST('pcg_type', 'alpha') : $object->pcg_type).'">'; |
342 | 342 | // autosuggest from existing account types if found |
343 | 343 | print '<datalist id="pcg_type_datalist">'; |
344 | - $sql = 'SELECT DISTINCT pcg_type FROM ' . MAIN_DB_PREFIX . 'accounting_account'; |
|
345 | - $sql .= " WHERE fk_pcg_version = '" . $db->escape($accountsystem->ref) . "'"; |
|
346 | - $sql .= ' AND entity in ('.getEntity('accounting_account', 0).')'; // Always limit to current entity. No sharing in accountancy. |
|
344 | + $sql = 'SELECT DISTINCT pcg_type FROM '.MAIN_DB_PREFIX.'accounting_account'; |
|
345 | + $sql .= " WHERE fk_pcg_version = '".$db->escape($accountsystem->ref)."'"; |
|
346 | + $sql .= ' AND entity in ('.getEntity('accounting_account', 0).')'; // Always limit to current entity. No sharing in accountancy. |
|
347 | 347 | $sql .= ' LIMIT 50000'; // just as a sanity check |
348 | 348 | $resql = $db->query($sql); |
349 | 349 | if ($resql) { |
350 | 350 | while ($obj = $db->fetch_object($resql)) { |
351 | - print '<option value="' . dol_escape_htmltag($obj->pcg_type) . '">'; |
|
351 | + print '<option value="'.dol_escape_htmltag($obj->pcg_type).'">'; |
|
352 | 352 | } |
353 | 353 | } |
354 | 354 | print '</datalist>'; |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | } |
253 | 253 | } |
254 | 254 | if (empty($error)) { |
255 | - header("Location: card.php?id=" . $object->id); |
|
255 | + header("Location: card.php?id=".$object->id); |
|
256 | 256 | exit; |
257 | 257 | } |
258 | 258 | } |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | } else { |
308 | 308 | $result = $object->fetch($id); |
309 | 309 | |
310 | - $object->amount = $amount; |
|
310 | + $object->amount = $amount; |
|
311 | 311 | |
312 | 312 | $result = $object->update($user); |
313 | 313 | if ($result <= 0) { |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | |
470 | 470 | // Auto create payment |
471 | 471 | print '<tr><td><label for="auto_create_paiement">'.$langs->trans('AutomaticCreationPayment').'</label></td>'; |
472 | - print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" ' . (empty($auto_create_payment) ? '' : 'checked="checked"') . ' value="1"></td></tr>'."\n"; |
|
472 | + print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" '.(empty($auto_create_payment) ? '' : 'checked="checked"').' value="1"></td></tr>'."\n"; |
|
473 | 473 | |
474 | 474 | print '<tr class="hide_if_no_auto_create_payment">'; |
475 | 475 | print '<td class="fieldrequired">'.$langs->trans("DatePayment").'</td><td>'; |
@@ -609,9 +609,9 @@ discard block |
||
609 | 609 | print '</td></tr>'; |
610 | 610 | |
611 | 611 | if ($action == 'edit') { |
612 | - print '<tr><td class="fieldrequired">' . $langs->trans("Amount") . '</td><td><input name="amount" size="10" value="' . price($object->amount) . '"></td></tr>'; |
|
612 | + print '<tr><td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input name="amount" size="10" value="'.price($object->amount).'"></td></tr>'; |
|
613 | 613 | } else { |
614 | - print '<tr><td>' . $langs->trans("Amount") . '</td><td>' . price($object->amount) . '</td></tr>'; |
|
614 | + print '<tr><td>'.$langs->trans("Amount").'</td><td>'.price($object->amount).'</td></tr>'; |
|
615 | 615 | } |
616 | 616 | |
617 | 617 | // Mode of payment |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | $month_current = dol_print_date(dol_now(), "%m"); |
53 | 53 | $year_start = $year - $nbofyear + (getDolGlobalInt('SOCIETE_FISCAL_MONTH_START') > 1 ? 0 : 1); |
54 | 54 | } |
55 | -$date_start = dol_mktime(0, 0, 0, $date_startmonth, $date_startday, $date_startyear, 'tzserver'); // We use timezone of server so report is same from everywhere |
|
56 | -$date_end = dol_mktime(23, 59, 59, $date_endmonth, $date_endday, $date_endyear, 'tzserver'); // We use timezone of server so report is same from everywhere |
|
55 | +$date_start = dol_mktime(0, 0, 0, $date_startmonth, $date_startday, $date_startyear, 'tzserver'); // We use timezone of server so report is same from everywhere |
|
56 | +$date_end = dol_mktime(23, 59, 59, $date_endmonth, $date_endday, $date_endyear, 'tzserver'); // We use timezone of server so report is same from everywhere |
|
57 | 57 | |
58 | 58 | // We define date_start and date_end |
59 | 59 | if (empty($date_start) || empty($date_end)) { // We define date_start and date_end |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | $sql .= " AND b.doc_type = 'customer_invoice'"; |
256 | 256 | $sql .= " AND aa.entity = ".$conf->entity; |
257 | 257 | $sql .= " AND aa.fk_pcg_version = '".$db->escape($pcgvercode)."'"; |
258 | - $sql .= " AND aa.pcg_type = 'INCOME'"; // TODO Be able to use a custom group |
|
258 | + $sql .= " AND aa.pcg_type = 'INCOME'"; // TODO Be able to use a custom group |
|
259 | 259 | } |
260 | 260 | $sql .= " GROUP BY dm"; |
261 | 261 | $sql .= " ORDER BY dm"; |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | $this->type_payment = $obj->fk_typepayment; |
307 | 307 | $this->num_payment = $obj->num_payment; |
308 | 308 | $this->label = $obj->label; |
309 | - $this->note = $obj->note_private; // For backward compatibility |
|
309 | + $this->note = $obj->note_private; // For backward compatibility |
|
310 | 310 | $this->note_private = $obj->note_private; |
311 | 311 | $this->subledger_account = $obj->subledger_account; |
312 | 312 | $this->accountancy_code = $obj->accountancy_code; |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | $sql .= ", ".($this->fk_project > 0 ? ((int) $this->fk_project) : 0); |
487 | 487 | $sql .= ", ".((int) $user->id); |
488 | 488 | $sql .= ", '".$this->db->idate($now)."'"; |
489 | - $sql .= ", NULL"; // Filled later |
|
489 | + $sql .= ", NULL"; // Filled later |
|
490 | 490 | $sql .= ", ".((int) $conf->entity); |
491 | 491 | $sql .= ")"; |
492 | 492 |
@@ -45,8 +45,8 @@ |
||
45 | 45 | |
46 | 46 | const STATUS_DRAFT = 0; |
47 | 47 | const STATUS_NOT_USED = 1; |
48 | - const STATUS_CREDITED = 2; // STATUS_CREDITED and STATUS_DEBITED is same. Difference is in ->type |
|
49 | - const STATUS_DEBITED = 2; // STATUS_CREDITED and STATUS_DEBITED is same. Difference is in ->type |
|
48 | + const STATUS_CREDITED = 2; // STATUS_CREDITED and STATUS_DEBITED is same. Difference is in ->type |
|
49 | + const STATUS_DEBITED = 2; // STATUS_CREDITED and STATUS_DEBITED is same. Difference is in ->type |
|
50 | 50 | const STATUS_REJECTED = 3; |
51 | 51 | |
52 | 52 |
@@ -142,7 +142,7 @@ |
||
142 | 142 | |
143 | 143 | $calc = getDolGlobalString('MAIN_INFO_LOCALTAX_CALC').$local; |
144 | 144 | // Affiche en-tete du rapport |
145 | -$description=''; |
|
145 | +$description = ''; |
|
146 | 146 | if ($calc == 0 || $calc == 1) { // Calculate on invoice for goods and services |
147 | 147 | $calcmode = $calc == 0 ? $langs->trans("CalcModeLT".$local) : $langs->trans("CalcModeLT".$local."Rec"); |
148 | 148 | $calcmode .= ' <span class="opacitymedium">('.$langs->trans("TaxModuleSetupToModifyRulesLT", DOL_URL_ROOT.'/admin/company.php').')</span>'; |
@@ -124,8 +124,8 @@ |
||
124 | 124 | // Ref customer |
125 | 125 | //$morehtmlref.=$form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, $user->rights->ficheinter->creer, 'string', '', 0, 1); |
126 | 126 | //$morehtmlref.=$form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, $user->rights->ficheinter->creer, 'string', '', null, null, '', 1); |
127 | - $morehtmlref.=$form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', 0, 1); |
|
128 | - $morehtmlref.=$form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', null, null, '', 1); |
|
127 | + $morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', 0, 1); |
|
128 | + $morehtmlref .= $form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', null, null, '', 1); |
|
129 | 129 | // Thirdparty |
130 | 130 | $morehtmlref .= '<br>'.$object->thirdparty->getNomUrl(1, 'customer'); |
131 | 131 | // Project |