Revision 065dfd0a
Von Jan Büren vor mehr als 3 Jahren hinzugefügt
SL/ShopConnector/Shopware6.pm | ||
---|---|---|
my $update_p;
|
||
$update_p->{productNumber} = $part->partnumber;
|
||
$update_p->{name} = $part->description;
|
||
$update_p->{description} = $shop_part->shop->use_part_longdescription
|
||
? $part->notes
|
||
: $shop_part->shop_description;
|
||
|
||
|
||
$update_p->{stock} = $::form->round_amount($part->onhand, 0) if ($todo =~ m/(stock|all)/);
|
||
# JSON::true JSON::false
|
templates/webpages/part/_shop.html | ||
---|---|---|
<th>[% LxERP.t8("Action") %]</th>
|
||
</tr>
|
||
</thead>
|
||
[% # L.dump(SELF.part) %]
|
||
[%# L.dump(SELF.part) %]
|
||
[%- FOREACH shop_part = SELF.part.shop_parts %]
|
||
[% IF !shop_part.shop.obsolete %]
|
||
|
||
<tr class="listrow">
|
||
<td>[% HTML.escape( shop_part.shop.description ) %]</td>
|
||
<td>[% L.html_tag('span', shop_part.active, id => 'shop_part_active_' _ shop_part.id ) %]</td>
|
||
<td>[% L.html_tag('span', shop_part.shop_description, id => 'shop_part_description_' _ shop_part.id ) %]</td>
|
||
<td>
|
||
[% IF shop_part.shop.use_part_longdescription %]
|
||
[% L.html_tag('span', shop_part.part.notes, id => 'shop_part_description_' _ shop_part.id ) %]
|
||
[% ELSE %]
|
||
[% L.html_tag('span', shop_part.shop_description, id => 'shop_part_description_' _ shop_part.id ) %]
|
||
[% END %]
|
||
</td>
|
||
<td>[% L.html_tag('span',LxERP.t8(), id => 'active_price_source_' _ shop_part.id) %] </td>
|
||
<td>[% L.html_tag('span','Price', id => 'price_' _ shop_part.id) %]</td>
|
||
<td>[% L.html_tag('span','Stock', id => 'stock_' _ shop_part.id) %]</td>
|
templates/webpages/shop_part/edit.html | ||
---|---|---|
[%- L.hidden_tag("shop_part.part_id", FORM.part_id) %]
|
||
[% END %]
|
||
|
||
[% # L.dump(SELF.shop_part.shop) %]
|
||
<table>
|
||
<tr>
|
||
<td>[% LxERP.t8("Description") %]</td>
|
||
<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>
|
||
<td colspan="3">
|
||
[% IF SELF.shop_part.shop.use_part_longdescription %]
|
||
[% L.textarea_tag('shop_part.part.notes', SELF.shop_part.part.notes, wrap="soft", readonly="readonly", style="width: 350px; height: 150px", class="texteditor") %]
|
||
[% ELSE %]
|
||
[% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
|
||
[% END %]
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>[% LxERP.t8("Active") %]</td>
|
templates/webpages/shops/form.html | ||
---|---|---|
<th align="right">[% 'Obsolete' | $T8 %]</th>
|
||
<td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Use Long Description from Parts for Shop Long Description' | $T8 %]</th>
|
||
<td>[% L.yes_no_tag('shop.use_part_longdescription', SELF.shop.use_part_longdescription) %]</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<hr>
|
Auch abrufbar als: Unified diff
Shopware6: Entweder shop_part.shop_description oder part.notes verwenden