8 [% IF workflow_email_journal_id; LxERP.t8("Email Journal Workflow") _ " - "; END; %]
12 <script type="text/javascript">
14 function copy_debit_to_credit() {
15 var txt = document.getElementsByName('debit_1')[0].value;
16 document.getElementsByName('credit_2')[0].value = txt;
20 <script type="text/javascript" src="js/show_form_details.js"></script>
21 <script type="text/javascript" src="js/follow_up.js"></script>
22 <script type="text/javascript" src="js/kivi.Draft.js"></script>
24 <form method="post" name="gl" action="gl.pl" id="form">
26 [%- INCLUDE 'common/flash.html' %]
28 [% FOREACH name IN [ 'id', 'closedto', 'locked', 'storno', 'storno_id', 'previous_id', 'previous_gldate' ] %]
29 [% L.hidden_tag(name, $name) %]
33 [% L.hidden_tag('form_validity_token', form_validity_token) %]
35 [% L.hidden_tag('email_journal_id', email_journal_id) %]
36 [% L.hidden_tag('email_attachment_id', email_attachment_id) %]
37 [% L.hidden_tag('workflow_email_journal_id', workflow_email_journal_id) %]
38 [% L.hidden_tag('workflow_email_attachment_id', workflow_email_attachment_id) %]
39 [% L.hidden_tag('workflow_email_callback', workflow_email_callback) %]
41 <input type=hidden name=title value="[% hide_title | html %]">
43 <input type="hidden" name="follow_up_trans_id_1" value="[% id | html %]">
44 <input type="hidden" name="follow_up_trans_type_1" value="gl_transaction">
45 <input type="hidden" name="follow_up_trans_info_1" value="[% id | html %]">
46 <input type="hidden" name="follow_up_rowcount" value="1">
48 <div id="ir_tabs" class="tabwidget">
51 <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
52 [% IF email_attachment_id || workflow_email_attachment_id %]
53 <li><a href="controller.pl?action=EmailJournal/attachment_preview&attachment_id=[% HTML.url(email_attachment_id || workflow_email_attachment_id) %]">[% 'Email Attachment Preview' | $T8 %]</a></li>
55 [% IF INSTANCE_CONF.get_webdav %]
56 <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
59 [% IF INSTANCE_CONF.get_doc_storage %]
60 <li><a href="controller.pl?action=File/list&file_type=document&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
61 <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
63 [% IF AUTH.assert('record_links', 1) %]
64 <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=GLTransaction&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
69 <div id="ui-tabs-basic-data">
73 [% IF saved_message %]
74 <div class="message">[% saved_message | html %]</div>
78 <div class="message message_hint">
79 [% 'Previous transnumber text' | $T8 %] <b>[% previous_id %]</b> [% 'Previous transdate text' | $T8 %] <b>[% previous_gldate %] </b>
83 </div><!-- /.wrapper -->
85 [% IF email_attachment_id || workflow_email_attachment_id %]
86 <div class="wrapper" id="email_attachment_wrapper">
89 P.email_journal.attachment_preview(
90 email_attachment_id || workflow_email_attachment_id,
94 INCLUDE 'common/toggle_panel.html'
96 button_closed = LxERP.t8('Show Attachment')
97 button_open = LxERP.t8('Hide Attachment')
103 <div class="wrapper">
105 <table class="tbl-horizontal">
108 <th>[% 'Reference' | $T8 %]</th>
109 <td>[% L.input_tag('reference', reference, class='wi-wide', readonly=readonly) %]</td>
112 <th>[% 'Transdate' | $T8 %]</th>
113 <td>[% L.date_tag('transdate', transdate, readonly=readonly) %]</td>
117 <th>[% 'ID' | $T8 %]</th>
118 <td>[% L.input_tag('id', id, class="wi-small", readonly=readonly) %]</td>
121 <th>[% 'Gldate' | $T8 %]</th>
122 [%-# hidden img to keep alignment -%]
123 <td>[% L.date_tag('gldate', gldate, readonly=1) %]<img class="ui-datepicker-trigger" src="image/calendar.png" alt="..." title="..." style='visibility:hidden'></td>
127 <th>[% 'Tax point' | $T8 %]</th>
128 <td>[% L.date_tag('tax_point', tax_point) %]</td>
131 <th>[% 'Delivery Date' | $T8 %]</th>
132 <td>[% L.date_tag('deliverydate', deliverydate) %]</td>
134 [% SET departments_style = "";
135 SET departments_style = "style='visibility:hidden'" IF ALL_DEPARTMENTS.size == 0 %]
137 <th [%- departments_style -%]>[% 'Department' | $T8 %]</th>
138 <td [%- departments_style -%]>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class='wi-wide') %]</td>
141 <th>[% 'Transaction description' | $T8 %]</th>
142 <td>[% L.input_tag("transaction_description", transaction_description, class='wi-wide') %]</td>
145 <th>[% 'Description' | $T8 %]</th>
146 <td class="wi-wide">[% L.areainput_tag('description', description, readonly=readonly, cols=10, class='wi-wide') %]</td>
149 <th><label for="ob_transaction">[% 'OB Transaction' | $T8 %]</label></th>
150 <td>[% L.checkbox_tag('ob_transaction' checked=ob_transaction) %]</td>
153 <th><label for="cb_transaction">[% 'CB Transaction' | $T8 %]</label></th>
154 <td>[% L.checkbox_tag('cb_transaction' checked=cb_transaction) %]</td>
157 <th>[%- IF id %][% 'Mitarbeiter' | $T8 %][% END %]</th>
158 <td>[%- IF id %][% L.input_tag('employee', employee, readonly=readonly, class='wi-wide') %][% END %]</td>
161 <th>[% 'MwSt. inkl.' | $T8 %]</th>
162 <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td>
167 </div><!-- /.wrapper -->
168 <div class="wrapper">
170 <div class="buttons positions">
171 <label class="button neutral" for="show_details">[% IF show_details %][% 'Hide details' | $T8 %][% ELSE %][% 'Show details' | $T8 %][% END %]</label>
172 [% L.checkbox_tag('show_details', checked=show_details, onclick='show_form_details();', style='display:none') %]
175 <table class="tbl-list wi-moderate">
176 <caption>[% 'Transaction' | $T8 %]</caption>
179 <th>[% 'Account' | $T8 %]</th>
180 <th class="right">[% 'Chart balance' | $T8 %]</th>
181 <th class="right">[% 'Debit' | $T8 %]</th>
182 <th class="right">[% 'Credit' | $T8 %]</th>
183 <th class="right">[% 'Tax' | $T8 %]</th>
184 <th>[% 'Taxkey' | $T8 %]</th>
185 [% IF show_details %]
186 <th>[% 'Source' | $T8 %]</th>
187 <th>[% 'Memo' | $T8 %]</th>
188 <th>[% 'Project Number' | $T8 %]</th>