From 7a4cdb823ff28e159d6d3564533c74e70377d725 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 Signed-off-by: Tomas Cohen Arazi --- acqui/parcel.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/parcel.pl b/acqui/parcel.pl index 3cce6410f8..ae4daad564 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.39.5