Merge pull request #1974 from grandoc/develop
encrease name length for societe
This commit is contained in:
commit
9d9a1e0701
@ -3012,13 +3012,13 @@ abstract class CommonObject
|
|||||||
|
|
||||||
print '<table class="nobordernopadding margintable" width="100%">';
|
print '<table class="nobordernopadding margintable" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td width="30%">'.$langs->trans('Margins').'</td>';
|
print '<td width="15%">'.$langs->trans('Margins').'</td>';
|
||||||
print '<td width="20%" align="right">'.$langs->trans('SellingPrice').'</td>';
|
print '<td width="15%" align="right">'.$langs->trans('SellingPrice').'</td>';
|
||||||
if ($conf->global->MARGIN_TYPE == "1")
|
if ($conf->global->MARGIN_TYPE == "1")
|
||||||
print '<td width="20%" align="right">'.$langs->trans('BuyingPrice').'</td>';
|
print '<td width="15%" align="right">'.$langs->trans('BuyingPrice').'</td>';
|
||||||
else
|
else
|
||||||
print '<td width="20%" align="right">'.$langs->trans('CostPrice').'</td>';
|
print '<td width="15%" align="right">'.$langs->trans('CostPrice').'</td>';
|
||||||
print '<td width="20%" align="right">'.$langs->trans('Margin').'</td>';
|
print '<td width="15%" align="right">'.$langs->trans('Margin').'</td>';
|
||||||
if (! empty($conf->global->DISPLAY_MARGIN_RATES))
|
if (! empty($conf->global->DISPLAY_MARGIN_RATES))
|
||||||
print '<td align="right">'.$langs->trans('MarginRate').'</td>';
|
print '<td align="right">'.$langs->trans('MarginRate').'</td>';
|
||||||
if (! empty($conf->global->DISPLAY_MARK_RATES))
|
if (! empty($conf->global->DISPLAY_MARK_RATES))
|
||||||
|
|||||||
@ -37,7 +37,7 @@ create table llx_adherent
|
|||||||
pass varchar(50), -- password
|
pass varchar(50), -- password
|
||||||
fk_adherent_type integer NOT NULL,
|
fk_adherent_type integer NOT NULL,
|
||||||
morphy varchar(3) NOT NULL, -- personne morale / personne physique
|
morphy varchar(3) NOT NULL, -- personne morale / personne physique
|
||||||
societe varchar(60), -- company name (should be same lenght than societe.name)
|
societe varchar(128), -- company name (should be same lenght than societe.name)
|
||||||
fk_soc integer NULL, -- Link to third party linked to member
|
fk_soc integer NULL, -- Link to third party linked to member
|
||||||
address text,
|
address text,
|
||||||
zip varchar(30),
|
zip varchar(30),
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
create table llx_societe
|
create table llx_societe
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
nom varchar(60), -- company reference name (should be smae length than adherent.societe)
|
nom varchar(128), -- company reference name (should be same length than adherent.societe)
|
||||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
||||||
|
|
||||||
ref_ext varchar(128), -- reference into an external system (not used by dolibarr)
|
ref_ext varchar(128), -- reference into an external system (not used by dolibarr)
|
||||||
|
|||||||
@ -805,7 +805,7 @@ else
|
|||||||
print '<span span id="TypeName" class="fieldrequired"><label for="name">'.$langs->trans('ThirdPartyName').'</label></span>';
|
print '<span span id="TypeName" class="fieldrequired"><label for="name">'.$langs->trans('ThirdPartyName').'</label></span>';
|
||||||
}
|
}
|
||||||
print '</td><td'.(empty($conf->global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>';
|
print '</td><td'.(empty($conf->global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>';
|
||||||
print '<input type="text" size="30" maxlength="60" name="nom" id="name" value="'.$object->name.'" autofocus="autofocus"></td>';
|
print '<input type="text" size="60" maxlength="128" name="nom" id="name" value="'.$object->name.'" autofocus="autofocus"></td>';
|
||||||
if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
|
if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
|
||||||
{
|
{
|
||||||
print '<td>'.$langs->trans('Prefix').'</td><td><input type="text" size="5" maxlength="5" name="prefix_comm" value="'.$object->prefix_comm.'"></td>';
|
print '<td>'.$langs->trans('Prefix').'</td><td><input type="text" size="5" maxlength="5" name="prefix_comm" value="'.$object->prefix_comm.'"></td>';
|
||||||
@ -816,7 +816,7 @@ else
|
|||||||
if ($conf->use_javascript_ajax)
|
if ($conf->use_javascript_ajax)
|
||||||
{
|
{
|
||||||
print '<tr class="individualline"><td><label for="firstname">'.$langs->trans('FirstName').'</label></td>';
|
print '<tr class="individualline"><td><label for="firstname">'.$langs->trans('FirstName').'</label></td>';
|
||||||
print '<td><input type="text" size="30" name="firstname" id="firstname" value="'.$object->firstname.'"></td>';
|
print '<td><input type="text" size="60" name="firstname" id="firstname" value="'.$object->firstname.'"></td>';
|
||||||
print '<td colspan=2> </td></tr>';
|
print '<td colspan=2> </td></tr>';
|
||||||
print '<tr class="individualline"><td><label for="civility_id">'.$langs->trans("UserTitle").'</label></td><td>';
|
print '<tr class="individualline"><td><label for="civility_id">'.$langs->trans("UserTitle").'</label></td><td>';
|
||||||
print $formcompany->select_civility($object->civility_id).'</td>';
|
print $formcompany->select_civility($object->civility_id).'</td>';
|
||||||
@ -1266,7 +1266,7 @@ else
|
|||||||
|
|
||||||
// Name
|
// Name
|
||||||
print '<tr><td><label for="name"><span class="fieldrequired">'.$langs->trans('ThirdPartyName').'</span></label></td>';
|
print '<tr><td><label for="name"><span class="fieldrequired">'.$langs->trans('ThirdPartyName').'</span></label></td>';
|
||||||
print '<td colspan="3"><input type="text" size="40" maxlength="60" name="nom" id="name" value="'.dol_escape_htmltag($object->name).'" autofocus="autofocus"></td></tr>';
|
print '<td colspan="3"><input type="text" size="60" maxlength="128" name="nom" id="name" value="'.dol_escape_htmltag($object->name).'" autofocus="autofocus"></td></tr>';
|
||||||
|
|
||||||
// Prefix
|
// Prefix
|
||||||
if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
|
if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user