diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index fab7cfa6fa9..fefee1c07dd 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -540,6 +540,7 @@ if ($object->id > 0) { print ""; print ''; } + // Warehouse if (!empty($conf->stock->enabled) && !empty($conf->global->SOCIETE_ASK_FOR_WAREHOUSE)) { $langs->load('stocks'); @@ -552,11 +553,15 @@ if ($object->id > 0) { if ($action == 'editwarehouse') { $formproduct->formSelectWarehouses($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_warehouse, 'fk_warehouse', 1); } else { + if ($object->fk_warehouse > 0) { + print img_picto('', 'stock', 'class="paddingrightonly"'); + } $formproduct->formSelectWarehouses($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_warehouse, 'none'); } print ''; print ''; } + // Preferred shipping Method if (!empty($conf->global->SOCIETE_ASK_FOR_SHIPPING_METHOD)) { print ''; diff --git a/htdocs/margin/tabs/thirdpartyMargins.php b/htdocs/margin/tabs/thirdpartyMargins.php index 505ff9f9f31..21e922a9fa7 100644 --- a/htdocs/margin/tabs/thirdpartyMargins.php +++ b/htdocs/margin/tabs/thirdpartyMargins.php @@ -113,6 +113,11 @@ if ($socid > 0) { print '
'; print ''; + // Type Prospect/Customer/Supplier + print ''; + if ($object->client) { print ''; - print ''; + print ''; print '
'.$langs->trans('NatureOfThirdParty').''; + print $object->getTypeUrl(1); + print '
'; print $langs->trans('CustomerCode').''; diff --git a/htdocs/product/class/html.formproduct.class.php b/htdocs/product/class/html.formproduct.class.php index 637e186a3f3..5f4f13056a3 100644 --- a/htdocs/product/class/html.formproduct.class.php +++ b/htdocs/product/class/html.formproduct.class.php @@ -340,7 +340,7 @@ class FormProduct print '
'; print $this->selectWarehouses($selected, $htmlname, '', $addempty); print '
'; } else { if ($selected) { diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 07cfd136c18..a2b229147fa 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -2652,23 +2652,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { } print ''; - // Third-Party Type - print ''; - print ''; - if ($action != 'editthirdpartytype' && $user->rights->societe->creer) { - print ''; - } - print '
'.$langs->trans('ThirdPartyType').'id.'">'.img_edit($langs->transnoentitiesnoconv('Edit'), 1).'
'; - print ''; - $html_name = ($action == 'editthirdpartytype') ? 'typent_id' : 'none'; - $formcompany->formThirdpartyType($_SERVER['PHP_SELF'].'?socid='.$object->id, $object->typent_id, $html_name, ''); - print ''; - - // Workforce/Staff - if (empty($conf->global->SOCIETE_DISABLE_WORKFORCE)) { - print ''.$langs->trans("Workforce").''.$object->effectif.''; - } - // Warehouse if (!empty($conf->stock->enabled) && !empty($conf->global->SOCIETE_ASK_FOR_WAREHOUSE)) { $langs->load('stocks'); @@ -2681,6 +2664,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { if ($action == 'editwarehouse') { $formproduct->formSelectWarehouses($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_warehouse, 'fk_warehouse', 1); } else { + if ($object->fk_warehouse > 0) { + print img_picto('', 'stock', 'class="paddingrightonly"'); + } $formproduct->formSelectWarehouses($_SERVER['PHP_SELF'].'?id='.$object->id, $object->fk_warehouse, 'none'); } print ''; @@ -2714,6 +2700,24 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { } } + + // Third-Party Type + print ''; + print ''; + if ($action != 'editthirdpartytype' && $user->rights->societe->creer) { + print ''; + } + print '
'.$langs->trans('ThirdPartyType').'id.'">'.img_edit($langs->transnoentitiesnoconv('Edit'), 1).'
'; + print ''; + $html_name = ($action == 'editthirdpartytype') ? 'typent_id' : 'none'; + $formcompany->formThirdpartyType($_SERVER['PHP_SELF'].'?socid='.$object->id, $object->typent_id, $html_name, ''); + print ''; + + // Workforce/Staff + if (empty($conf->global->SOCIETE_DISABLE_WORKFORCE)) { + print ''.$langs->trans("Workforce").''.$object->effectif.''; + } + // Legal print ''.$langs->trans('JuridicalStatus').''.$object->forme_juridique.''; diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php index 4c5b2b95b8d..cb2802da385 100644 --- a/htdocs/societe/consumption.php +++ b/htdocs/societe/consumption.php @@ -131,6 +131,11 @@ print '
'; print '
'; print ''; +// Type Prospect/Customer/Supplier +print ''; + if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field print ''; } diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php index 0b8376e4f88..60184d4ed15 100644 --- a/htdocs/societe/document.php +++ b/htdocs/societe/document.php @@ -136,6 +136,11 @@ if ($object->id) { print '
'; print '
'.$langs->trans('NatureOfThirdParty').''; +print $object->getTypeUrl(1); +print '
'.$langs->trans('Prefix').''.$object->prefix_comm.'
'; + // Type Prospect/Customer/Supplier + print ''; + // Prefix if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field print ''; diff --git a/htdocs/societe/note.php b/htdocs/societe/note.php index 2ebe97848f2..d4396738966 100644 --- a/htdocs/societe/note.php +++ b/htdocs/societe/note.php @@ -98,6 +98,11 @@ if ($object->id > 0) { print '
'; print '
'.$langs->trans('NatureOfThirdParty').''; + print $object->getTypeUrl(1); + print '
'.$langs->trans('Prefix').''.$object->prefix_comm.'
'; + // Type Prospect/Customer/Supplier + print ''; + if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field print ''; } diff --git a/htdocs/societe/notify/card.php b/htdocs/societe/notify/card.php index 7e4a1084ec1..d62ca943fb1 100644 --- a/htdocs/societe/notify/card.php +++ b/htdocs/societe/notify/card.php @@ -162,6 +162,11 @@ if ($result > 0) { print '
'; print '
'.$langs->trans('NatureOfThirdParty').''; + print $object->getTypeUrl(1); + print '
'.$langs->trans('Prefix').''.$object->prefix_comm.'
'; + // Type Prospect/Customer/Supplier + print ''; + // Prefix if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field print ''; diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index 2d2869fd1cc..93c4fbc2202 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -745,18 +745,20 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' dol_banner_tab($object, 'socid', $linkback, ($user->socid ? 0 : 1), 'rowid', 'nom'); - - if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field - print ''; - } - - //if ($conf->agenda->enabled && $user->rights->agenda->myactions->read) $elementTypeArray['action']=$langs->transnoentitiesnoconv('Events'); - print '
'; print '
'; print '
'.$langs->trans('NatureOfThirdParty').''; + print $object->getTypeUrl(1); + print '
'.$langs->trans('Prefix').''.$object->prefix_comm.'
'.$langs->trans('Prefix').''.$object->prefix_comm.'
'; + // Type Prospect/Customer/Supplier + print ''; + + if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field + print ''; + } + if ($object->client) { print '
'.$langs->trans('NatureOfThirdParty').''; + print $object->getTypeUrl(1); + print '
'.$langs->trans('Prefix').''.$object->prefix_comm.'
'; print $langs->trans('CustomerCode').''; diff --git a/htdocs/societe/project.php b/htdocs/societe/project.php index 1bf43864cdd..038ed7350d5 100644 --- a/htdocs/societe/project.php +++ b/htdocs/societe/project.php @@ -97,6 +97,11 @@ if ($socid) { print '
'; print ''; + // Type Prospect/Customer/Supplier + print ''; + if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field print ''; } diff --git a/htdocs/ticket/list.php b/htdocs/ticket/list.php index 7e5c1aa968f..42445ce1701 100644 --- a/htdocs/ticket/list.php +++ b/htdocs/ticket/list.php @@ -490,6 +490,11 @@ if ($socid && !$projectid && !$project_ref && $user->rights->societe->lire) { print '
'; print '
'.$langs->trans('NatureOfThirdParty').''; + print $object->getTypeUrl(1); + print '
'.$langs->trans('Prefix').''.$object->prefix_comm.'
'; + // Type Prospect/Customer/Supplier + print ''; + // Customer code if ($socstat->client && !empty($socstat->code_client)) { print '
'.$langs->trans('NatureOfThirdParty').''; + print $socstat->getTypeUrl(1); + print '
';