Closed (fixed)
Project:
Commerce Funds
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2019 at 10:42 UTC
Updated:
6 Apr 2019 at 21:04 UTC
Jump to comment: Most recent



Comments
Comment #2
marinex commentedComment #3
marinex commentedI thinks that problem is in the function _commerce_funds_rules_update_account_balance() because:
global $user is admin when admin manually confirm payment for marinex order.
I suggest changing to a local variable: $user = user_load($order->uid);
Comment #4
marinex commentedComment #6
aporieI have updated the rules so it updates the account of the user which actually creates the order.
For the specific scenario where the deposit is paid with a second-time payment method (such as cash or bank transfer) I think you can play with rules to make something like that :
- Modify the actual rule for deposit putting a restriction on these payment methods.
- Create a new rule which triggers "Update user account balance" on order update (like, paid) when payment method = these payment methods.
Comment #7
aporie