From 350fba592256b332e51ba09c5f65bada3836784d Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Wed, 7 Apr 2021 18:58:47 +0200 Subject: [PATCH] Shops Standart Versandartikel --- sql/Pg-upgrade2/shops_4.sql | 6 ++++++ templates/webpages/shops/form.html | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 sql/Pg-upgrade2/shops_4.sql diff --git a/sql/Pg-upgrade2/shops_4.sql b/sql/Pg-upgrade2/shops_4.sql new file mode 100644 index 000000000..78fe6c7b0 --- /dev/null +++ b/sql/Pg-upgrade2/shops_4.sql @@ -0,0 +1,6 @@ +-- @tag: shop_4 +-- @description: Add column default_shipping_costs_parts_id +-- @depends: shops +-- @ignore: 0 + +ALTER TABLE shops ADD COLUMN shipping_costs_parts_id integer; diff --git a/templates/webpages/shops/form.html b/templates/webpages/shops/form.html index 280c61b09..aae9d8a8b 100644 --- a/templates/webpages/shops/form.html +++ b/templates/webpages/shops/form.html @@ -71,6 +71,10 @@ [% 'Transaction description' | $T8 %] [%- L.input_tag("shop.transaction_description", SELF.shop.transaction_description, size=size) %] + + [% 'Default part for shipping costs' | $T8 %] + [%- P.part.picker('shop.shipping_costs_parts_id', 'SELF.shop.shipping_costs_parts_id', style="width: 300px") %] + [% 'Obsolete' | $T8 %] [% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %] -- 2.20.1