From 84c8c405441a39a17e91874557b8657587c405e7 Mon Sep 17 00:00:00 2001 From: Bernd Blessmann Date: Fri, 6 Jan 2012 16:00:08 +0100 Subject: [PATCH] Wechselkurs bei Einkaufsrechnungen nach invdate und nicht nach transdate checken --- SL/IR.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/IR.pm b/SL/IR.pm index 3b7f415f4..7f4389ffa 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -83,7 +83,7 @@ sub post_invoice { if ($form->{currency} eq $defaultcurrency) { $form->{exchangerate} = 1; } else { - $exchangerate = $form->check_exchangerate($myconfig, $form->{currency}, $form->{transdate}, 'sell'); + $exchangerate = $form->check_exchangerate($myconfig, $form->{currency}, $form->{invdate}, 'sell'); } $form->{exchangerate} = $exchangerate || $form->parse_amount($myconfig, $form->{exchangerate}); -- 2.20.1