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 =
|
my $description =
|
||||||
$quantity == 1
|
$quantity == 1
|
||||||
? $_->{description}
|
? $_->{description}
|
||||||
: sprintf("[%sx %.2f] %s", $quantity, abs($_->{amount}), $_->{description});
|
: sprintf("%s [%sx %.2f]", $_->{description}, $quantity, abs($_->{amount}));
|
||||||
|
|
||||||
push @s, sprintf(
|
push @s, sprintf(
|
||||||
"%-12s %4s EUR %5.2f # %s",
|
"%-12s %4s %3d %5.2f %s",
|
||||||
$_->{user},
|
$_->{user},
|
||||||
($total > 0 ? 'GAIN' : $total < 0 ? 'LOSE' : ''),
|
($total > 0 ? 'GAIN' : $total < 0 ? 'LOSE' : ''),
|
||||||
|
$quantity,
|
||||||
abs($total),
|
abs($total),
|
||||||
$description
|
$description
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue