Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f1fe8be9

Von Andreas Rudin vor fast 2 Jahren hinzugefügt

  • ID f1fe8be9d096fb061d424916784d0199a81c34c8
  • Vorgänger 057d4622
  • Nachfolger fd96961c

design40: Anpassungen bei templates Kreditoren- und Debitorenbuchungen

Unterschiede anzeigen:

templates/design40_webpages/ap/form_header.html
15 15
<input type="hidden" name="creditremaining" value="[% creditremaining | html %]">
16 16
<input type="hidden" name="forex" value="[% forex | html %]">
17 17
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
18
<input type="hidden" name="id" value="[% id | html %]">
18
<input id="id" type="hidden" name="id" value="[% id | html %]">
19 19
<input type="hidden" name="sort" value="[% sort | html %]">
20 20
<input type="hidden" name="closedto" value="[% closedto | html %]">
21 21
<input type="hidden" name="locked" value="[% locked | html %]">
......
59 59
    <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
60 60
  [% END %]
61 61
  [% IF id AND INSTANCE_CONF.get_doc_storage %]
62
    <li><a href="controller.pl?action=File/list&file_type=document&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
62
    <li><a href="#ui-tabs-docs">[% 'Documents' | $T8 %]</a></li>
63 63
    <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
64 64
  [% END %]
65 65
  [% IF id %]
......
70 70
  [% END %]
71 71
</ul>
72 72

  
73
[% IF id AND INSTANCE_CONF.get_doc_storage %]
74
  <div id="ui-tabs-docs"></div>
75
[% END %]
76

  
73 77
<div id="ui-tabs-basic-data">
74 78

  
75 79
<div class="wrapper">
......
80 84
  <tbody>
81 85
    <tr>
82 86
      <th>[% 'Vendor' | $T8 %]</th>
83
      <td class="wi-lightwide">[% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", onchange="\$('#update_button').click()") %][% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)'), class='wi-tiny neutral') %] [% L.hidden_tag("previous_vendor_id", vendor_id) %] </td>
87
      <td class="wi-lightwide">
88
        [% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", onchange="\$('#update_button').click()") %]
89
        [% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)'), class='wi-tiny neutral') %]
90
        [% L.hidden_tag("previous_vendor_id", vendor_id) %]
91
      </td>
84 92
    </tr>
85 93
    <tr>
86 94
      <th>[% LxERP.t8("Credit Limit") %]</th>
......
115 123
        [%- END %]
116 124
        [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
117 125
        [% L.hidden_tag("record_forex", record_forex) %]
118
     </td>
119
    </tr>
126
        </td>
127
      </tr>
120 128
    [% END %]
121 129
    [% IF ALL_DEPARTMENTS %]
122 130
    <tr>
......
124 132
      <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class='wi-lightwide') %]</td>
125 133
    </tr>
126 134
    [% END %]
135
    <tr>
136
      <th>[% 'Transaction description' | $T8 %]</th>
137
      <td>[% L.input_tag("transaction_description", transaction_description, class="wi-lightwide", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]</td>
138
    </tr>
127 139
    <tr>
128 140
      <th>[% 'Tax Included' | $T8 %]</th>
129 141
      <th><input name="taxincluded" type="checkbox" value="1" [% IF ( taxincluded ) %]checked[% END %]></th>
......
153 165
    <tr>
154 166
      <td>
155 167
        <span class="label above">[% 'Payment Terms' | $T8 %]</span>
156
        [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('invdate')") %]
168
        [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, class="wi-wide", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('transdate')") %]
157 169
      </td>
158 170
    </tr>
159 171
  </tbody>
......
172 184
    </tr>
173 185
    <tr>
174 186
      <th>[% 'Invoice Date' | $T8 %]</th>
175
      <td>[% L.date_tag('transdate', transdate) %]</td>
187
      <td>[% L.date_tag('transdate', transdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("transdate")') %]</td>
176 188
    </tr>
177 189
    <tr>
178 190
      <th>[% 'Due Date' | $T8 %]</th>
......
220 232
      <td class="numeric">
221 233
        <input type="text" name="amount_[% i %]" size="10" value="[% temp = "amount_"_ i %][% $temp | html %]" class="numeric wi-small">
222 234
      </td>
223
      <td class="numeric">[% temp = "tax_"_ i %][% $temp | html %]</td>
235
      <td class="numeric">
236
        [% temp_r = "tax_reverse_"_ i %]
237
        [% IF ($temp_r) %]
238
          [% $temp_r | html %]
239
          &nbsp;&nbsp;&nbsp;
240
          [% temp_c = "tax_charge_"_ i %][% $temp_c | html %]
241
        [% ELSE %]
242
          [% temp = "tax_"_ i %][% $temp | html %]
243
        [% END %]
244
      </td>
224 245
      <td>
225 246
        [% temp = 'selected_taxchart_'_ i %] [% taxcharts = 'taxcharts_' _ i %]
226 247
        [% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, class='wi-lightwide') %]
......
364 385

  
365 386

  
366 387
<script type="text/javascript">
367
 $('#ap_set_to_paid_missing').click(function(){ $('input[id^="payment_paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
388
 $('#ap_set_to_paid_missing').click(function(){ $('input[id^="payment_paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });
368 389
</script>
templates/design40_webpages/ar/form_header.html
49 49

  
50 50
  <table class="tbl-horizontal">
51 51
    <caption>[% 'Customer &amp; Order' | $T8 %]</caption>
52
    <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
52 53
    <tbody>
53 54
      <tr>
54 55
        <th>[% 'Customer' | $T8 %]</th>
55 56
        <td>
56
         [% P.customer_vendor.picker("customer_id", customer_id, type="customer", style="width: 300px", class=(initial_focus == 'customer_id' ? "initial_focus" : ""), onchange="\$('#update_button').click()") %]
57
         [% P.customer_vendor.picker("customer_id", customer_id, type="customer", class=(initial_focus == 'customer_id' ? "initial_focus" : ""), onchange="\$('#update_button').click()") %]
57 58
         [% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %]
58 59
         [% L.hidden_tag("previous_customer_id", customer_id) %]
59 60
         [% L.hidden_tag('terms', terms) %]
......
131 132
          <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td>
132 133
        </tr>
133 134
      [% END %]
135
      <tr>
136
        <th>[% 'Transaction description' | $T8 %]</th>
137
        <td>[% L.input_tag("transaction_description", transaction_description, "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '', class="wi-lightwide") %]</td>
138
      </tr>
134 139
      <tr>
135 140
        <th></th>
136 141
        <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %] <label for="taxincluded">[% 'Tax Included' | $T8 %]</label></td>
......
161 166

  
162 167
  <table class="tbl-horizontal">
163 168
    <caption>[% 'Numbers & Dates' | $T8 %]</caption>
169
    <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
164 170
    <tbody>
165 171
      <tr>
166 172
        <th>[% 'Salesperson' | $T8 %]</th>
......
358 364
</div><!-- ./tabwidget -->
359 365

  
360 366
<script type="text/javascript">
361
 $('#ar_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
367
 $('#ar_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });
362 368
</script>

Auch abrufbar als: Unified diff