From 0cefe1b887257a9d41d4f6c9090f9f0609bcc28c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 19 Nov 2014 13:40:10 +0100 Subject: [PATCH 12/12] 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 --- acqui/parcel.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/parcel.pl b/acqui/parcel.pl index aa5815e..5902a22 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}; -- 1.7.10.4