Ditch floating point numbers, use cents instead; bump version to 3.2
This commit is contained in:
parent
9b582d5f9b
commit
38a0229899
17 changed files with 545 additions and 168 deletions
|
@ -63,7 +63,7 @@ sub command {
|
|||
}
|
||||
|
||||
if ($last->has_attribute('is_withdrawal')) {
|
||||
$lhs = abs $last->{amount};
|
||||
$lhs = $last->{amount}->abs->float;
|
||||
$lhs == int $lhs or return REJECT, "Repeat only works on integers.";
|
||||
$cart->delete($last);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue