]> wagnertech.de Git - mfinanz.git/blob - templates/webpages/gl/form_header.html
date error in mapping
[mfinanz.git] / templates / webpages / gl / form_header.html
1 [%- USE HTML %]
2 [%- USE LxERP %]
3 [%- USE T8 %]
4 [%- USE L %]
5
6 <h1>
7   [% IF workflow_email_journal_id; LxERP.t8("Email Journal Workflow") _ " - "; END; %]
8   [% title | html %]
9 </h1>
10
11 [%- INCLUDE 'common/flash.html' %]
12
13 <script type="text/javascript">
14   <!--
15   function copy_debit_to_credit() {
16     var txt = document.getElementsByName('debit_1')[0].value;
17     document.getElementsByName('credit_2')[0].value = txt;
18   };
19   //-->
20   </script>
21   <script type="text/javascript" src="js/show_form_details.js"></script>
22 <script type="text/javascript" src="js/follow_up.js"></script>
23 <script type="text/javascript" src="js/kivi.Draft.js"></script>
24
25 <form method="post" name="gl" action="gl.pl" id="form">
26
27 [% FOREACH name IN [ 'id', 'closedto', 'locked', 'storno', 'storno_id', 'previous_id', 'previous_gldate' ] %]
28 [% L.hidden_tag(name, $name) %]
29 [%- END %]
30
31 [% IF !id %]
32 [%   L.hidden_tag('form_validity_token', form_validity_token) %]
33 [% END %]
34 [% L.hidden_tag('email_journal_id',             email_journal_id) %]
35 [% L.hidden_tag('email_attachment_id',          email_attachment_id) %]
36 [% L.hidden_tag('workflow_email_journal_id',    workflow_email_journal_id) %]
37 [% L.hidden_tag('workflow_email_attachment_id', workflow_email_attachment_id) %]
38 [% L.hidden_tag('workflow_email_callback',      workflow_email_callback) %]
39
40 <input type=hidden name=title value="[% hide_title | html %]">
41
42 <input type="hidden" name="follow_up_trans_id_1" value="[% id | html %]">
43 <input type="hidden" name="follow_up_trans_type_1" value="gl_transaction">
44 <input type="hidden" name="follow_up_trans_info_1" value="[% id | html %]">
45 <input type="hidden" name="follow_up_rowcount" value="1">
46
47 <div id="gl_tabs" class="tabwidget">
48  <ul>
49   <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
50 [% IF email_attachment_id || workflow_email_attachment_id %]
51   <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>
52 [% END %]
53 [%- IF INSTANCE_CONF.get_webdav %]
54   <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
55 [%- END %]
56 [%- IF id %]
57 [%- IF INSTANCE_CONF.get_doc_storage %]
58   <li><a href="#ui-tabs-docs">[% 'Documents' | $T8 %]</a></li>
59   <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
60 [%- END %]
61   [%- IF AUTH.assert('record_links', 1) %]
62   <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=GLTransaction&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
63   [%- END %]
64 [%- END %]
65  </ul>
66
67 [%- IF INSTANCE_CONF.get_doc_storage %]
68   <div id="ui-tabs-docs"></div>
69 [%- END %]
70
71  <div id="ui-tabs-basic-data">
72
73 <table width=100%>
74 [%- IF saved_message %]
75   <tr>
76     <td>[% saved_message | html %]</th>
77   </tr>
78 [%- END %]
79
80   <tr height="5"></tr>
81   <tr>
82     <td>
83       <table>
84         <tr>
85           <td colspan="6" align="left">[% 'Previous transnumber text' | $T8 %] [% previous_id  %] . [% 'Previous transdate text' | $T8 %] [% previous_gldate %]</td>
86         </tr>
87         <tr>
88           <th align="right">[% 'Reference' | $T8 %]</th>
89           <td>[% L.input_tag('reference', reference,  style='width:330px', readonly=readonly) %]</td>
90           <th align="right">[% 'Transdate' | $T8 %]</th>
91           <td>[% L.date_tag('transdate', transdate, readonly=readonly) %]</td>
92         </tr>
93 [%- IF id %]
94         <tr>
95           <th align="right">[% 'ID' | $T8 %]</th>
96           <td>[% id %]</td>
97           <th align="right">[% 'Gldate' | $T8 %]</th>
98           <td>[% L.date_tag('gldate', gldate, readonly=1) %]<img class="ui-datepicker-trigger" src="image/calendar.png" alt="..." title="..." style='visibility:hidden'></td>
99         </tr>
100 [%- END %]
101
102         [% SET departments_style = "";
103            SET departments_style = "style='visibility:hidden'" IF ALL_DEPARTMENTS.size == 0 %]
104         <tr>
105           <th [%- departments_style -%]align="right">[% 'Department' | $T8 %]</th>
106           <td [%- departments_style -%]>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width:334px') %]</td>
107           <th align=right>[% 'Tax point' | $T8 %]</th>
108           <td>[% L.date_tag('tax_point', tax_point) %]</td>
109         </tr>
110         <tr>
111           <th align="right">[% 'Transaction description' | $T8 %]</th>
112           <td>[% L.input_tag("transaction_description", transaction_description, style='width:330px') %]</td>
113           <th align=right>[% 'Delivery Date' | $T8 %]</th>
114           <td>[% L.date_tag('deliverydate', deliverydate) %]</td>
115         </tr>
116         <tr>
117           <th align="right">[% 'Description' | $T8 %]</th>
118           <td>[% L.areainput_tag('description', description, cols=50, style='width:330px', readonly=readonly) %]</td>
119         </tr>
120         <tr>
121           <th align="right">[%- IF id %][% 'Mitarbeiter' | $T8 %][% END %]</th>
122           <td>[%- IF id %][% L.input_tag('employee', employee, size=20, readonly=readonly) %][% END %]</td>
123           <th align="right">[% 'MwSt. inkl.' | $T8 %]</th>
124           <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td>
125         </tr>
126
127       <tr>
128        <td colspan=4>
129          [% 'OB Transaction' | $T8 %] [% L.checkbox_tag('ob_transaction' checked=ob_transaction) %]
130          [% 'CB Transaction' | $T8 %] [% L.checkbox_tag('cb_transaction' checked=cb_transaction) %]
131        </td>
132       </tr>
133       <tr>
134        <td width="1%" align="right" nowrap>[% 'Show details' | $T8 %]</td>
135        <td width="1%">[% L.checkbox_tag('show_details', checked=show_details, onclick='show_form_details();') %]</td>
136       </tr>
137
138       <tr>
139       <td colspan=4>
140           <table width=100%>
141            <tr class=listheading>
142           <th class=listheading style="width:15%">[% 'Account' | $T8 %]</th>
143           <th class=listheading style="width:10%">[% 'Chart balance' | $T8 %]</th>
144           <th class=listheading style="width:10%">[% 'Debit' | $T8 %]</th>
145           <th class=listheading style="width:10%">[% 'Credit' | $T8 %]</th>
146           <th class=listheading style="width:10%">[% 'Tax' | $T8 %]</th>
147           <th class=listheading style="width:5%">[% 'Taxkey' | $T8 %]</th>
148
149 [%- IF show_details %]
150           <th class=listheading style="width:20%">[% 'Source' | $T8 %]</th>
151           <th class=listheading style="width:20%">[% 'Memo' | $T8 %]</th>
152           <th class=listheading style="width:20%">[% 'Project Number' | $T8 %]</th>
153 [%- END %]
154
155         </tr>