From 47bae5b36572011ad06a0d4bc4b401a538e39fe0 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 8 Nov 2016 16:11:49 -0300 Subject: [PATCH] Bug 17563: (followup) Silence undef warnings Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- C4/Acquisition.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 3b255b4cc2..6ad5ff723f 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -1419,6 +1419,10 @@ sub ModReceiveOrder { $order->{budget_id} = ( $budget_id || $order->{budget_id} ); $order->{quantity} = $quantrec; $order->{quantityreceived} = $quantrec; + $order->{ecost_tax_excluded} //= 0; + $order->{tax_rate_on_ordering} //= 0; + $order->{unitprice_tax_excluded} //= 0; + $order->{tax_rate_on_receiving} //= 0; $order->{tax_value_on_ordering} = $order->{quantity} * $order->{ecost_tax_excluded} * $order->{tax_rate_on_ordering}; $order->{tax_value_on_receiving} = $order->{quantity} * $order->{unitprice_tax_excluded} * $order->{tax_rate_on_receiving}; $order->{datereceived} = $datereceived; -- 2.39.5