Revision f95e112a
Von Jan Büren vor fast 2 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
2604 | 2604 |
|
2605 | 2605 |
# get exchangerate for currency |
2606 | 2606 |
$self->{exchangerate} = |
2607 |
$self->get_exchangerate($dbh, $self->{currency}, $self->{transdate}, $fld);
|
|
2607 |
$self->check_exchangerate($myconfig, $self->{currency}, $self->{transdate}, $fld);
|
|
2608 | 2608 |
my $index = 0; |
2609 | 2609 |
|
2610 | 2610 |
# store amounts in {acc_trans}{$key} for multiple accounts |
2611 | 2611 |
while (my $ref = $sth->fetchrow_hashref("NAME_lc")) { |
2612 | 2612 |
$ref->{exchangerate} = |
2613 |
$self->get_exchangerate($dbh, $self->{currency}, $ref->{transdate}, $fld);
|
|
2613 |
$self->check_exchangerate($myconfig, $self->{currency}, $ref->{transdate}, $fld);
|
|
2614 | 2614 |
if (!($xkeyref{ $ref->{accno} } =~ /tax/)) { |
2615 | 2615 |
$index++; |
2616 | 2616 |
} |
... | ... | |
2662 | 2662 |
|
2663 | 2663 |
# get exchangerate for currency |
2664 | 2664 |
$self->{exchangerate} = |
2665 |
$self->get_exchangerate($dbh, $self->{currency}, $self->{transdate}, $fld);
|
|
2665 |
$self->check_exchangerate($myconfig, $self->{currency}, $self->{transdate}, $fld);
|
|
2666 | 2666 |
|
2667 | 2667 |
} |
2668 | 2668 |
|
Auch abrufbar als: Unified diff
get_exchangerate nach check_exchangerate migriert
Die Funktion ist bis auf die eingehenden Parameter identisch