From 6b68cf8878eab02fbfeb3c14c5136fe69716e0b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 8 Jul 2021 13:17:15 +0200 Subject: [PATCH] Kreditorenbuchung: Bei Verbleib in der Maske nach Buchen Dokumenten-Tab laden --- bin/mozilla/ap.pl | 2 +- js/kivi.AP.js | 4 ++++ templates/webpages/ap/form_header.html | 8 ++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 710013e39..d6dd24ebe 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -864,7 +864,7 @@ sub post { # $form->{callback} ||= 'ap.pl?action=edit&id=' . $form->{id} if $myconfig{no_reset_arap}; # or a client config setting if ($::instance_conf->get_ap_add_doc && $::instance_conf->get_doc_storage) { - my $add_doc_url = build_std_url("script=ap.pl", 'action=edit', 'id=' . E($form->{id})); + my $add_doc_url = build_std_url("script=ap.pl", 'action=edit', 'id=' . E($form->{id}), 'fragment=ui-tabs-docs'); print $form->redirect_header($add_doc_url); } diff --git a/js/kivi.AP.js b/js/kivi.AP.js index 463334ab1..90ef829ee 100644 --- a/js/kivi.AP.js +++ b/js/kivi.AP.js @@ -51,3 +51,7 @@ namespace('kivi.AP', function(ns){ }; }); + +$(function() { + kivi.File.doc_tab_init('ap_tabs', 'ui-tabs-docs', $('#id').val(), 'purchase_invoice'); +}); diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index da6d4d5fb..f3aa55e5d 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -18,7 +18,7 @@ - + @@ -63,7 +63,7 @@
  • [% 'WebDAV' | $T8 %]
  • [%- END %] [%- IF id AND INSTANCE_CONF.get_doc_storage %] -
  • [% 'Documents' | $T8 %]
  • +
  • [% 'Documents' | $T8 %]
  • [% 'Attachments' | $T8 %]
  • [%- END %] [%- IF id %] @@ -74,6 +74,10 @@ [%- END %] +[%- IF id AND INSTANCE_CONF.get_doc_storage %] +
    +[%- END %] +
    -- 2.20.1