@@ -34,8 +48,10 @@
[% 'Vendor' | $T8 %]
[%- INCLUDE 'generic/multibox.html'
+ id = 'vendor',
name = 'vendor',
style = 'width: 250px',
+ class = 'initial_focus',
DATA = ALL_VENDORS,
id_sub = 'vc_keys',
label_key = 'name',
@@ -65,6 +81,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 %]
@@ -135,7 +168,7 @@
[% 'Credit Note Date' | $T8 %]
- [% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', onChange='set_duedate(this)') %]
+ [% L.date_tag('invdate', invdate) %]
[%- ELSE %]
@@ -144,11 +177,14 @@
[% 'Invoice Date' | $T8 %]
- [% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', 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, onBlur='check_right_date_format(this)', cal_align='BL') %]
+
+ [% L.date_tag('duedate', duedate) %]
+ [% HTML.escape(duedate) %]
+
[%- END %]
@@ -158,11 +194,11 @@
[% 'Order Date' | $T8 %]
- [% L.date_tag('orddate', orddate, onBlur='check_right_date_format(this)', cal_align='BL') %]
+ [% L.date_tag('orddate', orddate) %]
[% 'Quotation Date' | $T8 %]
- [% L.date_tag('quodate', quodate, onBlur='check_right_date_format(this)', cal_align='BL') %]
+ [% L.date_tag('quodate', quodate) %]
[% 'Project Number' | $T8 %]
@@ -195,24 +231,8 @@
[% IF creditwarning != '' %]
alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
[% ELSE %]
- focus();
[% END %]
- setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
- setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
});
- 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); }
- })
- }
//-->
-
-
+