Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9474d0ec

Von Bernd Bleßmann vor mehr als 6 Jahren hinzugefügt

  • ID 9474d0ec69d9eda0d96ab616c1dd8c0ccaa8c07b
  • Vorgänger faf31da3
  • Nachfolger f2b3e089

Auftrags-Controller: Anzeige mit Infos über den Kunden-/Lieferantentyp

Unterschiede anzeigen:

SL/Controller/Order.pm
594 594
  $self->js
595 595
    ->replaceWith('#order_cp_id',            $self->build_contact_select)
596 596
    ->replaceWith('#order_shipto_id',        $self->build_shipto_select)
597
    ->replaceWith('#business_info_row',      $self->build_business_info_row)
597 598
    ->val(        '#order_taxzone_id',       $self->order->taxzone_id)
598 599
    ->val(        '#order_taxincluded',      $self->order->taxincluded)
599 600
    ->val(        '#order_payment_id',       $self->order->payment_id)
......
1016 1017
  );
1017 1018
}
1018 1019

  
1020
# render the info line for business
1021
#
1022
# Needed, if customer/vendor changed.
1023
sub build_business_info_row
1024
{
1025
  $_[0]->p->render('order/tabs/_business_info_row', SELF => $_[0]);
1026
}
1027

  
1019 1028
# build the rows for displaying taxes
1020 1029
#
1021 1030
# Called if amounts where recalculated and redisplayed.
......
1695 1704

  
1696 1705
=over 4
1697 1706

  
1707
=item * C<template/webpages/order/tabs/_business_info_row.html>
1708

  
1709
For displaying information on business type
1710

  
1698 1711
=item * C<template/webpages/order/tabs/_item_input.html>
1699 1712

  
1700 1713
The input line for items
templates/webpages/order/tabs/_business_info_row.html
1
[%- USE T8 %][%- USE HTML %]
2

  
3
<tr id='business_info_row' [%- IF !SELF.order.customervendor.business_id %]style='display:none'[%- END %]>
4
  <th align="right">[%- IF SELF.cv == 'customer' -%]
5
                      [%- 'Customer type' | $T8 -%]
6
                    [%- ELSE -%]
7
                      [%- 'Vendor type' | $T8 -%]
8
                    [%- END -%]</th>
9
  <td>[% HTML.escape(SELF.order.customervendor.business.description) %]; [% 'Trade Discount' | $T8 %] [% SELF.order.customervendor.business.discount_as_percent %] %</td>
10
</tr>
templates/webpages/order/tabs/basic_data.html
39 39
                                style='width: 300px') %]</td>
40 40
          </tr>
41 41

  
42
          [%- PROCESS order/tabs/_business_info_row.html SELF=SELF %]
43

  
42 44
          <tr>
43 45
            <th align="right">[% 'Steuersatz' | $T8 %]</th>
44 46
            <td>[% L.select_tag('order.taxzone_id', SELF.all_taxzones, default=SELF.order.taxzone_id, title_key='description', style='width: 300px', class='recalc') %]</td>

Auch abrufbar als: Unified diff