X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Foe%2Fform_footer.html;h=fbeb52992a4fb86782db7f2b6e834cce75130129;hb=c7241bf7c547d63999898dee7b5dd486e4d122d3;hp=7c72a452e52eb150f6260a7abfc800aaafa40262;hpb=0f0cb3b708f9078b774a07cecd996e5bdc5fac63;p=kivitendo-erp.git
diff --git a/templates/webpages/oe/form_footer.html b/templates/webpages/oe/form_footer.html
index 7c72a452e..fbeb52992 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 %]
@@ -97,6 +107,12 @@
[% 'Subtotal' | $T8 %] |
[% LxERP.format_amount(invsubtotal, 2) %] |
+[%- END %]
+[%- IF rounding %]
+
+ [% 'Rounding' | $T8 %] |
+ [% LxERP.format_amount(rounding, 2) %] |
+
[%- END %]
[% tax %]
@@ -128,17 +144,24 @@
[% label_edit %]
-
-
-
-
+
+
+
+[% IF not tpca_reminder %]
+
+
+[% ELSE %]
+ [% IF warn_save_active_periodic_invoice %] [% warn_save_active_periodic_invoice=1 %] [% END %]
+ [% L.submit_tag('action_save', LxERP.t8('Save'), confirm=LxERP.t8('Missing transport cost: #1 Are you sure?', tpca_reminder), 'data-require-transaction-description'=INSTANCE_CONF.get_require_transaction_description_ps, 'data-warn-save-active-periodic-invoice'=warn_save_active_periodic_invoice) %]
+ [% L.submit_tag('action_save_and_close', LxERP.t8('Save and close'), confirm=LxERP.t8('Missing transport cost: #1 Are you sure?', tpca_reminder), 'data-require-transaction-description'=INSTANCE_CONF.get_require_transaction_description_ps, 'data-warn-save-active-periodic-invoice'=warn_save_active_periodic_invoice) %]
+[% END %]
[%- 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,10 +179,12 @@
[%- END %]
+ [%- IF allow_invoice %]
+ [%- END %]
[%- IF is_sales_ord || is_pur_ord %]
- [% heading %] als neue Vorlage verwenden für
+ [% heading %] [% 'to be used as template for' | $T8 %]
[%- IF is_sales_ord %]
@@ -182,3 +207,6 @@
[% END %]
+
|