';
print "\n";
+ // Show the table of all available membership types. If not, show a form (as the default was for Dolibarr <=16.0)
+ $skiptable = getDolGlobalInt('MEMBER_SKIP_TABLE');
+ print '
\n";
- // Show the table of all available membership types. If not, show a form (as the default was for Dolibarr <=16.0)
- $skiptable = getDolGlobalInt('MEMBER_SKIP_TABLE');
- print '
';
diff --git a/htdocs/langs/en_US/members.lang b/htdocs/langs/en_US/members.lang
index 3a8b3bba7d7..3005c83e03e 100644
--- a/htdocs/langs/en_US/members.lang
+++ b/htdocs/langs/en_US/members.lang
@@ -27,7 +27,7 @@ MembersListNotUpToDate=List of valid members with out-of-date contribution
MembersListExcluded=List of excluded members
MembersListResiliated=List of terminated members
MembersListQualified=List of qualified members
-MembersShowMembershipTypesTable=Show a table of all available membership types (if no, show directly the registration form)
+MembersShowMembershipTypesTable=Show a table to select its membership types before the registration form (if no, show directly the registration form)
MembersShowVotesAllowed=Show whether votes are allowed, in the table of membership types
MenuMembersToValidate=Draft members
MenuMembersValidated=Validated members
@@ -227,7 +227,7 @@ MembershipPaid=Membership paid for current period (until %s)
YouMayFindYourInvoiceInThisEmail=You may find your invoice attached to this email
XMembersClosed=%s member(s) closed
XExternalUserCreated=%s external user(s) created
-ForceMemberNature=Force member nature (Individual or Corporation)
+ForceMemberNature=Force member nature (Individual or Legal Entity)
CreateDolibarrLoginDesc=The creation of a user login for members allows them to connect to the application. Depending on the authorizations granted, they will be able, for example, to consult or modify their file themselves.
CreateDolibarrThirdPartyDesc=A third party is the legal entity that will be used on the invoice if you decide to generate invoice for each contribution. You will be able to create it later during the process of recording the contribution.
MemberFirstname=Member firstname
diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php
index 8bbf2b9b505..4c142758c3b 100644
--- a/htdocs/public/members/new.php
+++ b/htdocs/public/members/new.php
@@ -715,7 +715,7 @@ if (getDolGlobalString('MEMBER_SKIP_TABLE') || getDolGlobalString('MEMBER_NEWFOR
$listetype = $adht->liste_array(1);
print img_picto('', $adht->picto, 'class="pictofixedwidth"');
if (count($listetype)) {
- print $form->selectarray("typeid", $listetype, (GETPOSTINT('typeid') ? GETPOSTINT('typeid') : $typeid), (count($listetype) > 1 ? 1 : 0), 0, 0, '', 0, 0, 0, '', 'minwidth200', 1);
+ print $form->selectarray("typeid", $listetype, (GETPOSTINT('typeid') ? GETPOSTINT('typeid') : $typeid), (count($listetype) > 1 ? 1 : 0), 0, 0, '', 0, 0, 0, '', 'minwidth150 maxwidth300 widthcentpercentminusx', 1);
} else {
print ''.$langs->trans("NoTypeDefinedGoToSetup").'';
}
@@ -834,7 +834,7 @@ if (getDolGlobalString('MEMBER_SKIP_TABLE') || getDolGlobalString('MEMBER_NEWFOR
// Title
if (getDolGlobalString('MEMBER_NEWFORM_ASK_TITLE')) {
- print '
'."\n";
// Public
if (getDolGlobalString('MEMBER_PUBLIC_ENABLED')) {
@@ -938,8 +938,8 @@ if (getDolGlobalString('MEMBER_SKIP_TABLE') || getDolGlobalString('MEMBER_NEWFOR
// Comments
print '
';
- print '
'.$langs->trans("Comments").'
';
- print '
';
+ print '
';
+ print '
';
print '
'."\n";
// Add specific fields used by Dolibarr foundation for example
@@ -995,6 +995,11 @@ if (getDolGlobalString('MEMBER_SKIP_TABLE') || getDolGlobalString('MEMBER_NEWFOR
$adht->fetch($typeid);
$caneditamount = $adht->caneditamount;
$amountbytype = $adht->amountByType(1); // Load the array of amount per type
+ foreach ($amountbytype as $k => $v) {
+ $amount = max(0, (float) $v, (float) getDolGlobalInt("MEMBER_MIN_AMOUNT"));
+ $amountbytype[$k] = $amount;
+ }
+
$amountbytype_json = json_encode($amountbytype);
$caneditamountbytype = $adht->caneditamountByType(1); // Load the array of caneditamount per type
$caneditamountbytype_json = json_encode($caneditamountbytype);
@@ -1053,9 +1058,10 @@ if (getDolGlobalString('MEMBER_SKIP_TABLE') || getDolGlobalString('MEMBER_NEWFOR
print '