Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 61c7dc72

Von Werner Hahn vor mehr als 8 Jahren hinzugefügt

  • ID 61c7dc7247324af6879af7694ba5066ed6b02847
  • Vorgänger 0beeea08
  • Nachfolger 038e3d02

Shoporder: transferable kenntlicht gemacht

Unterschiede anzeigen:

SL/Controller/ShopOrder.pm
40 40
  my $shop_orders = SL::DB::Manager::ShopOrder->get_all( %filter, sort_by => $sort_by,
41 41
                                                      with_objects => ['shop_order_items'],
42 42
                                                    );
43
  $::lxdebug->dump(0, "WH: IMPORTS ",  \$shop_orders);
43
  $::lxdebug->dump(0, "WH: IMPORTS I ",  \$shop_orders);
44
  foreach my $shop_order ( @$shop_orders ) {
45
  $::lxdebug->dump(0, "WH: IMPORTS II ",  $shop_order);
46
    my %billing_address = ( 'name'     => $shop_order->billing_lastname,
47
                            'company'  => $shop_order->billing_company,
48
                            'street'   => $shop_order->billing_street,
49
                            'zipcode'  => $shop_order->billing_zipcode,
50
                            'city'     => $shop_order->billing_city,
51
                          );
52
    my $b_address = $self->check_address(%billing_address);
53
    $shop_order->{kivi_cv_id} = $b_address;
54
  }
55
  $::lxdebug->dump(0, "WH: IMPORTS III ",  \$shop_orders);
44 56
  $self->render('shop_order/list',
45 57
                title       => t8('ShopOrders'),
46 58
                SHOPORDERS  => $shop_orders,
templates/webpages/shop_order/list.html
128 128
   </tr>
129 129
  </thead>
130 130
  [% FOREACH shop_order = SHOPORDERS %]
131
    [% IF shop_order.kivi_cv_id %] [% SET transferable = 1 %] [% SET transferable_class = 'style="background-color:green;"' %] [% ELSE %] [% SET transferable = 0 %] [% SET transferable_class = '' %][% END %]
131 132
  <tr class="listrow">
132 133
    <td>[% HTML.escape(shop_order.host) %]</td>
133 134
    <td>[% shop_order.order_date.dmy('.') _ ' ' _ shop_order.order_date.hms(':') %]</td>
......
138 139
      <br>[% HTML.escape(shop_order.customer_street) %]
139 140
      <br>[% HTML.escape(shop_order.customer_zipcode) %]&nbsp;[% HTML.escape(shop_order.customer_city) %]
140 141
      <br>[% HTML.escape(shop_order.customer_country) %] </td>
141
    <td>[% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
142
    <td [% transferable_class %]>[% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
142 143
      <b>[% HTML.escape(shop_order.billing_lastname) %],&nbsp;[% HTML.escape(shop_order.billing_firstname) %]</b>
143 144
      <br>[% HTML.escape(shop_order.billing_street) %]
144 145
      <br>[% HTML.escape(shop_order.billing_zipcode) %]&nbsp;[% HTML.escape(shop_order.billing_city) %]

Auch abrufbar als: Unified diff