diff --git a/htdocs/admin/accountant.php b/htdocs/admin/accountant.php
index 7a436c5a363..c8c082db6ae 100644
--- a/htdocs/admin/accountant.php
+++ b/htdocs/admin/accountant.php
@@ -128,7 +128,7 @@ print '
| ';
print '';
- print '';
- print ' ';
+ print ' ';
+ print '';
print ' ';
@@ -1002,13 +1013,14 @@ else
// Zip / Town
print ' | / | ';
- print $formcompany->select_ziptown((isset($_POST["zipcode"]) ?GETPOST("zipcode") : $object->zip), 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6).' ';
- print $formcompany->select_ziptown((isset($_POST["town"]) ?GETPOST("town") : $object->town), 'town', array('zipcode', 'selectcountry_id', 'state_id'));
+ print $formcompany->select_ziptown((GETPOSTISSET("zipcode") ? GETPOST("zipcode") : $object->zip), 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6).' ';
+ print $formcompany->select_ziptown((GETPOSTISSET("town") ? GETPOST("town") : $object->town), 'town', array('zipcode', 'selectcountry_id', 'state_id'));
print ' | ';
// Country
print ' | ';
- print $form->select_country(isset($_POST["country_id"]) ?GETPOST("country_id") : $object->country_id, 'country_id');
+ print img_picto('', 'globe-americas', 'class="paddingrightonly"');
+ print $form->select_country(GETPOSTISSET("country_id") ? GETPOST("country_id") : $object->country_id, 'country_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' | ';
@@ -1029,19 +1041,29 @@ else
}
// Phone
- print ' | '.img_picto('', 'object_phoning').' '.$form->editfieldkey('PhonePro', 'phone_pro', GETPOST('phone_pro', 'alpha'), $object, 0).' | ';
- print ' | ';
- print ''.img_picto('', 'object_phoning').' '.$form->editfieldkey('PhonePerso', 'fax', GETPOST('phone_perso', 'alpha'), $object, 0).' | ';
- print ' | ';
+ print ' | '.$form->editfieldkey('PhonePro', 'phone_pro', GETPOST('phone_pro', 'alpha'), $object, 0).' | ';
+ print '';
+ print img_picto('', 'object_phoning');
+ print ' | ';
+ print ''.$form->editfieldkey('PhonePerso', 'fax', GETPOST('phone_perso', 'alpha'), $object, 0).' | ';
+ print '';
+ print img_picto('', 'object_phoning');
+ print ' | ';
- print ' | '.img_picto('', 'object_phoning_mobile').' '.$form->editfieldkey('PhoneMobile', 'phone_mobile', GETPOST('phone_mobile', 'alpha'), $object, 0, 'string', '').' | ';
- print ' | ';
- print ''.img_picto('', 'object_phoning_fax').' '.$form->editfieldkey('Fax', 'fax', GETPOST('fax', 'alpha'), $object, 0).' | ';
- print ' | ';
+ print ' | '.$form->editfieldkey('PhoneMobile', 'phone_mobile', GETPOST('phone_mobile', 'alpha'), $object, 0, 'string', '').' | ';
+ print '';
+ print img_picto('', 'object_phoning_mobile');
+ print ' | ';
+ print ''.$form->editfieldkey('Fax', 'fax', GETPOST('fax', 'alpha'), $object, 0).' | ';
+ print '';
+ print img_picto('', 'object_phoning_fax');
+ print ' | ';
// EMail
- print ' | '.img_picto('', 'object_email').' '.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (!empty($conf->global->SOCIETE_EMAIL_MANDATORY))).' | ';
- print ' | ';
+ print ' | '.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (!empty($conf->global->SOCIETE_EMAIL_MANDATORY))).' | ';
+ print '';
+ print img_picto('', 'object_email');
+ print ' | ';
if (!empty($conf->mailing->enabled))
{
$langs->load("mails");
diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index 7bbf7b6475c..20dbdf18fd3 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -667,7 +667,7 @@ abstract class CommonObject
$namecoords .= $this->getFullName($langs, 1).' '.$coords;
// hideonsmatphone because copyToClipboard call jquery dialog that does not work with jmobile
$out .= '';
- $out .= img_picto($langs->trans("Address"), 'object_address.png');
+ $out .= img_picto($langs->trans("Address"), 'map-marker-alt');
$out .= ' ';
}
$out .= dol_print_address($coords, 'address_'.$htmlkey.'_'.$this->id, $this->element, $this->id, 1, ', '); $outdone++;
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 9e5584bf7ae..94e9af511ea 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -3143,8 +3143,8 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
'1downarrow', '1uparrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected',
'address', 'bank_account', 'barcode', 'bank', 'bookmark', 'bom', 'building', 'cash-register', 'check', 'close_title', 'company', 'contact', 'cubes',
'delete', 'dolly', 'dollyrevert', 'edit', 'ellipsis-h', 'external-link-alt', 'external-link-square-alt',
- 'filter', 'file-code', 'file-export', 'file-import', 'file-upload', 'folder', 'folder-open', 'grip', 'grip_title', 'help', 'language', 'list', 'listlight', 'lot',
- 'money-bill-alt', 'mrp', 'note', 'stock',
+ 'filter', 'file-code', 'file-export', 'file-import', 'file-upload', 'folder', 'folder-open', 'globe', 'globe-americas', 'grip', 'grip_title', 'help', 'language', 'list', 'listlight', 'lot',
+ 'map-marker-alt', 'money-bill-alt', 'mrp', 'note', 'stock',
'object_accounting', 'object_action', 'object_account', 'object_barcode', 'object_bom',
'object_category', 'object_bookmark', 'object_bug', 'object_dolly', 'object_dollyrevert', 'object_generic', 'object_folder',
'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
@@ -3153,10 +3153,10 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
'object_lot', 'object_mrp', 'object_payment', 'object_product', 'object_propal', 'object_supplier_proposal', 'object_service', 'object_stock',
'object_paragraph', 'object_poll', 'object_printer', 'object_project', 'object_projectpub', 'object_propal', 'object_resource', 'object_rss', 'object_projecttask',
'object_technic', 'object_ticket', 'object_trip', 'object_user', 'object_group', 'object_member', 'object_other',
- 'object_phoning', 'object_phoning_fax', 'object_email',
+ 'object_phoning', 'object_phoning_mobile', 'object_phoning_fax', 'object_email',
'off', 'on',
'paiment', 'play', 'playdisabled', 'poll', 'printer', 'product', 'propal', 'resize', 'service', 'stats', 'trip',
- 'note', 'setup', 'sign-out', 'split', 'switch_off', 'switch_on', 'tools', 'unlink', 'uparrow', 'user', 'wrench', 'globe',
+ 'note', 'setup', 'sign-out', 'split', 'switch_off', 'switch_on', 'tools', 'unlink', 'uparrow', 'user', 'wrench',
'jabber', 'skype', 'twitter', 'facebook', 'linkedin', 'instagram', 'snapchat', 'youtube', 'google-plus-g', 'whatsapp',
'chevron-left', 'chevron-right', 'chevron-down', 'chevron-top',
'home', 'companies', 'products', 'commercial', 'invoicing', 'accountancy', 'preview', 'project', 'projectpub', 'hrm', 'members', 'ticket', 'generic',
@@ -3194,7 +3194,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
'other'=>'square',
'playdisabled'=>'play', 'poll'=>'check-double', 'preview'=>'binoculars', 'project'=>'sitemap', 'projectpub'=>'sitemap', 'projecttask'=>'tasks', 'propal'=>'file-signature',
'resize'=>'crop', 'supplier_proposal'=>'file-signature',
- 'payment'=>'money-check-alt', 'phoning'=>'phone', 'phoning_fax'=>'fax', 'printer'=>'print', 'product'=>'cube', 'service'=>'concierge-bell',
+ 'payment'=>'money-check-alt', 'phoning'=>'phone', 'phoning_mobile'=>'mobile-alt', 'phoning_fax'=>'fax', 'printer'=>'print', 'product'=>'cube', 'service'=>'concierge-bell',
'resource'=>'laptop-house',
'stock'=>'box-open', 'stats' => 'chart-bar', 'split'=>'code-branch', 'technic'=>'cogs', 'ticket'=>'ticket-alt',
'title_setup'=>'tools', 'title_accountancy'=>'money-check-alt', 'title_bank'=>'university', 'title_hrm'=>'umbrella-beach',
@@ -3271,10 +3271,11 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
'address'=>'#37a', 'building'=>'#37a', 'bom'=>'#a69944',
'companies'=>'#37a', 'company'=>'#37a', 'contact'=>'#37a', 'dynamicprice'=>'#a69944',
'edit'=>'#444', 'note'=>'#999', 'error'=>'', 'listlight'=>'#999',
- 'dolly'=>'#a69944', 'dollyrevert'=>'#a69944', 'lot'=>'#a69944', 'mrp'=>'#a69944', 'product'=>'#a69944', 'service'=>'#a69944', 'stock'=>'#a69944',
+ 'dolly'=>'#a69944', 'dollyrevert'=>'#a69944', 'lot'=>'#a69944',
+ 'map-marker-alt'=>'#aaa', 'mrp'=>'#a69944', 'product'=>'#a69944', 'service'=>'#a69944', 'stock'=>'#a69944',
'other'=>'#ddd',
'playdisabled'=>'#ccc', 'printer'=>'#444', 'projectpub'=>'#986c6a', 'resize'=>'#444', 'rss'=>'#cba',
- 'stats'=>'#444', 'switch_off'=>'#999', 'uparrow'=>'#555', 'warning'=>''
+ 'stats'=>'#444', 'switch_off'=>'#999', 'uparrow'=>'#555', 'globe-americas'=>'#aaa'
);
if (isset($arrayconvpictotocolor[$pictowithouttext])) {
$facolor = $arrayconvpictotocolor[$pictowithouttext];
diff --git a/htdocs/core/tpl/objectline_view.tpl.php b/htdocs/core/tpl/objectline_view.tpl.php
index 57e4c14e5d5..28b6c6f0dbd 100644
--- a/htdocs/core/tpl/objectline_view.tpl.php
+++ b/htdocs/core/tpl/objectline_view.tpl.php
@@ -284,11 +284,19 @@ if ($line->special_code == 3) { ?>
{
$tooltiponprice = $langs->transcountry("TotalHT", $mysoc->country_code).'='.price($line->total_ht);
$tooltiponprice .= ' '.$langs->transcountry("TotalVAT", ($senderissupplier ? $object->thirdparty->country_code : $mysoc->country_code)).'='.price($line->total_tva);
- if (price2num($line->total_localtax1)) $tooltiponprice .= ' '.$langs->transcountry("TotalLT1", ($senderissupplier ? $object->thirdparty->country_code : $mysoc->country_code)).'='.price($line->total_localtax1);
- if (price2num($line->total_localtax2)) $tooltiponprice .= ' '.$langs->transcountry("TotalLT2", ($senderissupplier ? $object->thirdparty->country_code : $mysoc->country_code)).'='.price($line->total_localtax2);
+ if (! $senderissupplier && is_object($object->thirdparty)) {
+ if ($object->thirdparty->useLocalTax(1)) {
+ if (price2num($line->total_localtax1)) $tooltiponprice .= ' '.$langs->transcountry("TotalLT1", ($senderissupplier ? $object->thirdparty->country_code : $mysoc->country_code)).'='.price($line->total_localtax1);
+ else $tooltiponprice .= ' '.$langs->transcountry("TotalLT1", ($senderissupplier ? $object->thirdparty->country_code : $mysoc->country_code)).'='.$langs->trans("NotUsedForThisCustomer").'';
+ }
+ if ($object->thirdparty->useLocalTax(1)) {
+ if (price2num($line->total_localtax2)) $tooltiponprice .= ' '.$langs->transcountry("TotalLT2", ($senderissupplier ? $object->thirdparty->country_code : $mysoc->country_code)).'='.price($line->total_localtax2);
+ else $tooltiponprice .= ' '.$langs->transcountry("TotalLT2", ($senderissupplier ? $object->thirdparty->country_code : $mysoc->country_code)).'='.$langs->trans("NotUsedForThisCustomer").'';
+ }
+ }
$tooltiponprice .= ' '.$langs->transcountry("TotalTTC", $mysoc->country_code).'='.price($line->total_ttc);
- print '';
+ print '';
}
print price($line->total_ht);
if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index c34ea6a9e96..7cb9b21791a 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -1030,3 +1030,4 @@ DeleteFileHeader=Confirm file delete
DeleteFileText=Do you really want delete this file?
ShowOtherLanguages=Show other languages
SwitchInEditModeToAddTranslation=Switch in edit mode to add translations for this language
+NotUsedForThisCustomer=Not used for this customer
\ No newline at end of file
diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php
index 11b901a9c66..0665cc48e06 100644
--- a/htdocs/product/stock/card.php
+++ b/htdocs/product/stock/card.php
@@ -293,13 +293,19 @@ if ($action == 'create')
// Country
print '| '.$langs->trans('Country').' | ';
+ print img_picto('', 'globe-americas', 'class="paddingright"');
print $form->select_country((!empty($object->country_id) ? $object->country_id : $mysoc->country_code), 'country_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' | ';
// Phone / Fax
- print '| '.img_picto('', 'object_phoning').' '.$form->editfieldkey('Phone', 'phone', '', $object, 0).' | | ';
- print '| '.img_picto('', 'object_phoning_fax').' '.$form->editfieldkey('Fax', 'fax', '', $object, 0).' | | ';
+ print '| '.$form->editfieldkey('Phone', 'phone', '', $object, 0).' | ';
+ print img_picto('', 'object_phoning', 'class="paddingright"');
+ print ' | ';
+ print '| '.$form->editfieldkey('Fax', 'fax', '', $object, 0).' | ';
+ print '';
+ print img_picto('', 'object_phoning_fax', 'class="paddingright"');
+ print ' | ';
// Status
print '| '.$langs->trans("Status").' | ';
@@ -395,7 +401,7 @@ else
print '';
print ' ';
- print ' ';
+ print '';
// Parent entrepot
$parentwarehouse = new Entrepot($db);
@@ -429,7 +435,7 @@ else
print '';
print ' ';
- print ' ';
+ print '';
// Value
print '| '.$langs->trans("EstimatedStockValueShort").' | ';
@@ -723,13 +729,18 @@ else
// Country
print ' | | '.$langs->trans('Country').' | ';
+ print img_picto('', 'globe-americas', 'class="paddingright"');
print $form->select_country($object->country_id ? $object->country_id : $mysoc->country_code, 'country_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' | ';
// Phone / Fax
- print '| '.img_picto('', 'object_phoning').' '.$form->editfieldkey('Phone', 'phone', '', $object, 0).' | | ';
- print '| '.img_picto('', 'object_phoning_fax').' '.$form->editfieldkey('Fax', 'fax', '', $object, 0).' | | ';
+ print '| '.$form->editfieldkey('Phone', 'phone', '', $object, 0).' | ';
+ print img_picto('', 'object_phoning', 'class="paddingright"');
+ print ' | ';
+ print '| '.$form->editfieldkey('Fax', 'fax', '', $object, 0).' | ';
+ print img_picto('', 'object_phoning_fax', 'class="paddingright"');
+ print ' | ';
// Status
print '| '.$langs->trans("Status").' | ';
diff --git a/htdocs/product/stock/movement_list.php b/htdocs/product/stock/movement_list.php
index e2cd50fd2e2..944462ccdfc 100644
--- a/htdocs/product/stock/movement_list.php
+++ b/htdocs/product/stock/movement_list.php
@@ -574,7 +574,7 @@ if ($resql)
print '';
print ' ';
- print ' ';
+ print '';
print '';
@@ -602,7 +602,7 @@ if ($resql)
print '';
print ' ';
- print ' ';
+ print '';
// Value
print '| '.$langs->trans("EstimatedStockValueShort").' | ';
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 20ada9bfbaf..8800bd887a1 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1330,6 +1330,7 @@ else
// Country
print ' | | '.$form->editfieldkey('Country', 'selectcountry_id', '', $object, 0).' | ';
+ print img_picto('', 'globe-americas', 'class="paddingrightonly"');
print $form->select_country((GETPOST('country_id') != '' ?GETPOST('country_id') : $object->country_id));
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' | ';
@@ -1977,6 +1978,7 @@ else
// Country
print '| '.$form->editfieldkey('Country', 'selectcounty_id', '', $object, 0).' | ';
+ print img_picto('', 'globe-americas', 'class="paddingrightonly"');
print $form->select_country((GETPOSTISSET('country_id') ? GETPOST('country_id') : $object->country_id), 'country_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' | ';
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index 89d803781ba..e495a3bb4bc 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -210,7 +210,9 @@ textarea.cke_source:focus
{
box-shadow: none;
}
-
+div#cke_dp_desc {
+ margin-top: 5px;
+}
textarea {
border-radius: 0;
border-top:solid 1px rgba(0,0,0,.2);
diff --git a/htdocs/theme/eldy/main_menu_fa_icons.inc.php b/htdocs/theme/eldy/main_menu_fa_icons.inc.php
index e2cd9d339c5..5b9395fbc04 100644
--- a/htdocs/theme/eldy/main_menu_fa_icons.inc.php
+++ b/htdocs/theme/eldy/main_menu_fa_icons.inc.php
@@ -145,7 +145,7 @@ div.mainmenu.generic4::before {
/* Define color of some picto */
-.fa-phone, .fa-fax {
+.fa-phone, .fa-mobile-alt, .fa-fax {
opacity: 0.5;
color: #440;
}
| | |