Change logging of quantity: replace EUR field
This commit is contained in:
parent
1cbc906f1e
commit
63f81e3711
1 changed files with 3 additions and 2 deletions
|
@ -125,12 +125,13 @@ sub as_loggable {
|
|||
my $description =
|
||||
$quantity == 1
|
||||
? $_->{description}
|
||||
: sprintf("[%sx %.2f] %s", $quantity, abs($_->{amount}), $_->{description});
|
||||
: sprintf("%s [%sx %.2f]", $_->{description}, $quantity, abs($_->{amount}));
|
||||
|
||||
push @s, sprintf(
|
||||
"%-12s %4s EUR %5.2f # %s",
|
||||
"%-12s %4s %3d %5.2f %s",
|
||||
$_->{user},
|
||||
($total > 0 ? 'GAIN' : $total < 0 ? 'LOSE' : ''),
|
||||
$quantity,
|
||||
abs($total),
|
||||
$description
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue