diff --git a/htdocs/adherents/admin/website.php b/htdocs/adherents/admin/website.php
index 8b32e79526d..4df95e06e52 100644
--- a/htdocs/adherents/admin/website.php
+++ b/htdocs/adherents/admin/website.php
@@ -231,7 +231,7 @@ print '';
if (!empty($conf->global->MEMBER_ENABLE_PUBLIC)) {
print ' ';
//print $langs->trans('FollowingLinksArePublic').' ';
- print img_picto('', 'globe').' '.$langs->trans('BlankSubscriptionForm').': ';
+ print img_picto('', 'globe').' '.$langs->trans('BlankSubscriptionForm').' ';
if (!empty($conf->multicompany->enabled)) {
$entity_qr = '?entity='.$conf->entity;
} else {
@@ -243,7 +243,11 @@ if (!empty($conf->global->MEMBER_ENABLE_PUBLIC)) {
$urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
//$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current
- print ''.$urlwithroot.'/public/members/new.php'.$entity_qr.' ';
+ print '
';
+ print ajax_autoselect('publicurlmember');
}
// End of page
diff --git a/htdocs/contrat/services_list.php b/htdocs/contrat/services_list.php
index 0d295357c09..a85c46209ec 100644
--- a/htdocs/contrat/services_list.php
+++ b/htdocs/contrat/services_list.php
@@ -129,21 +129,21 @@ $staticcontratligne = new ContratLigne($db);
$companystatic = new Societe($db);
$arrayfields = array(
- 'c.ref'=>array('label'=>$langs->trans("Contract"), 'checked'=>1, 'position'=>80),
- 'p.description'=>array('label'=>$langs->trans("Service"), 'checked'=>1, 'position'=>80),
- 's.nom'=>array('label'=>$langs->trans("ThirdParty"), 'checked'=>1, 'position'=>90),
- 'cd.tva_tx'=>array('label'=>$langs->trans("VAT"), 'checked'=>0, 'position'=>100),
- 'cd.subprice'=>array('label'=>$langs->trans("PriceUHT"), 'checked'=>0, 'position'=>105),
- 'cd.qty'=>array('label'=>$langs->trans("Qty"), 'checked'=>0, 'position'=>108),
- 'cd.total_ht'=>array('label'=>$langs->trans("TotalHT"), 'checked'=>0, 'position'=>109),
- 'cd.total_tva'=>array('label'=>$langs->trans("TotalVAT"), 'checked'=>0, 'position'=>110),
- 'cd.date_ouverture_prevue'=>array('label'=>$langs->trans("DateStartPlannedShort"), 'checked'=>(($mode == "" || $mode == -1) || $mode == "0"), 'position'=>150),
- 'cd.date_ouverture'=>array('label'=>$langs->trans("DateStartRealShort"), 'checked'=>(($mode == "" || $mode == -1) || $mode > 0), 'position'=>160),
- 'cd.date_fin_validite'=>array('label'=>$langs->trans("DateEndPlannedShort"), 'checked'=>(($mode == "" || $mode == -1) || $mode < 5), 'position'=>170),
- 'cd.date_cloture'=>array('label'=>$langs->trans("DateEndRealShort"), 'checked'=>(($mode == "" || $mode == -1) || $mode >= 5), 'position'=>180),
+ 'c.ref'=>array('label'=>"Contract", 'checked'=>1, 'position'=>80),
+ 'p.description'=>array('label'=>"Service", 'checked'=>1, 'position'=>80),
+ 's.nom'=>array('label'=>"ThirdParty", 'checked'=>1, 'position'=>90),
+ 'cd.tva_tx'=>array('label'=>"VATRate", 'checked'=>-1, 'position'=>100),
+ 'cd.subprice'=>array('label'=>"PriceUHT", 'checked'=>-1, 'position'=>105),
+ 'cd.qty'=>array('label'=>"Qty", 'checked'=>-1, 'position'=>108),
+ 'cd.total_ht'=>array('label'=>"TotalHT", 'checked'=>-1, 'position'=>109),
+ 'cd.total_tva'=>array('label'=>"TotalVAT", 'checked'=>-1, 'position'=>110),
+ 'cd.date_ouverture_prevue'=>array('label'=>"DateStartPlannedShort", 'checked'=>(($mode == "" || $mode == -1) || $mode == "0"), 'position'=>150),
+ 'cd.date_ouverture'=>array('label'=>"DateStartRealShort", 'checked'=>(($mode == "" || $mode == -1) || $mode > 0), 'position'=>160),
+ 'cd.date_fin_validite'=>array('label'=>"DateEndPlannedShort", 'checked'=>(($mode == "" || $mode == -1) || $mode < 5), 'position'=>170),
+ 'cd.date_cloture'=>array('label'=>"DateEndRealShort", 'checked'=>(($mode == "" || $mode == -1) || $mode >= 5), 'position'=>180),
//'cd.datec'=>array('label'=>$langs->trans("DateCreation"), 'checked'=>0, 'position'=>500),
- 'cd.tms'=>array('label'=>$langs->trans("DateModificationShort"), 'checked'=>0, 'position'=>500),
- 'status'=>array('label'=>$langs->trans("Status"), 'checked'=>1, 'position'=>1000)
+ 'cd.tms'=>array('label'=>"DateModificationShort", 'checked'=>0, 'position'=>500),
+ 'status'=>array('label'=>"Status", 'checked'=>1, 'position'=>1000)
);
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_array_fields.tpl.php';
@@ -515,6 +515,12 @@ if (!empty($arrayfields['c.ref']['checked'])) {
if (!empty($arrayfields['p.description']['checked'])) {
print_liste_field_titre($arrayfields['p.description']['label'], $_SERVER["PHP_SELF"], "p.description", "", $param, "", $sortfield, $sortorder);
}
+if (!empty($arrayfields['cd.tva_tx']['checked'])) {
+ print_liste_field_titre($arrayfields['cd.tva_tx']['label'], $_SERVER["PHP_SELF"], "cd.tva_tx", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
+}
+if (!empty($arrayfields['cd.subprice']['checked'])) {
+ print_liste_field_titre($arrayfields['cd.subprice']['label'], $_SERVER["PHP_SELF"], "cd.subprice", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
+}
if (!empty($arrayfields['cd.qty']['checked'])) {
print_liste_field_titre($arrayfields['cd.qty']['label'], $_SERVER["PHP_SELF"], "cd.qty", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
}
@@ -524,12 +530,6 @@ if (!empty($arrayfields['cd.total_ht']['checked'])) {
if (!empty($arrayfields['cd.total_tva']['checked'])) {
print_liste_field_titre($arrayfields['cd.total_tva']['label'], $_SERVER["PHP_SELF"], "cd.total_tva", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
}
-if (!empty($arrayfields['cd.tva_tx']['checked'])) {
- print_liste_field_titre($arrayfields['cd.tva_tx']['label'], $_SERVER["PHP_SELF"], "cd.tva_tx", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
-}
-if (!empty($arrayfields['cd.subprice']['checked'])) {
- print_liste_field_titre($arrayfields['cd.subprice']['label'], $_SERVER["PHP_SELF"], "cd.subprice", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
-}
if (!empty($arrayfields['s.nom']['checked'])) {
print_liste_field_titre($arrayfields['s.nom']['label'], $_SERVER["PHP_SELF"], "s.nom", "", $param, "", $sortfield, $sortorder);
}
@@ -578,6 +578,14 @@ if (!empty($arrayfields['p.description']['checked'])) {
print '';
}
// detail lines
+if (!empty($arrayfields['cd.tva_tx']['checked'])) {
+ print '';
+ print ' ';
+}
+if (!empty($arrayfields['cd.subprice']['checked'])) {
+ print '';
+ print ' ';
+}
if (!empty($arrayfields['cd.qty']['checked'])) {
print '';
print ' ';
@@ -590,14 +598,6 @@ if (!empty($arrayfields['cd.total_tva']['checked'])) {
print '';
print ' ';
}
-if (!empty($arrayfields['cd.tva_tx']['checked'])) {
- print '';
- print ' ';
-}
-if (!empty($arrayfields['cd.subprice']['checked'])) {
- print '';
- print ' ';
-}
// Third party
if (!empty($arrayfields['s.nom']['checked'])) {
print '';
@@ -669,7 +669,7 @@ if (!empty($arrayfields['status']['checked'])) {
'4&filter=expired'=>$langs->trans("ServiceStatusLate"),
'5'=>$langs->trans("ServiceStatusClosed")
);
- print $form->selectarray('search_status', $arrayofstatus, (strstr($search_status, ',') ?-1 : $search_status), 1, 0, '', 0, 0, 0, '', 'maxwidth100onsmartphone');
+ print $form->selectarray('search_status', $arrayofstatus, (strstr($search_status, ',') ?-1 : $search_status), 1, 0, 0, '', 0, 0, 0, '', 'maxwidth100');
print ' ';
}
// Action column
@@ -736,38 +736,6 @@ while ($i < min($num, $limit)) {
}
}
- if (!empty($arrayfields['cd.qty']['checked'])) {
- print '';
- print $obj->qty;
- print ' ';
- if (!$i) {
- $totalarray['nbfield']++;
- }
- }
- if (!empty($arrayfields['cd.total_ht']['checked'])) {
- print '';
- print price($obj->total_ht);
- print ' ';
- if (!$i) {
- $totalarray['nbfield']++;
- }
- if (!$i) {
- $totalarray['pos'][$totalarray['nbfield']] = 'cd.total_ht';
- }
- $totalarray['val']['cd.total_ht'] += $obj->total_ht;
- }
- if (!empty($arrayfields['cd.total_tva']['checked'])) {
- print '';
- print price($obj->total_tva);
- print ' ';
- if (!$i) {
- $totalarray['nbfield']++;
- }
- if (!$i) {
- $totalarray['pos'][$totalarray['nbfield']] = 'cd.total_tva';
- }
- $totalarray['val']['cd.total_tva'] += $obj->total_tva;
- }
if (!empty($arrayfields['cd.tva_tx']['checked'])) {
print '';
print price2num($obj->tva_tx).'%';
@@ -784,11 +752,42 @@ while ($i < min($num, $limit)) {
$totalarray['nbfield']++;
}
}
-
+ if (!empty($arrayfields['cd.qty']['checked'])) {
+ print ' ';
+ print $obj->qty;
+ print ' ';
+ if (!$i) {
+ $totalarray['nbfield']++;
+ }
+ }
+ if (!empty($arrayfields['cd.total_ht']['checked'])) {
+ print '';
+ print ''.price($obj->total_ht).' ';
+ print ' ';
+ if (!$i) {
+ $totalarray['nbfield']++;
+ }
+ if (!$i) {
+ $totalarray['pos'][$totalarray['nbfield']] = 'cd.total_ht';
+ }
+ $totalarray['val']['cd.total_ht'] += $obj->total_ht;
+ }
+ if (!empty($arrayfields['cd.total_tva']['checked'])) {
+ print '';
+ print ''.price($obj->total_tva).' ';
+ print ' ';
+ if (!$i) {
+ $totalarray['nbfield']++;
+ }
+ if (!$i) {
+ $totalarray['pos'][$totalarray['nbfield']] = 'cd.total_tva';
+ }
+ $totalarray['val']['cd.total_tva'] += $obj->total_tva;
+ }
// Third party
if (!empty($arrayfields['s.nom']['checked'])) {
- print '';
+ print ' ';
print $companystatic->getNomUrl(1, 'customer', 28);
print ' ';
if (!$i) {
diff --git a/htdocs/langs/en_US/members.lang b/htdocs/langs/en_US/members.lang
index 7f36f759bb1..2ab2fb87270 100644
--- a/htdocs/langs/en_US/members.lang
+++ b/htdocs/langs/en_US/members.lang
@@ -144,6 +144,7 @@ DescADHERENT_EMAIL_TEMPLATE_MEMBER_VALIDATION=Email template to use to send emai
DescADHERENT_EMAIL_TEMPLATE_SUBSCRIPTION=Email template to use to send email to a member on new subscription recording
DescADHERENT_EMAIL_TEMPLATE_REMIND_EXPIRATION=Email template to use to send email reminder when subscription is about to expire
DescADHERENT_EMAIL_TEMPLATE_CANCELATION=Email template to use to send email to a member on member cancelation
+DescADHERENT_EMAIL_TEMPLATE_EXCLUSION=Email template to use to send email to a member on member exclusion
DescADHERENT_MAIL_FROM=Sender Email for automatic emails
DescADHERENT_ETIQUETTE_TYPE=Format of labels page
DescADHERENT_ETIQUETTE_TEXT=Text printed on member address sheets
diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php
index 1ffd1563838..e348ec33370 100644
--- a/htdocs/societe/consumption.php
+++ b/htdocs/societe/consumption.php
@@ -379,7 +379,7 @@ if (empty($elementTypeArray) && !$object->client && !$object->fournisseur) {
// Define type of elements
$typeElementString = $form->selectarray("type_element", $elementTypeArray, GETPOST('type_element'), $showempty, 0, 0, '', 0, 0, $disabled, '', 'maxwidth150onsmartphone');
-$button = ' ';
+$button = ' ';
$param = '';
$param .= "&sref=".urlencode($sref);
@@ -643,10 +643,10 @@ if ($sql_select) {
if ($type_element == 'invoice' && $objp->doc_type == Facture::TYPE_CREDIT_NOTE) {
$objp->prod_qty = -($objp->prod_qty);
}
- print ''.$objp->prod_qty.' ';
+ print ''.$objp->prod_qty.' ';
$total_qty += $objp->prod_qty;
- print ''.price($objp->total_ht).' ';
+ print ''.price($objp->total_ht).' ';
$total_ht += $objp->total_ht;
print ''.price($objp->total_ht / (empty($objp->prod_qty) ? 1 : $objp->prod_qty)).' ';