Prepare for future removal of support for unbalanced transactions
Don't worry, that won't happen for at least months. First we'll just log warnings for a while.
This commit is contained in:
parent
507d368947
commit
65566349f6
4 changed files with 55 additions and 25 deletions
|
@ -72,6 +72,8 @@ sub checkout($self, $user) {
|
|||
|
||||
my %deltas;
|
||||
for my $entry (@$entries) {
|
||||
$entry->sanity_check;
|
||||
|
||||
$entry->user($user);
|
||||
|
||||
$deltas{$entry->{user}} //= RevBank::Amount->new(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue