From fa2cbb11a8d07c2be6387e9bfee27840cda6c8a5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 7 Feb 2013 16:36:36 +0100 Subject: [PATCH] Debitorenbuchungen: "Lastschrifteinzug" auch nach Buchen aus Stammdaten vorbelegen --- bin/mozilla/ar.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index a05a97178..f5ea6c429 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -100,7 +100,7 @@ sub add { AR->get_transdate(\%myconfig, $form); $form->{initial_transdate} = $form->{transdate}; - &create_links; + create_links(dont_save => 1); $form->{transdate} = $form->{initial_transdate}; &display_form; $main::lxdebug->leave_sub(); @@ -119,7 +119,7 @@ sub edit { $form->{javascript} .= qq||; $form->{title} = "Edit"; - &create_links; + create_links(); &display_form; $main::lxdebug->leave_sub(); @@ -143,12 +143,17 @@ sub create_links { $main::auth->assert('general_ledger'); + my %params = @_; my $form = $main::form; my %myconfig = %main::myconfig; $form->create_links("AR", \%myconfig, "customer"); - my %saved = map { ($_ => $form->{$_}) } qw(direct_debit duedate id taxincluded); + my %saved; + if (!$params{dont_save}) { + %saved = map { ($_ => $form->{$_}) } qw(direct_debit id taxincluded); + $saved{duedate} = $form->{duedate} if $form->{duedate}; + } IS->get_customer(\%myconfig, \%$form); -- 2.20.1