From d5a3eba276c5e18e51511878fc74ee717969410b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 28 Oct 2015 15:49:03 +0100 Subject: [PATCH] Einkaufs-/Verkaufsmasken: Zahlungsbedingungen bei Kunden-/Lieferantenwechsel resetten Das ist in 5bc87ade kaputt gegangen. --- bin/mozilla/arap.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/mozilla/arap.pl b/bin/mozilla/arap.pl index 2a034d8ba..75764a434 100644 --- a/bin/mozilla/arap.pl +++ b/bin/mozilla/arap.pl @@ -77,6 +77,8 @@ sub check_name { $form->{"${name}_id"} = $new_id; _reset_salesman_id(); + delete @{ $form }{qw(payment_id)}; + IS->get_customer(\%myconfig, \%$form) if ($name eq 'customer'); IR->get_vendor(\%myconfig, \%$form) if ($name eq 'vendor'); @@ -119,6 +121,8 @@ sub check_name { $form->{"old$name"} = qq|$form->{$name}--$form->{"${name}_id"}|; _reset_salesman_id(); + delete @{ $form }{qw(payment_id)}; + IS->get_customer(\%myconfig, \%$form) if ($name eq 'customer'); IR->get_vendor(\%myconfig, \%$form) if ($name eq 'vendor'); -- 2.20.1