Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f9210dae

Von Cem Aydin vor fast 4 Jahren hinzugefügt

  • ID f9210dae67f7b5f868399b4371d2595abf707047
  • Vorgänger 077df834

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
1278 1278

  
1279 1279
  my $rows_as_html;
1280 1280
  foreach my $tax (sort { $a->{tax}->rate cmp $b->{tax}->rate } @{ $self->{taxes} }) {
1281
    $rows_as_html .= $self->p->render('order/tabs/_tax_row', TAX => $tax, TAXINCLUDED => $self->order->taxincluded);
1281
    $rows_as_html .= $self->p->render(
1282
      'order/tabs/_tax_row',
1283
      TAX => $tax,
1284
      TAXINCLUDED => $self->order->taxincluded,
1285
      ADD_COL => $self->order->quotation ? 0 : 1
1286
    );
1282 1287
  }
1283 1288
  return $rows_as_html;
1284 1289
}
templates/webpages/order/tabs/_tax_row.html
4 4
[% USE L %]
5 5

  
6 6
<tr class="tax_row">
7
  <td colspan="11"></td>
7
  <td colspan="[% 10 + ADD_COL %]"></td>
8 8
  <th colspan="3">[% IF TAXINCLUDED %][% 'Including' | $T8 %]&nbsp;[% END %][% TAX.tax.taxdescription %] [% TAX.tax.rate_as_percent %]%</th>
9 9
  <td class="numeric">[% LxERP.format_amount(TAX.amount, 2, 0) %]</td>
10 10
</tr>
11 11
[% IF TAXINCLUDED %]
12 12
<tr class="tax_row">
13
  <td colspan="11"></td>
13
  <td colspan="[% 10 + ADD_COL %]"></td>
14 14
  <th colspan="3">[% 'Net amount' | $T8 %]</th>
15 15
  <td class="numeric">[% LxERP.format_amount(TAX.netamount, 2, 0) %]</td>
16 16
</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 ADD_COL=add_col %]
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