X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fir%2Fform_header.html;h=75ffde5d4a4c062d3a5a3cb6b815c377a7450438;hb=e48eb4dc7e721dbdf15417167e9320fd12decf69;hp=362bd89576a85b0d10d8690f29192e75b41bd636;hpb=3624b119556731da41e4ad395491ebb067f26565;p=kivitendo-erp.git
diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html
index 362bd8957..75ffde5d4 100644
--- a/templates/webpages/ir/form_header.html
+++ b/templates/webpages/ir/form_header.html
@@ -22,6 +22,7 @@
+
[%- INCLUDE 'common/flash.html' %]
[%- INCLUDE 'generic/set_longdescription.html' %]
@@ -33,7 +34,9 @@
[% 'WebDAV' | $T8 %]
[%- END %]
[%- IF id %]
+ [%- IF AUTH.assert('record_links', 1) %]
[% 'Linked Records' | $T8 %]
+ [%- END %]
[% LxERP.t8('Transactions') %]
[%- END %]
@@ -60,7 +63,6 @@
onChange = "document.getElementById('update_button').click();" -%]
-
@@ -80,6 +82,17 @@
[% 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 %] |
@@ -156,7 +169,7 @@
[% 'Credit Note Date' | $T8 %] |
- [% L.date_tag('invdate', invdate, onChange='set_duedate(this)') %] |
+ [% L.date_tag('invdate', invdate) %] |
[%- ELSE %]
@@ -165,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 %]
@@ -218,20 +234,6 @@
[% ELSE %]
[% END %]
});
- function set_duedate() {
- setTimeout(function() {
- $.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); }
- })
- }, 0);
- }
//-->