WebshopApi: kleinere Fehler nach Aufräumarbeiten
authorWerner Hahn <wh@futureworldsearch.net>
Tue, 26 Sep 2017 10:05:17 +0000 (12:05 +0200)
committerWerner Hahn <wh@futureworldsearch.net>
Tue, 26 Sep 2017 10:26:21 +0000 (12:26 +0200)
SL/ShopConnector/ALL.pm
templates/webpages/shop_order/show.html

index e579fb4..4aebe89 100644 (file)
@@ -2,6 +2,8 @@ package SL::ShopConnector::ALL;
 
 use strict;
 
+use SL::ShopConnector::Shopware;
+
 my %shop_connector_by_name = (
   shopware    => 'SL::ShopConnector::Shopware',
 );
index a4f2c7a..561bba8 100644 (file)
         <th>[% 'Extended'          | $T8 %]</th>
       </tr>
       <tr class="listrow">
-        <td>[% loop.index                                      %]</td>
+      [% FOREACH pos = IMPORT.shop_order_items %]
+        <td>[% loop.index+1                                      %]</td>
         <td>[% HTML.escape(pos.partnumber)                     %]</td>
         <td>[% HTML.escape(pos.description)                    %]</td>
         <td>[% pos.quantity_as_number                          %]</td>