New command: skim, for adjusting the amount in the cashbox

Generally intended for board members only, so not listed in "help".
This commit is contained in:
Juerd Waalboer 2022-06-11 20:02:42 +02:00
parent 9b302372f3
commit 681db369e7
4 changed files with 39 additions and 1 deletions

View file

@ -38,6 +38,8 @@ sub add_contra($self, $user, $amount, $description) {
};
$self->attribute('changed', 1);
return $self; # for method chaining
}
sub has_attribute($self, $key) {

View file

@ -24,7 +24,7 @@ sub names() {
}
sub balance($username) {
return _read()->{ lc $username }->[1];
return RevBank::Amount->new_from_float( _read()->{ lc $username }->[1] );
}
sub since($username) {