X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/03d3d025ea4c8bea085fc7cdf1fe7be0b513eb63..f775b88a24af70fd667683ee235adc2d450e83b9:/templates/webpages/oe/form_footer.html diff --git a/templates/webpages/oe/form_footer.html b/templates/webpages/oe/form_footer.html index 7c72a452e..9dd893e8d 100644 --- a/templates/webpages/oe/form_footer.html +++ b/templates/webpages/oe/form_footer.html @@ -2,6 +2,15 @@ [%- USE HTML %] [%- USE LxERP %] [%- USE L %] +[%- IF is_req_quo || is_pur_ord %] + [%- SET allow_invoice=1 %] +[%- ELSIF is_sales_quo && INSTANCE_CONF.get_allow_sales_invoice_from_sales_quotation %] + [%- SET allow_invoice=1 %] +[%- ELSIF is_sales_ord && INSTANCE_CONF.get_allow_sales_invoice_from_sales_order %] + [%- SET allow_invoice=1 %] +[%- ELSE %] + [%- SET allow_invoice=0 %] +[%- END %] @@ -40,6 +49,7 @@ [% L.button_tag("edit_periodic_invoices_config(); return false;", LxERP.t8('Configure')) %] ([% HTML.escape(periodic_invoices_status) %]) [% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %] + ? [%- END %] @@ -128,17 +138,17 @@ [% label_edit %]
- - - - + + + + [%- IF id %]
[% label_workflow %]
- + [%- UNLESS (is_sales_ord && !INSTANCE_CONF.get_sales_order_show_delete) || (is_pur_ord && !INSTANCE_CONF.get_purchase_order_show_delete) %] [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %] @@ -156,7 +166,9 @@ [%- END %] + [%- IF allow_invoice %] + [%- END %] [%- IF is_sales_ord || is_pur_ord %]
[% heading %] als neue Vorlage verwenden für
@@ -182,3 +194,6 @@ [% END %] +