X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcustomer_vendor%2Fform.html;h=2fce8d6d9909f907e941370b257c228f2c3bb2a1;hb=549f187d3a2b1d15f96c4556714666ed954447bb;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..2fce8d6d9 100644 --- a/templates/webpages/customer_vendor/form.html +++ b/templates/webpages/customer_vendor/form.html @@ -16,18 +16,25 @@ [%- 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" %] + [% IF SELF.is_customer %] + [% PROCESS "customer_vendor/tabs/additional_billing_addresses.html" %] + [% END %] [% 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" %]