Revision eee33fab
SL/Controller/BankTransaction.pm | ||
---|---|---|
250 | 250 |
sort_dir => $::form->{sort_dir}, |
251 | 251 |
); |
252 | 252 |
|
253 |
my $ui_tab = $::instance_conf->get_no_bank_proposals ? 0 |
|
254 |
: scalar(@{ $proposals }) > 0 ? 1 |
|
255 |
: 0; |
|
256 |
|
|
253 | 257 |
$::request->layout->add_javascripts("kivi.BankTransaction.js"); |
254 | 258 |
$self->render('bank_transactions/list', |
255 | 259 |
title => t8('Bank transactions MT940'), |
256 | 260 |
BANK_TRANSACTIONS => $bank_transactions, |
257 | 261 |
PROPOSALS => $proposals, |
258 | 262 |
bank_account => $bank_account, |
259 |
ui_tab => scalar(@{ $proposals }) > 0 ? 1 : 0,
|
|
263 |
ui_tab => $ui_tab,
|
|
260 | 264 |
); |
261 | 265 |
} |
262 | 266 |
|
bin/mozilla/sepa.pl | ||
---|---|---|
603 | 603 |
|
604 | 604 |
my $xml = $sepa_xml->to_xml(); |
605 | 605 |
|
606 |
my $file_extension = $::instance_conf->get_sepa_export_xml ? '.xml' |
|
607 |
: $vc eq 'customer' ? '.cdd' |
|
608 |
: $vc eq 'vendor' ? '.cct' |
|
609 |
: undef; |
|
610 |
|
|
611 |
die "invalid state for vendor/customer suffix" unless $file_extension; |
|
612 |
|
|
606 | 613 |
print $cgi->header('-type' => 'application/octet-stream', |
607 |
'-content-disposition' => 'attachment; filename="SEPA_' . $message_id . ($vc eq 'customer' ? '.cdd' : '.cct') . '"',
|
|
614 |
'-content-disposition' => 'attachment; filename="SEPA_' . $message_id . $file_extension . '"',
|
|
608 | 615 |
'-content-length' => length $xml); |
609 | 616 |
print $xml; |
610 | 617 |
|
Auch abrufbar als: Unified diff
Logikänderungen für SEPA-Endung und UI-Tab für Proposals