X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/38c53226930dcdde12d6e017d6b6e26df13bbadd..52f5223a1dcf:/templates/webpages/order/tabs/_row.html diff --git a/templates/webpages/order/tabs/_row.html b/templates/webpages/order/tabs/_row.html index de1ad0210..ef51eef07 100644 --- a/templates/webpages/order/tabs/_row.html +++ b/templates/webpages/order/tabs/_row.html @@ -100,9 +100,16 @@ ITEM.active_price_source.source_description _ ' | ' _ ITEM.active_discount_source.source_description, name = "price_chooser_button") %] + [% SET RIGHT_TO_EDIT_PRICES = 0 %] + [% IF (SELF.type == "sales_order" || SELF.type == "sales_quotation") %] + [% SET RIGHT_TO_EDIT_PRICES = AUTH.assert('sales_edit_prices', 1) %] + [% END %] + [% IF (SELF.type == "purchase_order" || SELF.type == "request_quotation") %] + [% SET RIGHT_TO_EDIT_PRICES = AUTH.assert('purchase_edit_prices', 1) %] + [% END %]