Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 60f784c0

Von Moritz Bunkus vor fast 14 Jahren hinzugefügt

  • ID 60f784c0d41cc5d466873f9a88e3298d5404b100
  • Vorgänger cb4a0a39
  • Nachfolger 32ee774f

Unterscheidung Bankeinzug/Überweisung beim Abschließen

Unterschiede anzeigen:

bin/mozilla/sepa.pl
499 499

  
500 500
  my $form       = $main::form;
501 501
  my $locale     = $main::locale;
502
  my $vc         = $form->{vc} eq 'customer' ? 'customer' : 'vendor';
502 503

  
503 504
  my @export_ids = map { $_->{id} } grep { $_->{selected} } @{ $form->{exports} || [] };
504 505

  
......
508 509

  
509 510
  my @open_export_ids = ();
510 511
  foreach my $id (@export_ids) {
511
    my $export = SL::SEPA->retrieve_export('id' => $id);
512
    my $export = SL::SEPA->retrieve_export('id' => $id, vc => $vc);
512 513
    push @open_export_ids, $id if (!$export->{closed});
513 514
  }
514 515

  
......
518 519

  
519 520
  $form->{title} = $locale->text('Close SEPA exports');
520 521
  $form->header();
521
  print $form->parse_html_template('sepa/bank_transfer_mark_as_closed_step1', { 'OPEN_EXPORT_IDS' => \@open_export_ids });
522
  print $form->parse_html_template('sepa/bank_transfer_mark_as_closed_step1', { 'OPEN_EXPORT_IDS' => \@open_export_ids, vc => $vc });
522 523

  
523 524
  $main::lxdebug->leave_sub();
524 525
}
525 526

  
527
# TODO
526 528
sub bank_transfer_mark_as_closed_step2 {
527 529
  $main::lxdebug->enter_sub();
528 530

  
locale/de/all
556 556
  'Display'                     => 'Anzeigen',
557 557
  'Display file'                => 'Datei anzeigen',
558 558
  'Display options'             => 'Anzeigeoptionen',
559
  'Do you really want to close the following SEPA exports? No payment will be recorded for bank collections that haven\'t been marked as executed yet.' => 'Wollen Sie wirklich die folgenden SEPA-Exporte abschlie?en? F?r ?berweisungen, die noch nicht gebucht wurden, werden dann keine Zahlungen verbucht.',
559 560
  'Do you really want to close the following SEPA exports? No payment will be recorded for bank transfers that haven\'t been marked as executed yet.' => 'Wollen Sie wirklich die folgenden SEPA-Exporte abschlie?en? F?r ?berweisungen, die noch nicht gebucht wurden, werden dann keine Zahlungen verbucht.',
560 561
  'Do you really want to delete AP transaction #1?' => 'Wollen Sie wirklich die Kreditorenbuchung #1 l?schen?',
561 562
  'Do you really want to delete AR transaction #1?' => 'Wollen Sie wirklich die Debitorenbuchung #1 l?schen?',
templates/webpages/sepa/bank_transfer_mark_as_closed_step1.html
6 6

  
7 7
 <form action="sepa.pl" method="post">
8 8
  <p>
9
   [%- 'Do you really want to close the following SEPA exports? No payment will be recorded for bank transfers that haven\'t been marked as executed yet.' | $T8 %]
9
   [%- IF vc == 'vendor' %]
10
    [%- 'Do you really want to close the following SEPA exports? No payment will be recorded for bank transfers that haven\'t been marked as executed yet.' | $T8 %]
11
   [%- ELSE %]
12
    [%- 'Do you really want to close the following SEPA exports? No payment will be recorded for bank collections that haven\'t been marked as executed yet.' | $T8 %]
13
   [%- END %]
10 14
  </p>
11 15

  
12 16
  <p>
......
14 18
   [%- FOREACH id = OPEN_EXPORT_IDS %]
15 19
    [%- UNLESS loop.first %], [%- END %]
16 20
    <input type="hidden" name="open_export_ids[]" value="[% HTML.escape(id) %]">
17
    <a href="sepa.pl?action=bank_transfer_edit&id=[% HTML.url(id) %]">[% HTML.escape(id) %]</a>
21
    <a href="sepa.pl?action=bank_transfer_edit&id=[% HTML.url(id) %]&vc=[% HTML.url(vc) %]">[% HTML.escape(id) %]</a>
18 22
   [%- END %]
19 23
  </p>
20 24

  
......
24 28
  </p>
25 29

  
26 30
  <input type="hidden" name="action" value="dispatcher">
31
  <input type="hidden" name="vc" value="[%- HTML.escape(vc) %]">
27 32
 </form>
28 33

  
29 34
</body>

Auch abrufbar als: Unified diff