X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Foe%2Fform_footer.html;h=9f0b6db3ab25274f90f74b5bcc15f9aa946e5732;hb=61d88e69bd686dcc00bc3cb0cbfa37bc808cebeb;hp=5af01028b5329907fbfce666997c712564790860;hpb=57463eed482c9f107a6bb35d8b24d666175570a3;p=kivitendo-erp.git diff --git a/templates/webpages/oe/form_footer.html b/templates/webpages/oe/form_footer.html index 5af01028b..9f0b6db3a 100644 --- a/templates/webpages/oe/form_footer.html +++ b/templates/webpages/oe/form_footer.html @@ -1,6 +1,16 @@ [%- USE T8 %] [%- 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 %] @@ -26,7 +36,24 @@ label_key = 'description', show_empty = 1 -%] + + + + + + +[%- IF is_sales_ord %] + + + +[%- END %] + [%- IF id && num_follow_ups %] @@ -34,28 +61,45 @@ [%- END %]
[% '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') %]
[%- LxERP.t8('Periodic Invoices') %] + [% 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) %] + ? +
[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due_follow_ups) %]
+ [%- IF show_weight %] + + + + + + +
[% 'Total weight' | $T8 %] + [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %] +
+ + [%- END %] [%- IF is_sales %] - + - + - - -
[% 'Ertrag' | $T8 %][% LxERP.format_amount(marge_total, 2) %] + [% LxERP.format_amount(marge_total, 2) %] + +
[% 'Ertrag prozentual' | $T8 %][% LxERP.format_amount(marge_percent, 2) %] + [% LxERP.format_amount(marge_percent, 2) %] + + %
[%- END %] + [%- IF taxaccounts %] - [% 'Tax Included' | $T8 %]

+ + [% 'Tax Included' | $T8 %]

[%- END %] [%- IF NOT taxincluded %] @@ -67,7 +111,10 @@ [% tax %] - +
[% 'Total' | $T8 %][% LxERP.format_amount(invtotal, 2) %][% LxERP.format_amount(invtotal, 2) %] + + +
@@ -75,59 +122,44 @@ - - - -
- + -[%- IF webdav %] - - Dokumente im Webdav-Repository - - - - - - - - - [%- FOREACH file = WEBDAV %] - - - - - [%- END %] -
DateinameWebdavlink
[% HTML.escape(file.name) %][% HTML.escape(file.type) %]
- - - -
- -[%- END %] + +[%- PROCESS 'webdav/_list.html' %] +
+ [%- LxERP.t8("Loading...") %] +
+ - - - [% print_options %] - - - +
+ +

[% print_options %]

[% 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?')) %] + [%- END %] [%- IF is_sales_quo %] @@ -137,11 +169,13 @@ [%- 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
@@ -159,7 +193,7 @@ - + [% IF vc == 'customer' %] [% ELSE %] @@ -167,6 +201,6 @@ [% END %] - - - +