Skip to content

Commit

Permalink
SelfTest: VK-Bericht geht seit 2014 (14a2c68) über sellprice
Browse files Browse the repository at this point in the history
Entsprechend den Test auch angepasst, da ansonsten Fehler bei
Fremdwährungen und Rabatt enstehen
  • Loading branch information
kivijan committed Dec 29, 2023
1 parent 30a8433 commit ceedfcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SL/BackgroundJob/SelfTest/Transactions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ sub check_verwaiste_invoice_eintraege {
sub check_netamount_laut_invoice_ar {
my ($self) = @_;
my $query = qq|
select sum(round(cast(i.qty*(i.fxsellprice * (1-i.discount)) / COALESCE(price_factor, 1) as numeric), 2))
select sum(round(cast(i.qty* i.sellprice / COALESCE(price_factor, 1) as numeric), 2))
from invoice i
left join ar a on (a.id = i.trans_id)
where a.transdate >= ? and a.transdate <= ?;|;
Expand Down

0 comments on commit ceedfcf

Please sign in to comment.