Fix amnt can be paid for member as membersubscription
This commit is contained in:
parent
bf52b54db6
commit
d840593ed7
@ -1753,7 +1753,7 @@ if ($action != 'dopayment') {
|
|||||||
print '<br><br><span class="amountpaymentcomplete size15x">'.$langs->trans("DonationPaid").'</span>';
|
print '<br><br><span class="amountpaymentcomplete size15x">'.$langs->trans("DonationPaid").'</span>';
|
||||||
} else {
|
} else {
|
||||||
// Membership can be paid and we still allow to make renewal
|
// Membership can be paid and we still allow to make renewal
|
||||||
if ($source == 'membersubscription' && $object->datefin > dol_now()) {
|
if (($source == 'member' || $source == 'membersubscription') && $object->datefin > dol_now()) {
|
||||||
$langs->load("members");
|
$langs->load("members");
|
||||||
print '<br><span class="amountpaymentcomplete size15x">'.$langs->trans("MembershipPaid", dol_print_date($object->datefin, 'day')).'</span><br>';
|
print '<br><span class="amountpaymentcomplete size15x">'.$langs->trans("MembershipPaid", dol_print_date($object->datefin, 'day')).'</span><br>';
|
||||||
print '<div class="opacitymedium margintoponly">'.$langs->trans("PaymentWillBeRecordedForNextPeriod").'</div>';
|
print '<div class="opacitymedium margintoponly">'.$langs->trans("PaymentWillBeRecordedForNextPeriod").'</div>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user