Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d4471ba1

Von Waldemar Toews vor fast 8 Jahren hinzugefügt

  • ID d4471ba11547d627732bf78d12e673c8ebd1bb7b
  • Vorgänger 84fedf96
  • Nachfolger 9463aaaa

Kommentarzeile bei der Bankeinzug via SEPA für überschrittene Fälligkeit.

Bei der Erstellung der Bankeinzug via SEPA soll geprüft werden, ob das
Fälligkeitsdatum überschritten ist. Erstellung unterbinden und
Kommentar ausgeben.

Unterschiede anzeigen:

locale/de/all
1887 1887
  'No sections created yet'     => 'Keine Abschnitte erstellt',
1888 1888
  'No sections have been created so far.' => 'Bisher wurden noch keine Abschnitte angelegt.',
1889 1889
  'No sections have been created yet.' => 'Es wurden noch keine Abschnitte angelegt.',
1890
  'No SEPA Direct Debit can be created since the due date of this invoice has been exceeded.' => 'Zu dieser Rechnung kann keine SEPA-Lastschrift erstellt werden, da das Fälligkeitsdatum überschritten wurde.',
1890 1891
  'No shipto selected to delete' => 'Keine Lieferadresse zum Löschen ausgewählt',
1891 1892
  'No start date given, setting to #1' => 'Kein Startdatum gegeben, setze Startdatum auf #1',
1892 1893
  'No such job #1 in the database.' => 'Hintergrund-Job #1 existiert nicht mehr.',
templates/webpages/sepa/bank_transfer_add.html
1 1
[%- USE T8 %]
2 2
[%- USE L %]
3
[% USE HTML %][% USE LxERP %]
3
[% USE HTML %][% USE LxERP %][%- USE JavaScript -%]
4 4
[% IF vc == 'vendor' %]
5 5
 [% SET is_vendor = 1 %]
6 6
 [% SET arap = 'ap' %]
......
39 39
     <th class="listheading" align="right">[% 'Open amount' | $T8 %]</th>
40 40
     <th class="listheading" align="right">[% 'Invoice Date' | $T8 %]</th>
41 41
     <th class="listheading" align="right">[% 'Due Date' | $T8 %]</th>
42
     <th class="listheading">[% 'Payment Terms' | $T8 %]</th>
42 43
     <th class="listheading">[% 'Purpose' | $T8 %]</th>
43 44
     <th class="listheading" align="right">[% 'Bank transfer amount' | $T8 %]</th>
44 45
     <th class="listheading" align="right">[% 'Payment type' | $T8 %]</th>
......
52 53
     <input type="hidden" id="skonto_amount_[% loop.count %]" name="skonto_amount_[% loop.count %]" value="[% LxERP.format_amount(invoice.skonto_amount, 2) %]">
53 54

  
54 55

  
55
     <tr class="listrow[% IF !invoice.vc_bank_info_ok && invoice.checked %]_error[% END %]">
56
     <tr class="listrow[% loop.count % 2 %]">
56 57
      <td align="center">
57
       [%- IF invoice.vc_bank_info_ok %]
58
       [%- IF invoice.vc_bank_info_ok && (invoice.vc_bank_info_ok != '2') %]
58 59
        <input type="checkbox" name="bank_transfers[].selected" value="1"[% IF invoice.checked %] checked[% END %]>
59 60
       [%- END %]
60 61
      </td>
......
64 65
         [%- GET HTML.escape(invoice.vcname);
65 66
             SET previous_vcname = invoice.vcname;
66 67
             IF !invoice.vc_bank_info_ok;
67
               IF invoice.checked;
68
                 GET ' <sup>(2)</sup>';
69
               ELSE;
70
                 GET ' <sup>(1)</sup>';
71
               END;
68
               GET ' <sup>(1)</sup>';
72 69
               SET show_vc_bank_info_footnote = '1';
70
             ELSIF invoice.vc_bank_info_ok == '2';
71
               GET ' <sup>(2)</sup>';
72
               SET show_vc_bank_info_footnote = '2';
73 73
             END; -%]
74 74
        </a>
75 75
       [%- END -%]
......
85 85
      <td align="right">[% LxERP.format_amount(invoice.open_amount-invoice.open_sepa_transfer_amount, 2) %]</td>
86 86
      <td align="right">[% invoice.transdate %]</td>
87 87
      <td align="right">[% invoice.duedate %]</td>
88
      <td align="left">[% HTML.escape(invoice.pt_description) %]</td>
88 89
      <td>
89 90
    [% IF INSTANCE_CONF.get_sepa_reference_add_vc_vc_id %]
90 91
       [%- SET reference = invoice.reference_prefix _ invoice.invnumber _ invoice.reference_prefix_vc _ invoice.vc_vc_id %]
......
116 117
     [% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %]
117 118
    [%- END %]
118 119
   </p>
119

  
120
  [%- IF !is_vendor %]
120 121
   <p>
121 122
    <sup>(2)</sup>
122
    [%- IF is_vendor %]
123
     [%- 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %]
124
     [% "The required information consists of the IBAN and the BIC." | $T8 %]
125
     [% LxERP.t8("Additionally the invoice is not marked for direct debit and would have been checked automatically had the bank information been entered.") %]
126
    [%- ELSE %]
127
     [%- 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %]
128
     [% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %]
129
     [% LxERP.t8("Additionally the invoice is marked for direct debit and would have been checked automatically had the bank information been entered.") %]
130
    [%- END %]
123
    [%- 'No SEPA Direct Debit can be created since the due date of this invoice has been exceeded.' | $T8 %]
131 124
   </p>
132 125
  [%- END %]
126
  [%- END %]
133 127

  
134 128
  <p>
135 129
   <input type="submit" class="submit" name="action_bank_transfer_create" value="[% 'Step 2' | $T8 %]">
......
140 134
 </form>
141 135

  
142 136
 <script type="text/javascript">
143
  <!--
144
    $(function() {
145
      $("#select_all").checkall('INPUT[name="bank_transfers[].selected"]');
146
    });
147
    -->
148

  
149
$( ".type_target" ).change(function() {
150
  type_id = $(this).attr('id');
151
  var id = type_id.match(/\d*$/);
152
  // alert("found id " + id);
153
  if ( $(this).val() == "without_skonto" ) {
154
      $('#' + id).val( $('#invoice_open_amount_' + id).val() );
155
  } else if ( $(this).val() == "difference_as_skonto" ) {
156
      $('#' + id).val( $('#invoice_open_amount_' + id).val() );
157
  } else if ( $(this).val() == "with_skonto_pt" ) {
158
            $('#' + id).val( $('#amount_less_skonto_' + id).val() );
159
  }
160
});
161

  
137
  $(function() {
138
    kivi.Sepa.initBankTransferAdd('[% JavaScript.escape(vc) %]');
139
  });
162 140
 </script>

Auch abrufbar als: Unified diff