Revision 7ad94275
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
bin/mozilla/sepa.pl | ||
---|---|---|
8 | 8 |
use SL::Chart; |
9 | 9 |
use SL::CT; |
10 | 10 |
use SL::Form; |
11 |
use SL::GenericTranslations; |
|
11 | 12 |
use SL::ReportGenerator; |
12 | 13 |
use SL::SEPA; |
13 | 14 |
use SL::SEPA::XML; |
... | ... | |
41 | 42 |
|
42 | 43 |
my $bank_account_label_sub = sub { $locale->text('Account number #1, bank code #2, #3', $_[0]->{account_number}, $_[0]->{bank_code}, $_[0]->{bank}) }; |
43 | 44 |
|
45 |
my $translation_list = GenericTranslations->list(translation_type => 'sepa_remittance_info_pfx'); |
|
46 |
my %translations = map { ( ($_->{language_id} || 'default') => $_->{translation} ) } @{ $translation_list }; |
|
47 |
|
|
48 |
foreach my $invoice (@{ $invoices }) { |
|
49 |
my $prefix = $translations{ $invoice->{language_id} } || $translations{default} || $::locale->text('Invoice'); |
|
50 |
$prefix .= ' ' unless $prefix =~ m/ $/; |
|
51 |
$invoice->{reference_prefix} = $prefix; |
|
52 |
} |
|
53 |
|
|
44 | 54 |
$form->header(); |
45 | 55 |
print $form->parse_html_template('sepa/bank_transfer_add', |
46 | 56 |
{ 'INVOICES' => $invoices, |
Auch abrufbar als: Unified diff
Bei SEPA-Überweisungen Verwendungszweke mit "Rechnung" (übersetzt) präfixen