handle negative due numbers when gathering existing cards
This commit is contained in:
parent
bee0eb1264
commit
5ac3fb5514
@ -17,8 +17,8 @@ select
|
||||
when 0 then (
|
||||
case
|
||||
odue
|
||||
when 0 then due
|
||||
else odue
|
||||
when 0 then max(0, due)
|
||||
else max(odue, 0)
|
||||
end
|
||||
)
|
||||
else null
|
||||
|
Loading…
Reference in New Issue
Block a user