Hi there,

I'm currently struggling with the balance limits settings, and I'm not sure if I'm using the module incorrectly or if there's a bug.

First, while set to "Everyone has the same limits..." (a zero is in the minimum balance) users are still able to complete transactions which give them a negative balance. Is this correct behaviour, or are my setting wrong?

Second, when I switch to "Calculate limits using equations and tokens" the following error is thrown during transactions no matter what I use for equations:

Warning: array_combine(): Both parameters should have an equal number of elements in limits_equations() (line 83 of /var/www/timebank/sites/all/modules/mutual_credit/extras/limits/mcapi_limits.inc).
Warning: strtr(): The second argument is not an array in limits_equations() (line 84 of /var/www/timebank/sites/all/modules/mutual_credit/extras/limits/mcapi_limits.inc).
Warning: strtr(): The second argument is not an array in limits_equations() (line 85 of /var/www/timebank/sites/all/modules/mutual_credit/extras/limits/mcapi_limits.inc).
Warning: array_combine(): Both parameters should have an equal number of elements in limits_equations() (line 83 of /var/www/timebank/sites/all/modules/mutual_credit/extras/limits/mcapi_limits.inc).
Warning: strtr(): The second argument is not an array in limits_equations() (line 84 of /var/www/timebank/sites/all/modules/mutual_credit/extras/limits/mcapi_limits.inc).
Warning: strtr(): The second argument is not an array in limits_equations() (line 85 of /var/www/timebank/sites/all/modules/mutual_credit/extras/limits/mcapi_limits.inc).

Thanks for any advice or help you can offer.

Comments

matslats’s picture

the second message is because of a bug. Please replace line 81 of mcapi_limits.inc with:
array('@trades', '@gross_in', '@gross_out', '@balance', '@volume'),//sorted as declared

matslats’s picture

Status: Active » Postponed (maintainer needs more info)

First, while set to "Everyone has the same limits..." (a zero is in the minimum balance) users are still able to complete transactions which give them a negative balance. Is this correct behaviour, or are my setting wrong?
What you describe is consistent with an 'acknowlegement' type currency which ignores the balance limit settings.
The rc8 version fails to hide the limits settings when your currency is in acknowledgement mode. However the limits are not checked, as the help text explains.
Let me know if this is not the case.

matslats’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)