FIX : bad object name
This commit is contained in:
parent
eaa0170604
commit
3058d6ff0b
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2021 NextGestion <contact@nextgestion.com>
|
* Copyright (C) 2021 NextGestion <contact@nextgestion.com>
|
||||||
|
* Copyright (C) 2022 Charlene Benke <charlent@patas-monkey.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -180,25 +181,25 @@ if ($id > 0) {
|
|||||||
print '<table class="border centpercent tableforfield">';
|
print '<table class="border centpercent tableforfield">';
|
||||||
|
|
||||||
if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field
|
if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field
|
||||||
print '<tr><td>'.$langs->trans('Prefix').'</td><td colspan="3">'.$societe->prefix_comm.'</td></tr>';
|
print '<tr><td>'.$langs->trans('Prefix').'</td><td colspan="3">'.$object->prefix_comm.'</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($societe->client) {
|
if ($object->client) {
|
||||||
print '<tr><td class="titlefield">';
|
print '<tr><td class="titlefield">';
|
||||||
print $langs->trans('CustomerCode').'</td><td colspan="3">';
|
print $langs->trans('CustomerCode').'</td><td colspan="3">';
|
||||||
print showValueWithClipboardCPButton(dol_escape_htmltag($societe->code_client));
|
print showValueWithClipboardCPButton(dol_escape_htmltag($object->code_client));
|
||||||
$tmpcheck = $societe->check_codeclient();
|
$tmpcheck = $object->check_codeclient();
|
||||||
if ($tmpcheck != 0 && $tmpcheck != -5) {
|
if ($tmpcheck != 0 && $tmpcheck != -5) {
|
||||||
print ' <span class="error">('.$langs->trans("WrongCustomerCode").')</span>';
|
print ' <span class="error">('.$langs->trans("WrongCustomerCode").')</span>';
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($societe->fournisseur) {
|
if ($object->fournisseur) {
|
||||||
print '<tr><td class="titlefield">';
|
print '<tr><td class="titlefield">';
|
||||||
print $langs->trans('SupplierCode').'</td><td colspan="3">';
|
print $langs->trans('SupplierCode').'</td><td colspan="3">';
|
||||||
print showValueWithClipboardCPButton(dol_escape_htmltag($societe->code_fournisseur));
|
print showValueWithClipboardCPButton(dol_escape_htmltag($object->code_fournisseur));
|
||||||
$tmpcheck = $societe->check_codefournisseur();
|
$tmpcheck = $object->check_codefournisseur();
|
||||||
if ($tmpcheck != 0 && $tmpcheck != -5) {
|
if ($tmpcheck != 0 && $tmpcheck != -5) {
|
||||||
print ' <span class="error">('.$langs->trans("WrongSupplierCode").')</span>';
|
print ' <span class="error">('.$langs->trans("WrongSupplierCode").')</span>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user