X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcustomer_vendor%2Fform.html;h=2fce8d6d9909f907e941370b257c228f2c3bb2a1;hb=549f187d3a2b1d15f96c4556714666ed954447bb;hp=a5c43fbf30788d1058a91d4bf69673ca51c0330c;hpb=bec23a700e524b09e80fde2ec8178367aa3a16e2;p=kivitendo-erp.git diff --git a/templates/webpages/customer_vendor/form.html b/templates/webpages/customer_vendor/form.html index a5c43fbf3..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" %] @@ -66,6 +81,9 @@ [% IF SELF.cv.id %] [% PROCESS "customer_vendor/tabs/price_rules.html" %] [% END %] + [% IF ( SELF.cv.id && SELF.cv.pricegroup_id && AUTH.assert('part_service_assembly_details', 1) ) %] + [% PROCESS "customer_vendor/tabs/price_list.html" %] + [% END %]