You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the max operator in NumScript, it doesn't actually take anything from the source account if the balance is negative, even though I use allowing unbounded overdraft.
To Reproduce
Steps to reproduce the behavior:
send [EUR/2 20] (
source = @somewhere allowing unbounded overdraft
destination = @world
)
send [EUR/2 100] (
source = {
# Due to above @somewhere has a negative balance of -20
max [EUR/2 10] from @somewhere allowing unbounded overdraft
@somewhere_else allowing unbounded overdraft
}
destination = @final_destination
)
Expected behavior
I expect that it will take 10 from @somewhere and 90 from @somewhere_else.
But I observe that 100 is taken from @somewhere
Environment (please complete the following information):
Numary Version v1.10.14
The text was updated successfully, but these errors were encountered:
Thanks! I actually just discovered that the negative balance is not the culprit.
Even if @somewhere has a positive balance it happens. So likely it's the combination of max and allowing unbounded overdraft that is the issue.
With other words, this example suffices to reproduce as well:
Changing max [EUR/2 10] from @somewhere allowing unbounded overdraft to max [EUR/2 10] from @somewhere solves the issue, but is obviously not necessarily what you want.
Describe the bug
When using the max operator in NumScript, it doesn't actually take anything from the source account if the balance is negative, even though I use
allowing unbounded overdraft
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect that it will take 10 from
@somewhere
and 90 from@somewhere_else
.But I observe that 100 is taken from
@somewhere
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: