X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=templates%2Fwebpages%2Fsepa%2Fbank_transfer_add.html;h=89c36e38b2f70c3fe89683091393af48e15bed47;hb=108f7a8c7ba3137f0e0bcf5142b0269dd25b1115;hp=4ae82d12d45e21f151b721698659cbc2d755493b;hpb=0e36c22a2610966d3c83957426d0c91b25c65da3;p=kivitendo-erp.git
diff --git a/templates/webpages/sepa/bank_transfer_add.html b/templates/webpages/sepa/bank_transfer_add.html
index 4ae82d12d..89c36e38b 100644
--- a/templates/webpages/sepa/bank_transfer_add.html
+++ b/templates/webpages/sepa/bank_transfer_add.html
@@ -1,4 +1,5 @@
[%- USE T8 %]
+[%- USE L %]
[% USE HTML %][% USE LxERP %]
[% IF vc == 'vendor' %]
[% SET is_vendor = 1 %]
@@ -20,12 +21,12 @@
[% 'Please select the destination bank account for the collections:' | $T8 %]
[%- END %]
- [%- INCLUDE generic/multibox.html
- name = 'bank_account.id',
- DATA = BANK_ACCOUNTS,
- id_key = 'id',
- label_sub = 'bank_account_label',
- -%]
+ [% L.select_tag('bank_account',
+ BANK_ACCOUNTS,
+ title_key='displayable_name',
+ with_empty=0,
+ style='width:450px',
+ ) %]
@@ -36,15 +37,22 @@
+ (2) + [%- IF is_vendor %] + [%- 'No bank information has been entered in this vendor\'s master data entry. You cannot create bank transfers unless you enter bank information.' | $T8 %] + [% "The required information consists of the IBAN and the BIC." | $T8 %] + [% LxERP.t8("Additionally the invoice is not marked for direct debit and would have been checked automatically had the bank information been entered.") %] + [%- ELSE %] + [%- 'No bank information has been entered in this customer\'s master data entry. You cannot create bank collections unless you enter bank information.' | $T8 %] + [% "The required information consists of the IBAN, the BIC, the mandator ID and the mandate's date of signature." | $T8 %] + [% LxERP.t8("Additionally the invoice is marked for direct debit and would have been checked automatically had the bank information been entered.") %] + [%- END %] +
[%- END %]@@ -111,4 +145,18 @@ $("#select_all").checkall('INPUT[name="bank_transfers[].selected"]'); }); --> + +$( ".type_target" ).change(function() { + type_id = $(this).attr('id'); + var id = type_id.match(/\d*$/); + // alert("found id " + id); + if ( $(this).val() == "without_skonto" ) { + $('#' + id).val( $('#invoice_open_amount_' + id).val() ); + } else if ( $(this).val() == "difference_as_skonto" ) { + $('#' + id).val( $('#invoice_open_amount_' + id).val() ); + } else if ( $(this).val() == "with_skonto_pt" ) { + $('#' + id).val( $('#amount_less_skonto_' + id).val() ); + } +}); +