Revision aa574b2a
Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt
bin/mozilla/ar.pl | ||
---|---|---|
1198 | 1198 |
my $is_storno = $ar->{storno} && $ar->{storno_id}; |
1199 | 1199 |
my $has_storno = $ar->{storno} && !$ar->{storno_id}; |
1200 | 1200 |
|
1201 |
$ar->{type} = |
|
1202 |
$has_storno ? $locale->text("Invoice with Storno (abbreviation)") : |
|
1203 |
$is_storno ? $locale->text("Storno (one letter abbreviation)") : |
|
1204 |
$ar->{amount} < 0 ? $locale->text("Credit note (one letter abbreviation)") : |
|
1205 |
$ar->{invoice} ? $locale->text("Invoice (one letter abbreviation)") : |
|
1206 |
$locale->text("AR Transaction (abbreviation)"); |
|
1201 |
if ($ar->{type} eq 'invoice_for_advance_payment') { |
|
1202 |
$ar->{type} = |
|
1203 |
$has_storno ? $locale->text("Invoice for Advance Payment with Storno (abbreviation)") : |
|
1204 |
$is_storno ? $locale->text("Storno (one letter abbreviation)") : |
|
1205 |
$locale->text("Invoice for Advance Payment (one letter abbreviation)"); |
|
1206 |
|
|
1207 |
} else { |
|
1208 |
$ar->{type} = |
|
1209 |
$has_storno ? $locale->text("Invoice with Storno (abbreviation)") : |
|
1210 |
$is_storno ? $locale->text("Storno (one letter abbreviation)") : |
|
1211 |
$ar->{amount} < 0 ? $locale->text("Credit note (one letter abbreviation)") : |
|
1212 |
$ar->{invoice} ? $locale->text("Invoice (one letter abbreviation)") : |
|
1213 |
$locale->text("AR Transaction (abbreviation)"); |
|
1214 |
} |
|
1207 | 1215 |
|
1208 | 1216 |
map { $ar->{$_} = $form->format_amount(\%myconfig, $ar->{$_}, 2) } qw(netamount tax amount paid due marge_total marge_percent); |
1209 | 1217 |
|
Auch abrufbar als: Unified diff
Anzahlungs-Rg.: Typ in Bericht anzeigen