Revision 09685616
Von Moritz Bunkus vor fast 16 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
1493 | 1493 |
|
1494 | 1494 |
map { $ap->{$_} = $form->format_amount(\%myconfig, $ap->{$_}, 2) } qw(netamount tax amount paid due); |
1495 | 1495 |
|
1496 |
$ap->{type} = |
|
1497 |
$ap->{invoice} ? $locale->text("Invoice (one letter abbreviation)") : |
|
1498 |
$locale->text("AP Transaction (abbreviation)"); |
|
1496 |
my $is_storno = $ap->{storno} && $ap->{storno_id}; |
|
1497 |
my $has_storno = $ap->{storno} && !$ap->{storno_id}; |
|
1498 |
|
|
1499 |
if ($ap->{invoice}) { |
|
1500 |
$ap->{type} = |
|
1501 |
$has_storno ? $locale->text("Invoice with Storno (abbreviation)") |
|
1502 |
: $is_storno ? $locale->text("Storno (one letter abbreviation)") |
|
1503 |
: $locale->text("Invoice (one letter abbreviation)"); |
|
1504 |
} else { |
|
1505 |
$ap->{type} = |
|
1506 |
$has_storno ? $locale->text("AP Transaction with Storno (abbreviation)") |
|
1507 |
: $is_storno ? $locale->text("AP Transaction Storno (one letter abbreviation)") |
|
1508 |
: $locale->text("AP Transaction (abbreviation)"); |
|
1509 |
} |
|
1499 | 1510 |
|
1500 | 1511 |
my $row = { }; |
1501 | 1512 |
|
Auch abrufbar als: Unified diff
Bei Kreditorenbuchungsberichten in der Typ-Spalte auch Stornos gesondert ausweisen.