From d3210e58e158a3e960e677fc7f61b7492bf4dd7c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 19 Nov 2014 13:40:10 +0100 Subject: [PATCH] Bug 13001: The total for received order should be based on the unitprice For already received orders, the total should be calculated with the unitprice, not the estimated cost. Signed-off-by: Paola Rossi Signed-off-by: Katrin Fischer --- acqui/parcel.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/parcel.pl b/acqui/parcel.pl index 3cce641..ae4daad 100755 --- a/acqui/parcel.pl +++ b/acqui/parcel.pl @@ -134,7 +134,7 @@ for my $order ( @orders ) { $order->{ecost} = $order->{ecostgsti}; $order->{unitprice} = $order->{unitpricegsti}; } - $order->{total} = $order->{ecost} * $order->{quantity}; + $order->{total} = $order->{unitprice} * $order->{quantity}; my %line = %{ $order }; $line{invoice} = $invoice->{invoicenumber}; -- 2.1.0