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:
parent
9b302372f3
commit
681db369e7
4 changed files with 39 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue