Merge branch '9.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
d49dd8d593
@ -545,7 +545,7 @@ foreach ($fieldsforcontent as $tmpfieldlist)
|
|||||||
print '<strong>' . $form->textwithpicto($langs->trans("FilesAttachedToEmail"), $tabhelp[$id][$tmpfieldlist], 1, 'help', '', 0, 2, $tmpfieldlist) . '</strong> ';
|
print '<strong>' . $form->textwithpicto($langs->trans("FilesAttachedToEmail"), $tabhelp[$id][$tmpfieldlist], 1, 'help', '', 0, 2, $tmpfieldlist) . '</strong> ';
|
||||||
}
|
}
|
||||||
if ($tmpfieldlist == 'content')
|
if ($tmpfieldlist == 'content')
|
||||||
print $form->textwithpicto($langs->trans("Content"), $tabhelp[$id][$tmpfieldlist], 1, 'help', '', 0, 2, $tmpfieldlist);
|
print $form->textwithpicto($langs->trans("Content"), $tabhelp[$id][$tmpfieldlist], 1, 'help', '', 0, 2, $tmpfieldlist).'<br>';
|
||||||
if ($tmpfieldlist == 'content_lines')
|
if ($tmpfieldlist == 'content_lines')
|
||||||
print $form->textwithpicto($langs->trans("ContentForLines"), $tabhelp[$id][$tmpfieldlist], 1, 'help', '', 0, 2, $tmpfieldlist) . '<br>';
|
print $form->textwithpicto($langs->trans("ContentForLines"), $tabhelp[$id][$tmpfieldlist], 1, 'help', '', 0, 2, $tmpfieldlist) . '<br>';
|
||||||
// Input field
|
// Input field
|
||||||
|
|||||||
@ -156,8 +156,8 @@ DocForAllMembersCards=Generate business cards for all members
|
|||||||
DocForOneMemberCards=Generate business cards for a particular member
|
DocForOneMemberCards=Generate business cards for a particular member
|
||||||
DocForLabels=Generate address sheets
|
DocForLabels=Generate address sheets
|
||||||
SubscriptionPayment=Subscription payment
|
SubscriptionPayment=Subscription payment
|
||||||
LastSubscriptionDate=Latest subscription date
|
LastSubscriptionDate=Date of latest subscription payment
|
||||||
LastSubscriptionAmount=Latest subscription amount
|
LastSubscriptionAmount=Amount of latest subscription
|
||||||
MembersStatisticsByCountries=Members statistics by country
|
MembersStatisticsByCountries=Members statistics by country
|
||||||
MembersStatisticsByState=Members statistics by state/province
|
MembersStatisticsByState=Members statistics by state/province
|
||||||
MembersStatisticsByTown=Members statistics by town
|
MembersStatisticsByTown=Members statistics by town
|
||||||
@ -195,3 +195,4 @@ NoEmailSentToMember=No email sent to member
|
|||||||
EmailSentToMember=Email sent to member at %s
|
EmailSentToMember=Email sent to member at %s
|
||||||
SendReminderForExpiredSubscriptionTitle=Send reminder by email for expired subscription
|
SendReminderForExpiredSubscriptionTitle=Send reminder by email for expired subscription
|
||||||
SendReminderForExpiredSubscription=Send reminder by email to members when subscription is about to expire (parameter is number of days before end of subscription to send the remind. It can be a list of days separated by a semicolon, for example '10;5;0;-5')
|
SendReminderForExpiredSubscription=Send reminder by email to members when subscription is about to expire (parameter is number of days before end of subscription to send the remind. It can be a list of days separated by a semicolon, for example '10;5;0;-5')
|
||||||
|
MembershipPaid=Membership paid for current period (until %s)
|
||||||
@ -1319,6 +1319,13 @@ if ($source == 'membersubscription')
|
|||||||
print '<input type="hidden" name="ref" value="'.dol_escape_htmltag($member->ref).'">';
|
print '<input type="hidden" name="ref" value="'.dol_escape_htmltag($member->ref).'">';
|
||||||
print '</td></tr>'."\n";
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
|
if ($object->datefin > 0)
|
||||||
|
{
|
||||||
|
print '<tr class="CTableRow'.($var?'1':'2').'"><td class="CTableRow'.($var?'1':'2').'">'.$langs->trans("DateEndSubscription");
|
||||||
|
print '</td><td class="CTableRow'.($var?'1':'2').'">'.dol_print_date($member->datefin,'day');
|
||||||
|
print '</td></tr>'."\n";
|
||||||
|
}
|
||||||
|
|
||||||
if ($member->last_subscription_date || $member->last_subscription_amount)
|
if ($member->last_subscription_date || $member->last_subscription_amount)
|
||||||
{
|
{
|
||||||
// Last subscription date
|
// Last subscription date
|
||||||
@ -1589,16 +1596,19 @@ if ($action != 'dopayment')
|
|||||||
{
|
{
|
||||||
print '<br><br><span class="amountpaymentcomplete">'.$langs->trans("InvoicePaid").'</span>';
|
print '<br><br><span class="amountpaymentcomplete">'.$langs->trans("InvoicePaid").'</span>';
|
||||||
}
|
}
|
||||||
elseif ($source == 'membersubscription' && $object->datefin > dol_now())
|
|
||||||
{
|
|
||||||
print '<br><br><span class="amountpaymentcomplete">'.$langs->trans("MembershipPaid").'</span>';
|
|
||||||
}
|
|
||||||
elseif ($source == 'donation' && $object->paid)
|
elseif ($source == 'donation' && $object->paid)
|
||||||
{
|
{
|
||||||
print '<br><br><span class="amountpaymentcomplete">'.$langs->trans("DonationPaid").'</span>';
|
print '<br><br><span class="amountpaymentcomplete">'.$langs->trans("DonationPaid").'</span>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Membership can be paid and we still allow to make renewal
|
||||||
|
if ($source == 'membersubscription' && $object->datefin > dol_now())
|
||||||
|
{
|
||||||
|
$langs->load("members");
|
||||||
|
print '<br><span class="amountpaymentcomplete">'.$langs->trans("MembershipPaid", dol_print_date($object->datefin, 'day')).'</span><br>';
|
||||||
|
}
|
||||||
|
|
||||||
// Buttons for all payments registration methods
|
// Buttons for all payments registration methods
|
||||||
|
|
||||||
if ((empty($paymentmethod) || $paymentmethod == 'paybox') && ! empty($conf->paybox->enabled))
|
if ((empty($paymentmethod) || $paymentmethod == 'paybox') && ! empty($conf->paybox->enabled))
|
||||||
|
|||||||
@ -116,6 +116,10 @@ if ($pageid < 0) $pageid = 0;
|
|||||||
if (($pageid > 0 || $pageref) && $action != 'addcontainer')
|
if (($pageid > 0 || $pageref) && $action != 'addcontainer')
|
||||||
{
|
{
|
||||||
$res = $objectpage->fetch($pageid, ($object->id > 0 ? $object->id : null), $pageref);
|
$res = $objectpage->fetch($pageid, ($object->id > 0 ? $object->id : null), $pageref);
|
||||||
|
if ($res == 0)
|
||||||
|
{
|
||||||
|
$res = $objectpage->fetch($pageid, ($object->id > 0 ? $object->id : null), null, $pageref);
|
||||||
|
}
|
||||||
|
|
||||||
// Check if pageid is inside the new website, if not we reset param pageid
|
// Check if pageid is inside the new website, if not we reset param pageid
|
||||||
if ($res >= 0 && $object->id > 0)
|
if ($res >= 0 && $object->id > 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user