X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcustomer_vendor%2Fform.html;h=b726c1b75f93c52473d2c2509a45ea7986c9a76f;hb=ce73964f91267ab5eecb2832765efbb3752c2a59;hp=3b461e83719353681b7300cc9e0c4ec5131a1e36;hpb=ffe5434804888bf520dd69832d0f74d89bcf9999;p=kivitendo-erp.git diff --git a/templates/webpages/customer_vendor/form.html b/templates/webpages/customer_vendor/form.html index 3b461e837..b726c1b75 100644 --- a/templates/webpages/customer_vendor/form.html +++ b/templates/webpages/customer_vendor/form.html @@ -16,18 +16,23 @@ [%- INCLUDE 'common/flash.html' %] + [%- SET show_deliveries = ( SELF.cv.id && ((SELF.is_customer && AUTH.assert('sales_all_edit', 1)) || (SELF.is_vendor && AUTH.assert('purchase_all_edit', 1))) ) -%]
[% PROCESS "customer_vendor/tabs/billing.html" %] + [% PROCESS "customer_vendor/tabs/additional_billing_addresses.html" %] [% PROCESS "customer_vendor/tabs/bank.html" %] [% PROCESS "customer_vendor/tabs/shipto.html" %] [% PROCESS "customer_vendor/tabs/contacts.html" %] - [% IF ( SELF.cv.id && AUTH.assert('sales_all_edit', 1) ) %] + [% IF show_deliveries %] [% PROCESS "customer_vendor/tabs/deliveries.html" %] [% END %] + [% PROCESS 'webdav/_list.html' %] [% PROCESS "customer_vendor/tabs/vcnotes.html" %] [% IF ( cv_cvars.size ) %] [% PROCESS "customer_vendor/tabs/custom_variables.html" %]