forked from Wavyzz/dolibarr
Fix amount on renewal for membership
This commit is contained in:
@@ -775,10 +775,6 @@ if ($rowid > 0) {
|
||||
print "</table>\n";
|
||||
print '</div>';
|
||||
print '</form>';
|
||||
|
||||
if ($num > $limit) {
|
||||
print_barre_liste('', $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, '');
|
||||
}
|
||||
} else {
|
||||
dol_print_error($db);
|
||||
}
|
||||
|
||||
@@ -1579,6 +1579,9 @@ if ($source == 'member' || $source == 'membersubscription') {
|
||||
if (empty($amount) && !GETPOST('newamount', 'alpha')) {
|
||||
$_GET['newamount'] = $member->last_subscription_amount;
|
||||
}
|
||||
if (!empty($member->last_subscription_amount) && !GETPOSTISSET('newamount') && is_numeric($amount)) {
|
||||
$amount = max($member->last_subscription_amount, $amount);
|
||||
}
|
||||
}
|
||||
|
||||
if ($member->type) {
|
||||
|
||||
Reference in New Issue
Block a user