X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=templates%2Fwebpages%2Fir%2Fform_header.html;h=75ffde5d4a4c062d3a5a3cb6b815c377a7450438;hb=108f7a8c7ba3137f0e0bcf5142b0269dd25b1115;hp=c0f39c76035d02ded2de08b50e03d275fc74ab4a;hpb=fa7fc7eeb3ca718914affee06c0629a08d571288;p=kivitendo-erp.git
diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html
index c0f39c760..75ffde5d4 100644
--- a/templates/webpages/ir/form_header.html
+++ b/templates/webpages/ir/form_header.html
@@ -2,6 +2,8 @@
[%- USE HTML %]
[%- USE LxERP %]
[%- USE L %]
+
[% title %]
+
[%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_name _ ')' %]
@@ -20,8 +22,7 @@
-
-
[% title %]
+
[%- INCLUDE 'common/flash.html' %]
[%- INCLUDE 'generic/set_longdescription.html' %]
@@ -33,7 +34,10 @@
[% 'WebDAV' | $T8 %]
[%- END %]
[%- IF id %]
+ [%- IF AUTH.assert('record_links', 1) %]
[% 'Linked Records' | $T8 %]
+ [%- END %]
+ [% LxERP.t8('Transactions') %]
[%- END %]
@@ -59,7 +63,6 @@
onChange = "document.getElementById('update_button').click();" -%]
-
@@ -79,6 +82,23 @@
[% LxERP.format_amount(creditremaining,0 ,'0') %]
+[%- IF invoice_obj.sepa_exports.as_list.size %]
+
+ [% LxERP.t8("SEPA exports") %]
+
+ [% FOREACH export = invoice_obj.sepa_exports.as_list %]
+ [% HTML.escape(export.id) %]
+ [% UNLESS loop.last %], [% END %]
+ [% END %]
+
+
+[%- END %]
+[%- IF business %]
+
+ [% 'Vendor type' | $T8 %]
+ [% business %]; [% 'Trade Discount' | $T8 %] [% LxERP.format_amount(tradediscount * 100) %] %
+
+[%- END %]
[% 'Record in' | $T8 %]
[% selectAP %]
@@ -149,7 +169,7 @@
[% 'Credit Note Date' | $T8 %]
- [% L.date_tag('invdate', invdate, onChange='set_duedate(this)') %]
+ [% L.date_tag('invdate', invdate) %]
[%- ELSE %]
@@ -158,11 +178,14 @@
[% 'Invoice Date' | $T8 %]
- [% L.date_tag('invdate', invdate, onChange='set_duedate(this)') %]
+ [% L.date_tag('invdate', invdate, onChange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")') %]
[% 'Due Date' | $T8 %]
- [% L.date_tag('duedate', duedate) %]
+
+ [% L.date_tag('duedate', duedate) %]
+ [% HTML.escape(duedate) %]
+
[%- END %]
@@ -211,18 +234,6 @@
[% ELSE %]
[% END %]
});
- function set_duedate() {
- $.ajax({
- url: 'ir.pl?action=get_duedate_vendor',
- data: {
- invdate: $('#invdate').val(),
- vendor_id: $('input[name="vendor_id"]').val(),
- old_duedate: $('#duedate').val(),
- },
- dataType: 'text',
- success: function (data) { $('#duedate').val(data); }
- })
- }
//-->