rebalanceIncreasedCredit: set billId and credId in __INTERNAL_TRIGGER_STACK row
This commit is contained in:
parent
84d913836e
commit
031c248b74
@ -7,7 +7,7 @@ CREATE TRIGGER rebalanceIncreasedCredit
|
||||
BEGIN
|
||||
|
||||
INSERT INTO __INTERNAL_TRIGGER_STACK
|
||||
SELECT t.ROWID, NEW.value, ca.difference,
|
||||
SELECT t.ROWID, t.billId, t.credId,
|
||||
min(ca.difference, NEW.value - OLD.value)
|
||||
FROM Transfer t
|
||||
JOIN CurrentArrears ca ON t.billId = ca.billId
|
||||
|
Loading…
Reference in New Issue
Block a user