Shops Standart Versandartikel
authorWerner Hahn <wh@futureworldsearch.net>
Wed, 7 Apr 2021 16:58:47 +0000 (18:58 +0200)
committerWerner Hahn <wh@futureworldsearch.net>
Thu, 24 Jun 2021 14:44:57 +0000 (16:44 +0200)
sql/Pg-upgrade2/shops_4.sql [new file with mode: 0644]
templates/webpages/shops/form.html

diff --git a/sql/Pg-upgrade2/shops_4.sql b/sql/Pg-upgrade2/shops_4.sql
new file mode 100644 (file)
index 0000000..78fe6c7
--- /dev/null
@@ -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;
index 280c61b..aae9d8a 100644 (file)
     <th align="right">[% 'Transaction description' | $T8 %]</th>
     <td>[%- L.input_tag("shop.transaction_description", SELF.shop.transaction_description, size=size) %]</td>
   </tr>
+  <tr>
+    <th align="right">[% 'Default part for shipping costs' | $T8 %]</th>
+    <td>[%- P.part.picker('shop.shipping_costs_parts_id', 'SELF.shop.shipping_costs_parts_id', style="width: 300px") %]</td>
+  </tr>
   <tr>
     <th align="right">[% 'Obsolete' | $T8 %]</th>
     <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>