[% USE T8 %] [% USE L %] [% USE P %]

[% title %]

[% L.hidden_tag("action", nextsub) %] [% L.hidden_tag("sort", "transdate") %]
[% 'Customer' | $T8 %]
[% 'Customer' | $T8 %] [% L.input_tag("customer", customer, class="initial_focus") %]
[% 'Contact Person' | $T8 %] [% L.input_tag("cp_name", '') %]
[% 'Department' | $T8 %] [% L.select_tag('department_id', ALL_DEPARTMENTS, title_key = 'description', with_empty = 1) %]
[% 'Employee' | $T8 %]
[% 'Employee' | $T8 %] [% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1) %]
[% 'Salesman' | $T8 %] [% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1) %]
[% 'Miscellaneous' | $T8 %]
[% 'Transaction description' | $T8 %] [% L.input_tag("transaction_description", "") %]
[% 'Payment Term' | $T8 %] [% L.select_tag('payment_id', ALL_PAYMENT_TERMS, title_key = 'description', with_empty = 1) %]
[% 'Notes' | $T8 %] [% L.input_tag("notes", "") %]
[% 'Part Description' | $T8 %] [% L.input_tag("parts_description", "") %]
[% 'Part Number' | $T8 %] [% L.input_tag("parts_partnumber", "") %]
[% IF ALL_BUSINESS_TYPES.as_list.size > 0 %] [% END %] [% IF INSTANCE_CONF.get_email_journal %] [% END %] [% IF CT_CUSTOM_VARIABLES.size %] [% CT_CUSTOM_VARIABLES_FILTER_CODE %] [% END %]
[% 'Record numbers and dates' | $T8 %]
[% 'Invoice Number' | $T8 %] [% L.input_tag("invnumber", "") %]
[% 'Order Number' | $T8 %] [% L.input_tag("ordnumber", "") %]
[% 'Customer Order Number' | $T8 %] [% L.input_tag("cusordnumber", "") %]
[% 'Project Number' | $T8 %] [% P.project.picker("project_id", project_id, active="both", valid="both") %]
[% 'Customer type' | $T8 %] [% L.select_tag("business_id", ALL_BUSINESS_TYPES, with_empty=1, title_key="description") %]
[% 'Show only marked as paid invoices' | $T8 %] [% L.checkbox_tag('show_marked_as_closed') %]
[% 'Show only not mailed invoices' | $T8 %] [% L.checkbox_tag('show_not_mailed') %]
[% 'Invoice Date' | $T8 %] [% L.date_tag('transdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %]
[% 'Due Date' | $T8 %] [% L.date_tag('duedatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('duedateto') %]
[% 'Date Paid' | $T8 %] [% L.date_tag('datepaidfrom') %] [% 'Bis' | $T8 %] [% L.date_tag('datepaidto') %]
[% 'Steuersatz' | $T8 %] [% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description') %]
[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]
[% 'Shipping Address' | $T8 %]
[% 'Name' | $T8 %] [% L.input_tag("shiptoname", "") %]
[% 'Department 1' | $T8 %] [% L.input_tag("shiptodepartment_1", "") %]
[% 'Department 2' | $T8 %] [% L.input_tag("shiptodepartment_2", "") %]
[% 'Street' | $T8 %] [% L.input_tag("shiptostreet", "") %]
[% 'Zipcode' | $T8 %] [% L.input_tag("shiptozipcode", "") %]
[% 'City' | $T8 %] [% L.input_tag("shiptocity", "") %]
[% 'Country' | $T8 %] [% L.input_tag("shiptocountry", "") %]
[% 'Status' | $T8 %]
[% 'Open' | $T8 %]
[% 'Closed' | $T8 %]

[% 'Include in Report' | $T8 %]

[% 'Status' | $T8 %]

[% 'Numbers' | $T8 %]

[% 'Date' | $T8 %]

[% 'Customer' | $T8 %]

[% 'Shipping Address' | $T8 %]

[% 'Amounts' | $T8 %]

[% 'Miscellaneous' | $T8 %]

[% IF INSTANCE_CONF.get_doc_storage -%] [% 'Attachments' | $T8 %] [% END-%]
[% 'Positions' | $T8 %]

[% 'Employee' | $T8 %]

[% 'Custom Variables' | $T8 %]

[% CT_CUSTOM_VARIABLES_INCLUSION_CODE %]