From: Werner Hahn Date: Fri, 22 Sep 2017 00:37:35 +0000 (+0200) Subject: WebshopApi: neues Feld order_lock in customers X-Git-Tag: release-3.5.4~786 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5a7d0c524efa47b2de1c2cb7c0b33d3955e5110d;p=kivitendo-erp.git WebshopApi: neues Feld order_lock in customers --- diff --git a/SL/DB/MetaSetup/Customer.pm b/SL/DB/MetaSetup/Customer.pm index 2b241ab0d..1bf34fbdc 100644 --- a/SL/DB/MetaSetup/Customer.pm +++ b/SL/DB/MetaSetup/Customer.pm @@ -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 index 000000000..7ce2c2120 --- /dev/null +++ b/sql/Pg-upgrade2/customer_orderlock.sql @@ -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'; diff --git a/templates/webpages/customer_vendor/tabs/billing.html b/templates/webpages/customer_vendor/tabs/billing.html index 0ba92d7e5..3364df12d 100644 --- a/templates/webpages/customer_vendor/tabs/billing.html +++ b/templates/webpages/customer_vendor/tabs/billing.html @@ -353,6 +353,10 @@ [%- LxERP.t8("Hourly rate") %] [% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number) %] + [% 'Shoporderlock' | $T8 %] + + [% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %] + [% END %]