Revision 60b170eb
Von Jan Büren vor fast 7 Jahren hinzugefügt
bin/mozilla/sepa.pl | ||
---|---|---|
607 | 607 |
$main::lxdebug->leave_sub(); |
608 | 608 |
} |
609 | 609 |
|
610 |
sub bank_transfer_undo_sepa_xml { |
|
611 |
$main::lxdebug->enter_sub(); |
|
612 |
|
|
613 |
my $form = $main::form; |
|
614 |
my $locale = $main::locale; |
|
615 |
|
|
616 |
map { SL::SEPA->undo_export('id' => $_); } @{ $form->{ids} || [] }; |
|
617 |
|
|
618 |
$form->{title} = $locale->text('Undo SEPA exports'); |
|
619 |
$form->header(); |
|
620 |
$form->show_generic_information($locale->text('The selected exports have been undone.')); |
|
621 |
|
|
622 |
$main::lxdebug->leave_sub(); |
|
623 |
} |
|
624 |
|
|
610 | 625 |
sub dispatcher { |
611 | 626 |
my $form = $main::form; |
612 | 627 |
|
613 | 628 |
foreach my $action (qw(bank_transfer_create bank_transfer_edit bank_transfer_list |
614 | 629 |
bank_transfer_post_payments bank_transfer_download_sepa_xml |
615 | 630 |
bank_transfer_mark_as_closed_step1 bank_transfer_mark_as_closed_step2 |
616 |
bank_transfer_payment_list_as_pdf)) { |
|
631 |
bank_transfer_payment_list_as_pdf bank_transfer_undo_sepa_xml)) {
|
|
617 | 632 |
if ($form->{"action_${action}"}) { |
618 | 633 |
call_sub($action); |
619 | 634 |
return; |
... | ... | |
697 | 712 |
confirm => [ $params{is_vendor} ? t8('Do you really want to close the selected SEPA exports? No payment will be recorded for bank transfers that haven\'t been marked as executed yet.') |
698 | 713 |
: t8('Do you really want to close the selected SEPA exports? No payment will be recorded for bank collections that haven\'t been marked as executed yet.') ], |
699 | 714 |
], |
715 |
action => [ |
|
716 |
t8('Undo SEPA exports'), |
|
717 |
submit => [ '#form', { action => 'bank_transfer_undo_sepa_xml' } ], |
|
718 |
checks => [ [ 'kivi.check_if_entries_selected', '[name="ids[]"]' ] ], |
|
719 |
confirm => [ t8('Do you really want to undo the selected SEPA exports? You have to reassign the export again.') ], |
|
720 |
], |
|
700 | 721 |
], # end of combobox "Actions" |
701 | 722 |
); |
702 | 723 |
} |
Auch abrufbar als: Unified diff
SEPA-Export rückgängig machen
Noch nicht ausgeführte oder geschloßene SEPA-XML Exports
können wieder rückgängig gemacht werden, sodass der Anwender
hier die Chance hat Metadaten für die Banküberweisungen, z.B. IBAN
oder andere Fehleinträge, z.B Betrag, Termin erneut zu setzen.