Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ecd52c70

Von Cem Aydin vor fast 4 Jahren hinzugefügt

  • ID ecd52c7068c428ab98e4984f86e6d5fb2e96d75f
  • Vorgänger 636b9c92
  • Nachfolger 26429724

Neues Design Bugfix: Anzahl Spalten Positionstabellen Angebot/Auftrag korrigiert

Wenn Umsatzsteuer aktiv müssen die Zeilen Steuern und Summen, bei
Auftrag und Lieferantenauftrag, weiter eingerückt werden.

Unterschiede anzeigen:

SL/Controller/Order.pm
1233 1233

  
1234 1234
  my $rows_as_html;
1235 1235
  foreach my $tax (sort { $a->{tax}->rate cmp $b->{tax}->rate } @{ $self->{taxes} }) {
1236
    $rows_as_html .= $self->p->render('order/tabs/_tax_row', TAX => $tax, TAXINCLUDED => $self->order->taxincluded);
1236
    $rows_as_html .= $self->p->render(
1237
      'order/tabs/_tax_row',
1238
      TAX => $tax,
1239
      TAXINCLUDED => $self->order->taxincluded,
1240
      QUOTATION => $self->order->quotation
1241
    );
1237 1242
  }
1238 1243
  return $rows_as_html;
1239 1244
}
templates/webpages/order/tabs/_tax_row.html
3 3
[% USE LxERP %]
4 4
[% USE L %]
5 5

  
6
[% IF QUOTATION %]
7
  [% SET n_col = 10 %]
8
[% ELSE %]
9
  [% SET n_col = 11 %]
10
[% END %]
11

  
6 12
<tr class="tax_row">
7
  <td colspan="11"></td>
13
  <td colspan="[%- n_col %]"></td>
8 14
  <th colspan="3">[% IF TAXINCLUDED %][% 'Including' | $T8 %]&nbsp;[% END %][% TAX.tax.taxdescription %] [% TAX.tax.rate_as_percent %]%</th>
9 15
  <td class="numeric">[% LxERP.format_amount(TAX.amount, 2, 0) %]</td>
10 16
</tr>
11 17
[% IF TAXINCLUDED %]
12 18
<tr class="tax_row">
13
  <td colspan="11"></td>
19
  <td colspan="[%- n_col %]"></td>
14 20
  <th colspan="3">[% 'Net amount' | $T8 %]</th>
15 21
  <td class="numeric">[% LxERP.format_amount(TAX.netamount, 2, 0) %]</td>
16 22
</tr>
templates/webpages/order/tabs/basic_data.html
329 329
    [% PROCESS order/tabs/_row.html ITEM=item ID=(item.id||item.new_fake_id) TYPE=SELF.type ALL_PRICE_FACTORS=SELF.all_price_factors SEARCH_CVPARTNUMBER=SELF.search_cvpartnumber %]
330 330
  [% END %]
331 331
  <tfoot>
332
    [% IF (SELF.type == "sales_quotation") || (SELF.type == "request_quotation") %]
333
      [% SET add_col = 0 %]
334
    [% ELSE %]
335
      [% SET add_col = 1 %]
336
    [% END %]
332 337
    <tr id="subtotal_row_id">
333
      <td colspan="11"></td>
338
      <td colspan="[%- 10 + add_col %]"></td>
334 339
      <th colspan="3">[% IF SELF.order.taxincluded %][% 'Subtotal' | $T8 %][% END %]</th>
335 340
      <td>[% IF SELF.order.taxincluded %][% L.div_tag(SELF.order.netamount_as_number, id='netamount_id') %][% END %]</td>
336 341
    </tr>
337 342
    [% FOREACH tax = SELF.taxes %]
338
      [% PROCESS order/tabs/_tax_row.html TAX=tax TAXINCLUDED=SELF.order.taxincluded %]
343
      [% PROCESS order/tabs/_tax_row.html TAX=tax TAXINCLUDED=SELF.order.taxincluded QUOTATION=SELF.order.quotation %]
339 344
    [% END %]
340 345
    <tr id="amount_row_id">
341 346
      [%- IF (SELF.type == "sales_order" || SELF.type == "sales_quotation") -%]
......
345 350
      <th colspan="2">[% 'Ertrag prozentual' | $T8 %]</th>
346 351
      <td class="numeric">[%- LxERP.format_amount(SELF.order.marge_percent, 2) %] %</td>
347 352
      [%- ELSE -%]
348
      <td colspan="7">
353
      <td colspan="7"></td>
349 354
      [%- END -%]
350
      <td colspan="4">
355
      <td colspan="[%- 3 + add_col %]"></td>
351 356
      <th colspan="3">[% 'Total' | $T8 %]</th>
352 357
      <td class="numeric">[% L.div_tag(SELF.order.amount_as_number, id='amount_id') %]</td>
353 358
    </tr>

Auch abrufbar als: Unified diff