WebshopApi: neues Feld order_lock in customers
authorWerner Hahn <wh@futureworldsearch.net>
Fri, 22 Sep 2017 00:37:35 +0000 (02:37 +0200)
committerWerner Hahn <wh@futureworldsearch.net>
Tue, 26 Sep 2017 10:25:02 +0000 (12:25 +0200)
SL/DB/MetaSetup/Customer.pm
sql/Pg-upgrade2/customer_orderlock.sql [new file with mode: 0644]
templates/webpages/customer_vendor/tabs/billing.html

index 2b241ab..1bf34fb 100644 (file)
@@ -46,6 +46,7 @@ __PACKAGE__->meta->columns(
   name                      => { type => 'text', not_null => 1 },
   notes                     => { type => 'text' },
   obsolete                  => { type => 'boolean', default => 'false' },
+  order_lock                => { type => 'boolean', default => 'false' },
   payment_id                => { type => 'integer' },
   phone                     => { type => 'text' },
   pricegroup_id             => { type => 'integer' },
diff --git a/sql/Pg-upgrade2/customer_orderlock.sql b/sql/Pg-upgrade2/customer_orderlock.sql
new file mode 100644 (file)
index 0000000..7ce2c21
--- /dev/null
@@ -0,0 +1,5 @@
+-- @tag: customer_orderlock
+-- @description: Boolean Auftragssperre benötigt bei shoporders
+-- @depends: release_3_4_1 shops
+-- @ignore: 0
+ALTER TABLE customer ADD COLUMN order_lock boolean default 'f';
index 0ba92d7..3364df1 100644 (file)
      <tr>
       <th align="right">[%- LxERP.t8("Hourly rate") %]</th>
       <td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number) %]</td>
+      <th align="right" valign="top" nowrap>[% 'Shoporderlock' | $T8 %]</th>
+      <td>
+        [% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]
+      </td>
      </tr>
     [% END %]
   </table>