Signed-off-by: Brice Gelineau <brice.gelineau@polytechnique.org>
* Search:
- #1574: Correctly displays State corps -GLN
* Search:
- #1574: Correctly displays State corps -GLN
+ * XnetEvent:
+ - #1577: Fixes alternative payements given by admins -GLN
+
From 1.1.4 branch:
* XnetEvent:
From 1.1.4 branch:
* XnetEvent:
$amount = strtr(Env::v('montant'), ',', '.');
XDB::execute("UPDATE group_event_participants
SET paid = paid + {?}
$amount = strtr(Env::v('montant'), ',', '.');
XDB::execute("UPDATE group_event_participants
SET paid = paid + {?}
- WHERE uid = {?} AND eid = {?} AND item_id = 1",
+ WHERE uid = {?} AND eid = {?} AND nb > 0
+ ORDER BY item_id ASC
+ LIMIT 1",
$amount, $member->uid, $evt['eid']);
subscribe_lists_event($member->uid, $evt['short_name'], 1, $amount);
}
$amount, $member->uid, $evt['eid']);
subscribe_lists_event($member->uid, $evt['short_name'], 1, $amount);
}
if ($m['montant']) {
$evt['money'] = true;
}
if ($m['montant']) {
$evt['money'] = true;
}
- $evt['paid'] = $m['paid'];
+ $evt['paid'] += $m['paid'];
$evt['notify_payment'] = $evt['notify_payment'] || $m['notify_payment'];
}
$evt['notify_payment'] = $evt['notify_payment'] || $m['notify_payment'];
}