[% USE HTML %] [% USE LxERP %] [% USE T8 %] [% USE L %] [% USE P %]

[% IF workflow_email_journal_id; LxERP.t8("Email Journal Workflow") _ " - "; END; %] [% title | html %]

[%- INCLUDE 'common/flash.html' %] [% FOREACH name IN [ 'id', 'closedto', 'locked', 'storno', 'storno_id', 'previous_id', 'previous_gldate' ] %] [% L.hidden_tag(name, $name) %] [% END %] [% IF !id %] [% L.hidden_tag('form_validity_token', form_validity_token) %] [% END %] [% L.hidden_tag('email_journal_id', email_journal_id) %] [% L.hidden_tag('email_attachment_id', email_attachment_id) %] [% L.hidden_tag('workflow_email_journal_id', workflow_email_journal_id) %] [% L.hidden_tag('workflow_email_attachment_id', workflow_email_attachment_id) %] [% L.hidden_tag('workflow_email_callback', workflow_email_callback) %]
[% IF saved_message %]
[% saved_message | html %]
[% END %] [% IF previous_id %]
[% 'Previous transnumber text' | $T8 %] [% previous_id %] [% 'Previous transdate text' | $T8 %] [% previous_gldate %]
[% END %]
[% IF email_attachment_id || workflow_email_attachment_id %]
[% BLOCK panel_1; P.email_journal.attachment_preview( email_attachment_id || workflow_email_attachment_id, style="height:600px" ); END; INCLUDE 'common/toggle_panel.html' block_name='panel_1' button_closed = LxERP.t8('Show Attachment') button_open = LxERP.t8('Hide Attachment') ; %]
[% END %]
[% IF id %] [%-# hidden img to keep alignment -%] [% END %] [% SET departments_style = ""; SET departments_style = "style='visibility:hidden'" IF ALL_DEPARTMENTS.size == 0 %]
[% 'Reference' | $T8 %] [% L.input_tag('reference', reference, class='wi-wide', readonly=readonly) %]
[% 'Transdate' | $T8 %] [% L.date_tag('transdate', transdate, readonly=readonly) %]
[% 'ID' | $T8 %] [% L.input_tag('id', id, class="wi-small", readonly=readonly) %]
[% 'Gldate' | $T8 %][% L.date_tag('gldate', gldate, readonly=1) %]
[% 'Tax point' | $T8 %] [% L.date_tag('tax_point', tax_point) %]
[% 'Delivery Date' | $T8 %] [% L.date_tag('deliverydate', deliverydate) %]
[% 'Department' | $T8 %] [% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class='wi-wide') %]
[% 'Transaction description' | $T8 %] [% L.input_tag("transaction_description", transaction_description, class='wi-wide') %]
[% 'Description' | $T8 %] [% L.areainput_tag('description', description, readonly=readonly, cols=10, class='wi-wide') %]
[% L.checkbox_tag('ob_transaction' checked=ob_transaction) %]
[% L.checkbox_tag('cb_transaction' checked=cb_transaction) %]
[%- IF id %][% 'Mitarbeiter' | $T8 %][% END %] [%- IF id %][% L.input_tag('employee', employee, readonly=readonly, class='wi-wide') %][% END %]
[% 'MwSt. inkl.' | $T8 %] [% L.checkbox_tag('taxincluded', checked=taxincluded) %]
[% L.checkbox_tag('show_details', checked=show_details, onclick='show_form_details();', style='display:none') %]
[% IF show_details %] [% END %]
[% 'Transaction' | $T8 %]
[% 'Account' | $T8 %] [% 'Chart balance' | $T8 %] [% 'Debit' | $T8 %] [% 'Credit' | $T8 %] [% 'Tax' | $T8 %] [% 'Taxkey' | $T8 %][% 'Source' | $T8 %] [% 'Memo' | $T8 %] [% 'Project Number' | $T8 %]