X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIC.pm;h=2a9460745cac60b075bf1840fc3528b65758b792;hb=3782a90c336bc6c506f572e607c8526cb5e79ea3;hp=e0c8dcf3e3a1cd9360dc958c576b1343b5835a46;hpb=08ac1ae312aa5795be2aa23b311b81f40c053e5d;p=kivitendo-erp.git diff --git a/SL/IC.pm b/SL/IC.pm index e0c8dcf3e..2a9460745 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -736,7 +736,7 @@ sub retrieve_accounts { # transdate madness. my $transdate = ""; - if ( (any {$form->{type} eq $_} qw(invoice credit_note invoice_for_advance_payment)) or ($form->{script} eq 'ir.pl') ) { + if ( (any {$form->{type} eq $_} qw(invoice credit_note invoice_for_advance_payment final_invoice)) 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};