X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fdo%2Fform_header_master.html;h=617a22553e6b2f3a49fb60d2988e1eb90c65f239;hb=c3a2f815a6c8f9b878f9f2a8b7d8a9291b76e1ea;hp=a881a9ca045eb61a35a6ff520023a48568f08b5a;hpb=ce2e13e64bf9de995020cf18fd7ef36f199f018d;p=kivitendo-erp.git diff --git a/templates/webpages/do/form_header_master.html b/templates/webpages/do/form_header_master.html index a881a9ca0..617a22553 100644 --- a/templates/webpages/do/form_header_master.html +++ b/templates/webpages/do/form_header_master.html @@ -16,7 +16,7 @@ setupDateFormat('[% myconfig_dateformat %]', 'Falsches Datumsformat!'); setupPoints('[% myconfig_numberformat %]', 'wrongformat'); - [%- UNLESS closed %] + [%- UNLESS delivered %] Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdate_trigger" }); [%- END %] } @@ -42,7 +42,7 @@ [%- SET the_oldvc = oldvendor %] [%- SET is_customer = '0' %] [%- END %] - [%- IF closed %] + [%- IF delivered %] [%- SET RO = ' readonly' %] [%- SET DISABLED = ' disabled' %] [%- END %] @@ -60,6 +60,8 @@ + + @@ -87,6 +89,9 @@ + + + @@ -101,8 +106,12 @@ [% IF is_customer %]Customer[% ELSE %]Vendor[% END %] - [%- UNLESS !closed && SHOW_VC_DROP_DOWN %] + [%- UNLESS !delivered && SHOW_VC_DROP_DOWN %] +[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [ + { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } }, +] +%] [%- ELSE %] [%- END %] - + [%- IF ALL_CONTACTS.size %] Contact Person - [%- IF closed %] + [%- IF delivered %] [%- IF cp_id == row.cp_id %] [%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%] @@ -136,12 +145,16 @@ [%- END %] +[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [ + { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } }, +] +%] [%- IF ALL_SHIPTO.size %] Shipping Address - [%- IF closed %] + [%- IF delivered %] [%- FOREACH row = ALL_SHIPTO %] [%- IF shipto_id == row.shipto_id %] @@ -191,7 +204,7 @@ Department - [%- IF closed %] + [%- IF delivered %] [%- FOREACH row = ALL_DEPARTMENTS %] [% IF department == row.value %][% HTML.escape(row.description) %]--[% HTML.escape(row.id) %][% END %] @@ -229,24 +242,36 @@ - [%- IF vc == 'customer' %] - [%- ELSE %] + - [%- END %]
- - + [%- IF delivered %] + [%- IF is_customer %] + transferred out + [%- ELSE %] + transferred in + [%- END %] + [%- ELSE %] + [%- IF is_customer %] + not transferred out yet + [%- ELSE %] + not transferred in yet + [%- END %] + [%- END %] + ; [%- IF closed %] - + Closed + [%- ELSE %] + Open [%- END %]
Employee - [%- IF closed %] + [%- IF delivered %] [%- FOREACH row = ALL_EMPLOYEES %] [% IF row.id == employee_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %] @@ -272,7 +297,7 @@
Salesman - [%- IF closed %] + [%- IF delivered %] [%- FOREACH row = ALL_SALESMEN %] [% IF row.id == the_salesman_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %] @@ -310,14 +335,14 @@ - [% UNLESS closed %][% END %] + [% UNLESS delivered %][% END %]
Project Number - [%- IF closed %] + [%- IF delivered %] [%- FOREACH row = ALL_PROJECTS %] [% IF globalproject_id == row.id %][% HTML.escape(row.projectnumber) %][% END %]