Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 065dfd0a

Von Jan Büren vor etwa 3 Jahren hinzugefügt

  • ID 065dfd0a98ddfe3adc017f6bd2a89668a2739285
  • Vorgänger ba817380
  • Nachfolger 1a08d2aa

Shopware6: Entweder shop_part.shop_description oder part.notes verwenden

Unterschiede anzeigen:

SL/ShopConnector/Shopware6.pm
138 138
  my $update_p;
139 139
  $update_p->{productNumber} = $part->partnumber;
140 140
  $update_p->{name}          = $part->description;
141
  $update_p->{description}   =   $shop_part->shop->use_part_longdescription
142
                               ? $part->notes
143
                               : $shop_part->shop_description;
144

  
141 145

  
142 146
  $update_p->{stock}  = $::form->round_amount($part->onhand, 0) if ($todo =~ m/(stock|all)/);
143 147
  # JSON::true JSON::false
templates/webpages/part/_shop.html
18 18
   <th>[% LxERP.t8("Action") %]</th>
19 19
  </tr>
20 20
  </thead>
21
  [% # L.dump(SELF.part) %]
21
  [%#  L.dump(SELF.part) %]
22 22
  [%- FOREACH shop_part = SELF.part.shop_parts %]
23 23
  [% IF !shop_part.shop.obsolete %]
24

  
24 25
  <tr class="listrow">
25 26
   <td>[% HTML.escape( shop_part.shop.description ) %]</td>
26 27
   <td>[% L.html_tag('span', shop_part.active, id => 'shop_part_active_' _ shop_part.id ) %]</td>
27
   <td>[% L.html_tag('span', shop_part.shop_description, id => 'shop_part_description_' _ shop_part.id ) %]</td>
28
   <td>
29
    [% IF shop_part.shop.use_part_longdescription %]
30
      [% L.html_tag('span', shop_part.part.notes, id => 'shop_part_description_' _ shop_part.id ) %]
31
    [% ELSE %]
32
      [% L.html_tag('span', shop_part.shop_description, id => 'shop_part_description_' _ shop_part.id ) %]
33
    [% END %]
34
  </td>
28 35
   <td>[% L.html_tag('span',LxERP.t8(), id => 'active_price_source_' _ shop_part.id) %] </td>
29 36
   <td>[% L.html_tag('span','Price', id => 'price_' _ shop_part.id) %]</td>
30 37
   <td>[% L.html_tag('span','Stock', id => 'stock_' _ shop_part.id) %]</td>
templates/webpages/shop_part/edit.html
18 18
    [%- L.hidden_tag("shop_part.part_id", FORM.part_id) %]
19 19
    [% END %]
20 20

  
21
  [% # L.dump(SELF.shop_part.shop) %]
21 22
    <table>
22 23
    <tr>
23 24
     <td>[% LxERP.t8("Description") %]</td>
24
     <td colspan="3">[% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]</td>
25
     <td colspan="3">
26
       [% IF SELF.shop_part.shop.use_part_longdescription %]
27
         [% L.textarea_tag('shop_part.part.notes', SELF.shop_part.part.notes, wrap="soft", readonly="readonly", style="width: 350px; height: 150px", class="texteditor") %]
28
       [% ELSE %]
29
         [% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
30
       [% END %]
31
     </td>
25 32
    </tr>
26 33
    <tr>
27 34
     <td>[% LxERP.t8("Active") %]</td>
templates/webpages/shops/form.html
79 79
    <th align="right">[% 'Obsolete' | $T8 %]</th>
80 80
    <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
81 81
  </tr>
82
  <tr>
83
    <th align="right">[% 'Use Long Description from Parts for Shop Long Description' | $T8 %]</th>
84
    <td>[% L.yes_no_tag('shop.use_part_longdescription', SELF.shop.use_part_longdescription) %]</td>
85
  </tr>
82 86
</table>
83 87

  
84 88
 <hr>

Auch abrufbar als: Unified diff