From: Moritz Bunkus Date: Thu, 7 Feb 2013 15:36:36 +0000 (+0100) Subject: Debitorenbuchungen: "Lastschrifteinzug" auch nach Buchen aus Stammdaten vorbelegen X-Git-Tag: release-3.1.0beta1~630 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fa2cbb11a8d07c2be6387e9bfee27840cda6c8a5;p=kivitendo-erp.git Debitorenbuchungen: "Lastschrifteinzug" auch nach Buchen aus Stammdaten vorbelegen --- 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);