X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Foe%2Fform_footer.html;h=d58ab741695219f1c260c8514b49415ae92df6f0;hb=5e55cce6abaf16fb9425bcdc5a669eaaddca3319;hp=c9078ef988a6bafa1415b59d078c3f87d4c3ced7;hpb=87e65e6c1cc64bfb2d73b6914ed2ef136861dd42;p=kivitendo-erp.git diff --git a/templates/webpages/oe/form_footer.html b/templates/webpages/oe/form_footer.html index c9078ef98..d58ab7416 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 %]
[% 'Payment Terms' | $T8 %] | -- [%- INCLUDE 'generic/multibox.html' - name = 'payment_id', - style = 'width: 250px', - DATA = ALL_PAYMENTS, - id_key = 'id', - label_key = 'description', - show_empty = 1 -%] - | -[% L.select_tag('payment_id', ALL_PAYMENTS, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %] | + +
---|---|
[% 'Delivery Terms' | $T8 %] | +[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %] | +
[% 'Total weight' | $T8 %] | ++ [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %] + | +
---|
[% 'Rounding' | $T8 %] | +[% LxERP.format_amount(rounding, 2) %] | +
---|---|
[% 'Total' | $T8 %] | [% LxERP.format_amount(invtotal, 2) %]
@@ -112,20 +136,30 @@
[% 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 AND INSTANCE_CONF.get_doc_storage %] + +[%- 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?')) %] [%- END %] [%- IF is_sales_quo %] @@ -136,14 +170,16 @@ [%- END %] - [%- IF is_sales_ord || is_pur_ord && !delivered%] + [%- IF is_sales_ord || is_pur_ord %] [%- 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 %] @@ -166,3 +202,6 @@ [% END %] + |