Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f640c021

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID f640c02127197884b6ee7244f25b5f10f0b75d66
  • Vorgänger 2a97e655
  • Nachfolger 9ebc730e

Neues kivitendo Design Aenderungen in templates/webpages/amcvar/.. ap/.. ar/..

Unterschiede anzeigen:

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

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

  
8
[%- INCLUDE 'common/flash.html' %]
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) %]
......
20 21
[% L.hidden_tag('follow_up_rowcount', 1) %]
21 22
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
22 23

  
23
[%- IF saved_message %]<p>[% saved_message | html  %]</p>[% END %]
24
[% IF saved_message %]<p class="message message_info">[% 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>
38

  
39
<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 27

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

  
155
                [% L.hidden_tag('rowcount', rowcount) %]
156
  <tr>
157
      <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 41

  
42
<div id="ui-tabs-basic-data">
167 43

  
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 %]
44
<div class="wrapper">
177 45

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

  
187
          <input type=hidden name=oldinvtotal value='[% oldinvtotal %]'>
188
          <input type=hidden name=oldtotalpaid value='[% oldtotalpaid %]'>
128
  <table class="tbl-horizontal">
129
    <caption>[% 'Notes' | $T8 %]</caption>
130
    <tbody>
131
      <tr>
132
        <td>
133
          <textarea name="notes" rows="[% rows %]" cols="30" wrap="soft">[% notes | html %]</textarea>
134
        </td>
135
      </tr>
136
      <tr>
137
        <th>
138
          [% 'Notes for customer' | $T8 %]<br>
139
          <textarea name="intnotes" rows="[% rows %]" cols="30" wrap="soft" readonly>[% intnotes | html %]</textarea>
140
        </th>
141
      </tr>
142
    </tbody>
143
  </table>
189 144

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

  
192
          <td colspan=4></td>
175
</div><!-- /.wrapper -->
193 176

  
177
[% L.hidden_tag('rowcount', rowcount) %]
194 178

  
195
        </tr>
196
        </table>
197
        </td>
179
<table class="tbl-list" style="width:90%;">
180
  <caption>[% 'Transaction' | $T8 %]</caption>
181
  <thead>
182
    <tr>
183
      <th>[% 'Account' | $T8 %]</th>
184
      <th class="right">[% 'Amount' | $T8 %]</th>
185
      <th class="right">[% 'Tax' | $T8 %]</th>
186
      <th>[% 'Taxkey' | $T8 %]</th>
187
      <th>[% 'Project' | $T8 %]</th>
198 188
    </tr>
189
  </thead>
190
  <tbody>
191
    [% FOREACH row IN transactions %]
199 192
    <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>
193
      <td>[% row.selectAR_amount %]</td>
194
      <td class="numeric">[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2), class='wi-small numeric') %]</td>
195
      <td class="numeric">[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td>
196
      <td>[% row.taxchart %]</td>
197
      <td>[% L.select_tag('project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.project_id, with_empty=1, class="wi-small") %]</td>
198
    </tr>
199
    [% END %]
200
  </tbody>
201
  <tfoot>
202
    <tr>
203
      <td>[% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %]</td>
204
      <th class="numeric">[% LxERP.format_amount(invtotal, 2) | html %]</th>
205
        <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
206
        <input type="hidden" name="oldtotalpaid" value="[% oldtotalpaid %]">
207
        <input type="hidden" name="taxaccounts" value="[% taxaccounts | html %]">
208
      <td colspan="3"></td>
209
    </tr>
210
  </tfoot>
211
</table>
218 212

  
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 213

  
232
[%- FOREACH row IN payments %]
233
        <tr>
234
         <td align=center>
235
  [%- IF row.changeable %]
214
<table class="tbl-list" style="width:90%;">
215
  <caption>[% 'Incoming Payments' | $T8 %]</caption>
216
  <thead>
217
    <tr>
218
      <th>[% 'Date' | $T8 %]</th>
219
      <th>[% 'Source' | $T8 %]</th>
220
      <th>[% 'Memo' | $T8 %]</th>
221
      <th class="right">[% 'Amount' | $T8 %]</th>
222
      <th></th>
223
      [% IF show_exch %]
224
        <th>[% 'Exch' | $T8 %]</th>
225
      [% END %]
226
      <th>[% 'Account' | $T8 %]</th>
227
      <th>[% 'Project Number' | $T8 %]</th>
228
    </tr>
229
  </thead>
230
  <tbody>
231
    [% FOREACH row IN payments %]
232
    <tr>
233
      <td>
234
        [% IF row.changeable %]
236 235
          [% 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 data-validate="number" class="numeric" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
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 %]
236
        [% ELSE %]
237
          [% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %]
238
        [% END %]
239
      </td>
240
      <td>
241
      [% IF row.changeable %]
242
        <input type="text" name="source_[% loop.count %]" size="11" value="[% row.source | html %]">
243
      [% ELSE %]
244
        [% row.source | html %]<input type="hidden" name="source_[% loop.count %]" value="[% row.source | html %]">
245
      [% END %]
246
      </td>
247
      <td>
248
        [% IF row.changeable %]
249
          <input type="text" name="memo_[% loop.count %]" size="11" value="[% row.memo | html %]">
250
        [% ELSE %]
251
          [% row.memo | html %]<input type="hidden" name="memo_[% loop.count %]" value="[% row.memo | html %]">
252
        [% END %]
253
      </td>
254
      <td class="numeric">
255
        [% IF row.changeable %]
256
          <input name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]" type="text" data-validate="number" class="numeric">
257
        [% ELSE %]
258
          [% row.paid | html %]<input type="hidden" name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
259
        [% END %]
260
      </td>
261
      <td>
262
        [% IF row.changeable && loop.last && paid_missing > 0 %]
263
          <input type="button" id="ar_set_to_paid_missing" value="[% 'Set to paid missing' | $T8 %]">
264
        [% END %]
265
      </td>
266
      [% IF show_exch %]
267
        <td>
268
          [% IF row.forex || !row.changeable%]
269
            <input type="hidden" name="exchangerate_[% loop.count %]" value="[% row.exchangerate | html %]">[% row.exchangerate | html %]
270
          [% ELSE %]
271
            <input type="text" name="exchangerate_[% loop.count %]" size="10" value="[% row.exchangerate | html %]">
272
          [% END %]
273
            <input type="hidden" name="forex_[% loop.count %]" value="[% row.forex | html %]">
274
        </td>
275
      [% END %]
276
      <td>
277
        [% IF row.changeable %]
279 278
          [% 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 %]
279
        [% ELSE %]
280
          [% row.AR_paid | html %]<input type="hidden" name="AR_paid_[% loop.count %]" value="[% row.AR_paid | html %]">
281
        [% END %]
282
      </td>
283
      <td>
284
        [% IF row.changeable %]
285
          [% L.select_tag('paid_project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.paid_project_id, with_empty=1, class='wi-small') %]
286
        [% ELSE %]
288 287
          [% 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>
288
          <input type="hidden" name="paid_project_id_[% loop.count %]" value="[% row.paid_project_id %]">
289
        [% END %]
290
        <input type="hidden" name="acc_trans_id_[% loop.count %]" value="[% row.acc_trans_id | html %]">
291
        <input type="hidden" name="gldate_[% loop.count %]" value="[% row.gldate | html %]">
292
       </td>
293
    </tr>
294
    [% END %]
295
  </tbody>
296
  <tfoot>
297
    <tr>
298
      <td></td>
299
      <td></td>
300
      <th class="right">[% 'Total' | $T8 %]</th>
301
      <td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
302
      <td></td>
303
      [% IF show_exch %]
304
        <td></td>
305
      [% END %]
306
      <td></td>
307
      <td></td>
308
    </tr>
309
    <tr>
310
      <td></td>
311
      <td></td>
312
      <th class="right">[% 'Missing amount' | $T8 %]</th>
313
      <td class="numeric">
314
        [% LxERP.format_amount(paid_missing, 2) | html %]
315
        <input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
316
      </td>
317
      <td></td>
318
      [% IF show_exch %]
319
        <td></td>
320
      [% END %]
321
      <td></td>
322
      <td></td>
323
    </tr>
324
  </tfoot>
325
</table>
292 326

  
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 %]'>
310 327

  
311
      </table>
312
    </td>
313
  </tr>
314
</table>
315
</div>
316
</div>
328
</div><!-- /#ui-tabs-basic-data -->
329
</div><!-- ./tabwidget -->
317 330

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

Auch abrufbar als: Unified diff