Fix edit of capital
This commit is contained in:
parent
9a345e99ef
commit
e79c907ae0
@ -60,7 +60,7 @@ $mesg=''; $error=0; $errors=array();
|
|||||||
$action = (GETPOST('action','aZ09') ? GETPOST('action','aZ09') : 'view');
|
$action = (GETPOST('action','aZ09') ? GETPOST('action','aZ09') : 'view');
|
||||||
$cancel = GETPOST('cancel','alpha');
|
$cancel = GETPOST('cancel','alpha');
|
||||||
$backtopage = GETPOST('backtopage','alpha');
|
$backtopage = GETPOST('backtopage','alpha');
|
||||||
$confirm = GETPOST('confirm');
|
$confirm = GETPOST('confirm','alpha');
|
||||||
|
|
||||||
$socid = GETPOST('socid','int')?GETPOST('socid','int'):GETPOST('id','int');
|
$socid = GETPOST('socid','int')?GETPOST('socid','int'):GETPOST('id','int');
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
@ -1885,7 +1885,9 @@ else
|
|||||||
|
|
||||||
// Capital
|
// Capital
|
||||||
print '<tr><td>'.fieldLabel('Capital','capital').'</td>';
|
print '<tr><td>'.fieldLabel('Capital','capital').'</td>';
|
||||||
print '<td colspan="3"><input type="text" name="capital" id="capital" size="10" value="'.$object->capital.'"> <font class="hideonsmartphone">'.$langs->trans("Currency".$conf->currency).'</font></td></tr>';
|
print '<td colspan="3"><input type="text" name="capital" id="capital" size="10" value="';
|
||||||
|
print dol_escape_htmltag(price($object->capital));
|
||||||
|
print '"> <font class="hideonsmartphone">'.$langs->trans("Currency".$conf->currency).'</font></td></tr>';
|
||||||
|
|
||||||
// Default language
|
// Default language
|
||||||
if (! empty($conf->global->MAIN_MULTILANGS))
|
if (! empty($conf->global->MAIN_MULTILANGS))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user