Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a85900cb

Von Hans Peter Schlaepfer vor etwa 6 Jahren hinzugefügt

  • ID a85900cb68a578d89090043534ae79664a4070a9
  • Vorgänger 72c4037d
  • Nachfolger e7c11f83

Preview design 4.0

Unterschiede anzeigen:

templates/webpages/ar/form_header.html
1 1
[%- USE HTML %]
2 2
[%- USE L %]
3 3
[%- USE T8 %]
4
[%- USE LxERP %][%- USE P -%]
4
[%- USE LxERP %]
5
[%- USE P -%]
5 6

  
6 7
<h1>[% title | html %]</h1>
7 8

  
8 9
[%- INCLUDE 'common/flash.html' %]
9 10

  
10
<form method=post name="arledger" action="[% script %]" id="form">
11
<form method="post" name="arledger" action="[% script %]" id="form">
11 12

  
12 13
[% L.hidden_tag('id', id) %]
13 14
[% L.hidden_tag('sort', sort) %]
......
23 24
[%- IF saved_message %]<p>[% saved_message | html  %]</p>[% END %]
24 25

  
25 26
<div class="tabwidget">
26
 <ul>
27
  <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
28
[%- IF id %]
29
  [%- IF INSTANCE_CONF.get_doc_storage %]
30
  <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
31
  [%- END %]
32
  [% IF AUTH.assert('record_links', 1) %]
33
  <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Invoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
34
  [%- END %]
35
  <li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li>
36
[%- END %]
37
 </ul>
27

  
28
 
29
<ul>
30
	<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
31
	[%- IF id %] 
32
    [%- IF INSTANCE_CONF.get_doc_storage %] 
33
	<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
34
    [%- END %] 
35
    [% IF AUTH.assert('record_links', 1) %] 
36
	<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Invoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
37
    [%- END %] 
38
	<li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li>
39
	[%- END %] 
40
</ul>
41

  
38 42

  
39 43
<div id="ui-tabs-basic-data">
40
<table width=100%>
41
  <tr valign=top>
42
    <td>
43
      <table width=100%>
44
        <tr valign=top>
45
          <td>
46
            <table>
47
              <tr>
48
                <th align="right" nowrap>[% 'Customer' | $T8 %]</th>
49
                <td colspan=3>
50
                 [% P.customer_vendor_picker("customer_id", customer_id, type="customer", style="width: 300px", class=(initial_focus == 'customer_id' ? "initial_focus" : ""), onchange="\$('#update_button').click()") %]
51
                 [% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %]
52
                 [% L.hidden_tag("previous_customer_id", customer_id) %]
53
                 [% L.hidden_tag('terms', terms) %]
54
               </td>
55
              </tr>
56
[%- IF max_dunning_level || invoice_obj.dunning_config_id  %]
57
              <tr>
58
                <th align="right" valign="top">[% LxERP.t8("Dunning status") %]</th>
59
                <td valign="top">
60
                 [% IF invoice_obj.dunning_config_id %]
61
                  <span class="dunned_invoice">[% LxERP.t8("This invoice's dunning level: #1", invoice_obj.dunning_config.dunning_description) %]</span>
62
                  [% IF max_dunning_level %]<br>[% END %]
63
                 [% END %]
64
                 [% IF max_dunning_level %]
65
                  <span class="customer_dunning_level">
66
                   [% LxERP.t8("Customer's current maximum dunning level: #1", max_dunning_level) %]
67
                   <br>
68
                   [% LxERP.t8("Dunned open amount: #1", LxERP.format_amount(dunning_amount, 2)) %]
69
                  </span>
70
                 [% END %]
71
                </td>
72
              </tr>
73
[%- END %]
74
              <tr>
75
                <th align="right" valign="top">[% LxERP.t8("Credit Limit") %]</th>
76
                <td>
77
                 [% LxERP.format_amount(creditlimit, 0) %][% L.hidden_tag('creditlimit', LxERP.format_amount(creditlimit, 0)) %];
78
                 [% LxERP.t8("Remaining") %]
79
                 <span class="plus[% creditremaining < 0 ? 0 : 1 %]">[% LxERP.format_amount(creditremaining, 0) %][% L.hidden_tag('creditremaining', LxERP.format_amount(creditremaining, 0)) %]</span>
80
                </td>
81
              </tr>
82
[%- IF invoice_obj.sepa_exports.as_list.size %]
83
              <tr>
84
                <th align="right">[% LxERP.t8("SEPA exports") %]</th>
85
                <td>
86
                 [% FOREACH export = invoice_obj.sepa_exports.as_list %]
87
                  <a href="sepa.pl?action=bank_transfer_edit&vc=customer&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a>
88
                  [% UNLESS loop.last %], [% END %]
89
                 [% END %]
90
                </td>
91
              </tr>
92
[%- END %]
93
              <tr>
94
                <th align=right>[% 'Currency' | $T8 %]</th>
95
                <td>[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]</td>
96
                [% L.hidden_tag('defaultcurrency', defaultcurrency) %]
97
                [% L.hidden_tag('fxgain_accno', fxgain_accno) %]
98
                [% L.hidden_tag('fxloss_accno', fxloss_accno) %]
99 44

  
100
                [% L.hidden_tag('forex', forex) %]
101
                [% IF show_exch %]
102
                   <th align=right>[% 'Exchangerate' | $T8 %]</th>
103
                   <td>[%- IF forex %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5)) %][% LxERP.format_amount(exchangerate, 5) %][%- ELSE %][% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5), size=10) %][%- END %]</td>
104
                [% END %]
105
              </tr>
106
              [% IF ALL_DEPARTMENTS %]
107
                <tr>
108
                  <th align="right" nowrap>[% 'Department' | $T8 %]</th>
109
                  <td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td>
110
                </tr>
111
              [% END %]
112
              <tr>
113
                <td align=right>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td>
114
                <th align="left" nowrap><label for="taxincluded">[% 'Tax Included' | $T8 %]</label></th>
115
              </tr>
116
              <tr>
117
                <td align="right">[% L.checkbox_tag('direct_debit', checked=direct_debit) %]</td>
118
                <th align="left" nowrap><label for="direct_debit">[% 'direct debit' | $T8 %]</label></th>
119
              </tr>
120
            </table>
121
          </td>
122
          <td align=right>
123
            <table>
124
              <tr>
125
                <th align=right nowrap>[% 'Salesperson' | $T8 %]</th>
126
                <td  colspan=2>[% P.select_tag("employee_id", employees, default=employee_id, title_key='safe_name') %]</td>
127
              </tr>
128
              <tr>
129
                <th align=right nowrap>[% 'Invoice Number' | $T8 %]</th>
130
                <td><input name=invnumber size=11 value="[% invnumber | html %]"></td>
131
              </tr>
132
              <tr>
133
                <th align=right nowrap>[% 'Order Number' | $T8 %]</th>
134
                <td><input name=ordnumber size=11 value="[% ordnumber | html %]"></td>
135
              </tr>
136
              <tr>
137
                <th align=right nowrap>[% 'Invoice Date' | $T8 %]</th>
138
                <td>[% L.date_tag('transdate', transdate) %]</td>
139
              </tr>
140
              <tr>
141
                <th align=right nowrap>[% 'Due Date' | $T8 %]</th>
142
                <td>[% L.date_tag('duedate', duedate) %]</td>
143
              </tr>
144
              <tr>
145
                <th align=right nowrap>[% 'Project Number' | $T8 %]</th>
146
                <td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]</td>
147
              </tr>
148
     </table>
149
          </td>
150
        </tr>
151
      </table>
152
    </td>
153
  </tr>
45
<div class="cols">
154 46

  
155
                [% L.hidden_tag('rowcount', rowcount) %]
156
  <tr>
47
<table class="tbl-horizontal col">
48
  <caption>[% 'Customer &amp; Order' | $T8 %]</caption>
49
  <tbody>
50
    <tr>
51
      <th>[% 'Customer' | $T8 %]</th>
157 52
      <td>
158
          <table width=100%>
159
           <tr class=listheading>
160
          <th class=listheading style="width:15%">[% 'Account' | $T8 %]</th>
161
          <th class=listheading style="width:10%">[% 'Amount' | $T8 %]</th>
162
          <th class=listheading style="width:10%">[% 'Tax' | $T8 %]</th>
163
          <th class=listheading style="width:5%">[% 'Taxkey' | $T8 %]</th>
164
          <th class=listheading style="width:10%">[% 'Project' | $T8 %]</th>
165
        </tr>
166

  
53
       [% P.customer_vendor_picker("customer_id", customer_id, type="customer", style="width: 300px", class=(initial_focus == 'customer_id' ? "initial_focus" : ""), onchange="\$('#update_button').click()") %]
54
       [% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %]
55
       [% L.hidden_tag("previous_customer_id", customer_id) %]
56
       [% L.hidden_tag('terms', terms) %]
57
     </td>
58
    </tr>
59
    [%- IF max_dunning_level || invoice_obj.dunning_config_id  %]
60
    <tr>
61
      <th>[% LxERP.t8("Dunning status") %]</th>
62
      <td>
63
        [% IF invoice_obj.dunning_config_id %]
64
        <span class="dunned_invoice">[% LxERP.t8("This invoice's dunning level: #1", invoice_obj.dunning_config.dunning_description) %]</span>
65
          [% IF max_dunning_level %]<br>[% END %]
66
        [% END %]
67
        [% IF max_dunning_level %]
68
        <span class="customer_dunning_level">
69
          [% LxERP.t8("Customer's current maximum dunning level: #1", max_dunning_level) %] <br>
70
          [% LxERP.t8("Dunned open amount: #1", LxERP.format_amount(dunning_amount, 2)) %]
71
        </span>
72
       [% END %]
73
      </td>
74
    </tr>
75
    [%- END %]
76
    <tr>
77
      <th>[% LxERP.t8("Credit Limit") %]</th>
78
      <td>
79
       [% LxERP.format_amount(creditlimit, 0) %][% L.hidden_tag('creditlimit', LxERP.format_amount(creditlimit, 0)) %];
80
       [% LxERP.t8("Remaining") %]
81
       <span class="plus[% creditremaining < 0 ? 0 : 1 %]">[% LxERP.format_amount(creditremaining, 0) %][% L.hidden_tag('creditremaining', LxERP.format_amount(creditremaining, 0)) %]</span>
82
      </td>
83
    </tr>
84
    [%- IF invoice_obj.sepa_exports.as_list.size %]
85
    <tr>
86
      <th>[% LxERP.t8("SEPA exports") %]</th>
87
      <td>
88
       [% FOREACH export = invoice_obj.sepa_exports.as_list %]
89
        <a href="sepa.pl?action=bank_transfer_edit&vc=customer&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a>
90
        [% UNLESS loop.last %], [% END %]
91
       [% END %]
92
      </td>
93
    </tr>
94
    [%- END %]
95
    <tr>
96
      <th>[% 'Currency' | $T8 %]</th>
97
      <td>[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]</td>
98
      [% L.hidden_tag('defaultcurrency', defaultcurrency) %]
99
      [% L.hidden_tag('fxgain_accno', fxgain_accno) %]
100
      [% L.hidden_tag('fxloss_accno', fxloss_accno) %]
101
      [% L.hidden_tag('forex', forex) %]
102
      [% IF show_exch %]
103
        <!-- PENDENT: Testen und Design ggf. anpassen -->
104
        &nbsp; [% 'Exchangerate' | $T8 %]: 
105
        [%- IF forex %]
106
          [% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5)) %][% LxERP.format_amount(exchangerate, 5) %]
107
        [%- ELSE %]
108
          [% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5), size=10) %]
109
        [%- END %]
110
      [% END %]
111
    </tr>
112
    [% IF ALL_DEPARTMENTS %]
113
      <tr>
114
        <th>[% 'Department' | $T8 %]</th>
115
        <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td>
116
      </tr>
117
    [% END %]
118
    <tr>
119
      <th></th>
120
      <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %] <label for="taxincluded">[% 'Tax Included' | $T8 %]</label></td>
121
    </tr>
122
    <tr>
123
      <th></th>
124
      <td>[% L.checkbox_tag('direct_debit', checked=direct_debit) %] <label for="direct_debit">[% 'direct debit' | $T8 %]</label></td>
125
    </tr>
126
  </tbody>
127
</table>
167 128

  
168
[%- FOREACH row IN transactions %]
169
        <tr>
170
          <td>[% row.selectAR_amount %]</td>
171
          <td>[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %]</td>
172
          <td>[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td>
173
          <td>[% row.taxchart %]</td>
174
          <td>[% L.select_tag('project_id_' _ loop.count, ALL_PROJECTS, title_key = 'projectnumber', default = row.project_id, with_empty = 1) %]</td>
175
        </tr>
176
[%- END %]
177 129

  
178
        <tr>
179
          <td colspan=6>
180
            <hr noshade>
181
          </td>
182
        </tr>
183
        <tr>
184
          <td>[% P.chart_picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %]</td>
185
          <th align=left>[% LxERP.format_amount(invtotal, 2) | html %]</th>
130
<table class="tbl-horizontal col">
131
  <caption>[% 'Notes' | $T8 %]</caption>
132
  <tbody>
133
    <tr>
134
      <td>
135
        <textarea name="notes" rows="[% rows %]" cols="30" wrap="soft">[% notes | html %]</textarea>
136
      </td>
137
    </tr>
138
    <tr>
139
      <th>
140
        [% 'Notes for customer' | $T8 %]<br>
141
        <textarea name="intnotes" rows="[% rows %]" cols="30" wrap="soft" readonly>[% intnotes | html %]</textarea>
142
      </td>
143
    </tr>
144
  </tbody>
145
</table>
186 146

  
187
          <input type=hidden name=oldinvtotal value='[% oldinvtotal %]'>
188
          <input type=hidden name=oldtotalpaid value='[% oldtotalpaid %]'>
189 147

  
190
          <input type=hidden name=taxaccounts value="[% taxaccounts | html %]">
148
<table class="tbl-horizontal col">
149
  <caption>[% 'Dates &amp; Numbers' | $T8 %]</caption>
150
  <tbody>
151
    <tr>
152
      <th>[% 'Salesperson' | $T8 %]</th>
153
      <td>[% P.select_tag("employee_id", employees, default=employee_id, title_key='safe_name') %]</td>
154
    </tr>
155
    <tr>
156
      <th>[% 'Invoice Number' | $T8 %]</th>
157
      <td><input name="invnumber" size="11" value="[% invnumber | html %]"></td>
158
    </tr>
159
    <tr>
160
      <th>[% 'Order Number' | $T8 %]</th>
161
      <td><input name="ordnumber" size="11" value="[% ordnumber | html %]"></td>
162
    </tr>
163
    <tr>
164
      <th>[% 'Invoice Date' | $T8 %]</th>
165
      <td>[% L.date_tag('transdate', transdate) %]</td>
166
    </tr>
167
    <tr>
168
      <th>[% 'Due Date' | $T8 %]</th>
169
      <td>[% L.date_tag('duedate', duedate) %]</td>
170
    </tr>
171
    <tr>
172
      <th>[% 'Project Number' | $T8 %]</th>
173
      <td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]</td>
174
    </tr>
175
  </tbody>
176
</table>
191 177

  
192
          <td colspan=4></td>
178
</div><!-- /.cols -->
193 179

  
180
[% L.hidden_tag('rowcount', rowcount) %]
194 181

  
195
        </tr>
196
        </table>
197
        </td>
182
<table class="tbl-list" style="width:90%;">
183
  <caption>[% 'Transaction' | $T8 %]</caption>
184
  <thead>
185
    <tr>
186
      <th>[% 'Account' | $T8 %]</th>
187
      <th class="right">[% 'Amount' | $T8 %]</th>
188
      <th class="right">[% 'Tax' | $T8 %]</th>
189
      <th>[% 'Taxkey' | $T8 %]</th>
190
      <th>[% 'Project' | $T8 %]</th>
198 191
    </tr>
192
  </thead>
193
  <tbody>
194
    [%- FOREACH row IN transactions %]
199 195
    <tr>
200
      <td>
201
        <table width=100%>
202
        <tr>
203
          <th align=left width=1%>[% 'Notes' | $T8 %]</th>
204
          <td align=left><textarea name=notes rows="[% rows %]" cols=50 wrap=soft>[% notes | html %]</textarea></td>
205

  
206
          <th align=left width=1%>[% 'Notes for customer' | $T8 %]</th>
207
          <td align=left><textarea name=intnotes rows="[% rows %]" cols=50 wrap=soft readonly>[% intnotes | html %]</textarea></td>
208
        </tr>
209
      </table>
210
    </td>
211
  </tr>
212
  <tr>
213
    <td>
214
      <table width=100%>
215
        <tr class=listheading>
216
          <th colspan=7 class=listheading>[% 'Incoming Payments' | $T8 %]</th>
217
        </tr>
196
      <td>[% row.selectAR_amount %]</td>
197
      <td class="numeric">[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2), class='wi-small numeric') %]</td>
198
      <td class="numeric">[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td>
199
      <td>[% row.taxchart %]</td>
200
      <td>[% L.select_tag('project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.project_id, with_empty=1, class="wi-small") %]</td>
201
    </tr>
202
    [%- END %]
203
  </tbody>
204
  <tfoot>
205
    <tr>
206
      <td>[% P.chart_picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %]</td>
207
      <th class="numeric">[% LxERP.format_amount(invtotal, 2) | html %]</th>
208
        <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
209
        <input type="hidden" name="oldtotalpaid" value="[% oldtotalpaid %]">
210
        <input type="hidden" name="taxaccounts" value="[% taxaccounts | html %]">
211
      <td colspan="3"></td>
212
    </tr>
213
  </tfoot>
214
</table>
218 215

  
219
        <tr>
220
         <th>[% 'Date' | $T8 %]</th>
221
         <th>[% 'Source' | $T8 %]</th>
222
         <th>[% 'Memo' | $T8 %]</th>
223
         <th>[% 'Amount' | $T8 %]</th>
224
         <th></th>
225
[%- IF show_exch %]
226
         <th>[% 'Exch' | $T8 %]</th>
227
[%- END %]
228
         <th>[% 'Account' | $T8 %]</th>
229
         <th>[% 'Project Number' | $T8 %]</th>
230
        </tr>
231 216

  
232
[%- FOREACH row IN payments %]
233
        <tr>
234
         <td align=center>
235
  [%- IF row.changeable %]
217
<table class="tbl-list" style="width:90%;">
218
  <caption>[% 'Incoming Payments' | $T8 %]</caption>
219
  <thead>
220
    <tr>
221
      <th>[% 'Date' | $T8 %]</th>
222
      <th>[% 'Source' | $T8 %]</th>
223
      <th>[% 'Memo' | $T8 %]</th>
224
      <th class="right">[% 'Amount' | $T8 %]</th>
225
      <th></th>
226
      [%- IF show_exch %]
227
        <th>[% 'Exch' | $T8 %]</th>
228
      [%- END %]
229
      <th>[% 'Account' | $T8 %]</th>
230
      <th>[% 'Project Number' | $T8 %]</th>
231
    </tr>
232
  </thead>
233
  <tbody>
234
    [%- FOREACH row IN payments %]
235
    <tr>
236
      <td>
237
        [%- IF row.changeable %]
236 238
          [% L.date_tag('datepaid_' _ loop.count, row.datepaid ? row.datepaid : today) %]
237
  [%- ELSE %]
238
         [% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %]
239
  [%- END %]
240
         </td>
241
         <td align=center>
242
  [%- IF row.changeable %]
243
          <input name="source_[% loop.count %]" size=11 value="[% row.source | html %]">
244
  [%- ELSE %]
245
         [% row.source | html %]<input type=hidden name="source_[% loop.count %]" value="[% row.source | html %]">
246
  [%- END %]
247
         </td>
248
         <td align=center>
249
  [%- IF row.changeable %]
250
          <input name="memo_[% loop.count %]" size=11 value="[% row.memo | html %]">
251
  [%- ELSE %]
252
         [% row.memo | html %]<input type=hidden name="memo_[% loop.count %]" value="[% row.memo | html %]">
253
  [%- END %]
254
         </td>
255
         <td align=center>
256
  [%- IF row.changeable %]
257
          <input name="paid_[% loop.count %]" size=11 value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]" onBlur="check_right_number_format(this)">
258
  [%- ELSE %]
259
         [% row.paid | html %]<input type=hidden name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
260
  [%- END %]
261
         </td>
262
         <td>
263
           [% IF row.changeable && loop.last && paid_missing > 0 %]
264
             <input type="button" id="ar_set_to_paid_missing" value="[% "Set to paid missing" | $T8 %]">
265
           [% END %]
266
         </td>
267
[%- IF show_exch %]
268
         <td align=center>
269
    [%- IF row.forex || !row.changeable%]
270
          <input type=hidden name="exchangerate_[% loop.count %]" value='[% row.exchangerate | html %]'>[% row.exchangerate | html %]
271
    [%- ELSE %]
272
          <input name="exchangerate_[% loop.count %]" size=10 value='[% row.exchangerate | html %]'>
273
    [%- END %]
274
          <input type=hidden name="forex_[% loop.count %]" value='[% row.forex | html %]'>
275
         </td>
276
[%- END %]
277
         <td align=center>
278
  [%- IF row.changeable %]
239
        [%- ELSE %]
240
          [% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %]
241
        [%- END %]
242
      </td>
243
      <td>
244
      [%- IF row.changeable %]
245
        <input name="source_[% loop.count %]" size="11" value="[% row.source | html %]">
246
      [%- ELSE %]
247
        [% row.source | html %]<input type="hidden" name="source_[% loop.count %]" value="[% row.source | html %]">
248
      [%- END %]
249
      </td>
250
      <td>
251
        [%- IF row.changeable %]
252
          <input name="memo_[% loop.count %]" size="11" value="[% row.memo | html %]">
253
        [%- ELSE %]
254
          [% row.memo | html %]<input type="hidden" name="memo_[% loop.count %]" value="[% row.memo | html %]">
255
        [%- END %]
256
      </td>
257
      <td class="numeric">
258
        [%- IF row.changeable %]
259
          <input name="paid_[% loop.count %]" type="text" class="wi-small numeric" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]" onBlur="check_right_number_format(this)">
260
        [%- ELSE %]
261
          [% row.paid | html %]<input type="hidden" name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
262
        [%- END %]
263
      </td>
264
      <td>
265
        [% IF row.changeable && loop.last && paid_missing > 0 %]
266
          <input type="button" id="ar_set_to_paid_missing" value="[% 'Set to paid missing' | $T8 %]">
267
        [% END %]
268
      </td>
269
      [%- IF show_exch %]
270
        <td>
271
          [%- IF row.forex || !row.changeable%]
272
            <input type="hidden" name="exchangerate_[% loop.count %]" value="[% row.exchangerate | html %]">[% row.exchangerate | html %]
273
          [%- ELSE %]
274
            <input name="exchangerate_[% loop.count %]" size="10" value="[% row.exchangerate | html %]">
275
          [%- END %]
276
            <input type="hidden" name="forex_[% loop.count %]" value="[% row.forex | html %]">
277
        </td>
278
      [%- END %]
279
      <td>
280
        [%- IF row.changeable %]
279 281
          [% row.selectAR_paid %]
280
  [%- ELSE %]
281
         [% row.AR_paid | html %]<input type=hidden name="AR_paid_[% loop.count %]" value='[% row.AR_paid | html %]'>
282
  [%- END %]
283
         </td>
284
         <td>
285
  [%- IF row.changeable %]
286
          [% L.select_tag('paid_project_id_' _ loop.count, ALL_PROJECTS, title_key = 'projectnumber', default = row.paid_project_id, with_empty=1) %]
287
  [%- ELSE %]
282
        [%- ELSE %]
283
          [% row.AR_paid | html %]<input type="hidden" name="AR_paid_[% loop.count %]" value="[% row.AR_paid | html %]">
284
        [%- END %]
285
      </td>
286
      <td>
287
        [%- IF row.changeable %]
288
          [% L.select_tag('paid_project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.paid_project_id, with_empty=1, class='wi-small') %]
289
        [%- ELSE %]
288 290
          [% project_labels.${row.paid_project_id} | html %]
289
          <input type=hidden name="paid_project_id_[% loop.count %]" value='[% row.paid_project_id %]'>
290
  [%- END %]
291
         </td>
292

  
293
         <input type=hidden name="acc_trans_id_[% loop.count %]" value='[% row.acc_trans_id | html %]'>
294
         <input type=hidden name="gldate_[% loop.count %]" value='[% row.gldate | html %]'>
295
        </tr>
296
[%- END %]
297
        <tr>
298
          <td></td>
299
          <td></td>
300
          <td align="center">[% 'Total' | $T8 %]</td>
301
          <td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
302
        </tr>
303
        <tr>
304
          <td></td>
305
          <td></td>
306
          <td align="center">[% 'Missing amount' | $T8 %]</td>
307
          <td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
308
        </tr>
309
        <input type=hidden name=paidaccounts value='[% paidaccounts %]'>
291
          <input type="hidden" name="paid_project_id_[% loop.count %]" value="[% row.paid_project_id %]">
292
        [%- END %]
293
        <input type="hidden" name="acc_trans_id_[% loop.count %]" value="[% row.acc_trans_id | html %]">
294
        <input type="hidden" name="gldate_[% loop.count %]" value="[% row.gldate | html %]">
295
       </td>
296
    </tr>
297
    [%- END %]
298
  </tbody>
310 299

  
311
      </table>
300
  <tfoot>
301
  <tr>
302
    <td></td>
303
    <td></td>
304
    <th class="right">[% 'Total' | $T8 %]</th>
305
    <td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
306
    <td></td><td></td><td></td>
307
  </tr>
308
  <tr>
309
    <td></td>
310
    <td></td>
311
    <th class="right">[% 'Missing amount' | $T8 %]</th>
312
    <td class="numeric">
313
      [% LxERP.format_amount(paid_missing, 2) | html %]
314
      <input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
312 315
    </td>
316
    <td></td><td></td><td></td>
313 317
  </tr>
318
  </tfoot>
314 319
</table>
320

  
321

  
315 322
</div>
316 323
</div>
317 324

  
318
<script type='text/javascript'>
325
<script type="text/javascript">
319 326
 $('#ar_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
320 327
</script>

Auch abrufbar als: Unified diff