[%- USE HTML %][%- USE L -%][%- USE P -%][%- USE LxERP -%] [%- USE Dumper %] [%- USE JavaScript -%]

[% LxERP.t8("Active shops:") %]

[%# L.dump(SELF.part) %] [%- FOREACH shop_part = SELF.part.shop_parts %] [% IF !shop_part.shop.obsolete %] [% END %] [%- END %] [%- FOREACH shop = SELF.shops_not_assigned %] [%- END %]
[% LxERP.t8("Shop") %] [% LxERP.t8("Active") %] [% LxERP.t8("Shop part") %] [% LxERP.t8("Price source") %] [% LxERP.t8("Price") %] [% LxERP.t8("Stock Local/Shop") %] [% LxERP.t8("Last update") %] [% LxERP.t8("Action") %] [% LxERP.t8("Action") %] [% LxERP.t8("Action") %]
[% HTML.escape( shop_part.shop.description ) %] [% L.html_tag('span', shop_part.active, id => 'shop_part_active_' _ shop_part.id ) %] [% 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 %] [% L.html_tag('span',LxERP.t8(), id => 'active_price_source_' _ shop_part.id) %] [% L.html_tag('span','Price', id => 'price_' _ shop_part.id) %] [% L.html_tag('span','Stock', id => 'stock_' _ shop_part.id) %] [% L.html_tag('span', shop_part.last_update.to_kivitendo('precision' => 'minute'), id => 'shop_part_last_update_' _ shop_part.id ) %] [% L.button_tag("kivi.ShopPart.edit_shop_part(" _ shop_part.id _ ")", LxERP.t8("Edit")) %] [% L.button_tag("kivi.ShopPart.update_shop_part(" _ shop_part.id _ ")", LxERP.t8("Upload")) %] [% L.button_tag("kivi.ShopPart.get_all_categories(" _ shop_part.id _ ")", LxERP.t8("Shopcategories")) %]
[% IF shop_part.shop_category %] [% IF shop_part.shop_category.1.size > 1%] [% FOREACH cat = shop_part.shop_category %] [% HTML.escape(cat.1) %]
[% END %] [% ELSE %] [% HTML.escape(shop_part.shop_category.1) %]
[% END %] [% END %]
[% HTML.escape( shop.description ) %] [% L.button_tag("kivi.ShopPart.create_shop_part(" _ id _ ", " _ shop.id _ ")", LxERP.t8("Add")) %]
[% # L.dump(shop_part) %]

[% LxERP.t8("Shopimages - valid for all shops") %]

[%- IF shop_part.part_id %]
[%- ELSE %]
[% LxERP.t8('To upload images: Please create shoppart first') %]
[%- END %]