From 08ac1ae312aa5795be2aa23b311b81f40c053e5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 10 Nov 2021 15:17:07 +0100 Subject: [PATCH] =?utf8?q?Anzahlungs-Rg.:=20neuen=20Typ=20bei=20Ermittlung?= =?utf8?q?=20des=20Datums=20f.=20Konten=20ber=C3=BCcksichtigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/IC.pm b/SL/IC.pm index da83c33b8..e0c8dcf3e 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -736,7 +736,7 @@ sub retrieve_accounts { # transdate madness. my $transdate = ""; - if (($form->{type} eq "invoice") or ($form->{type} eq "credit_note") or ($form->{script} eq 'ir.pl')) { + if ( (any {$form->{type} eq $_} qw(invoice credit_note invoice_for_advance_payment)) or ($form->{script} eq 'ir.pl') ) { # use deliverydate for sales and purchase invoice, if it exists # also use deliverydate for credit notes $transdate = $form->{tax_point} || $form->{deliverydate} || $form->{invdate}; -- 2.20.1