mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 18:18:18 +01:00
FIX Filter on member status
This commit is contained in:
@@ -8049,6 +8049,10 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
}
|
||||
if (is_object($object) && $object->element == 'member') {
|
||||
$typeforonlinepayment = 'member';
|
||||
$amounttouse = 0;
|
||||
if (!empty($object->last_subscription_amount)) {
|
||||
$amounttouse = $object->last_subscription_amount;
|
||||
}
|
||||
}
|
||||
if (is_object($object) && $object->element == 'contrat') {
|
||||
$typeforonlinepayment = 'contract';
|
||||
@@ -8056,7 +8060,8 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
if (is_object($object) && $object->element == 'fichinter') {
|
||||
$typeforonlinepayment = 'ficheinter';
|
||||
}
|
||||
$url = getOnlinePaymentUrl(0, $typeforonlinepayment, $substitutionarray['__REF__']);
|
||||
|
||||
$url = getOnlinePaymentUrl(0, $typeforonlinepayment, $substitutionarray['__REF__'], $amounttouse);
|
||||
$paymenturl = $url;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user