From 5b694fea9a00db7470d0942195ec4d131ee16928 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 25 Nov 2019 11:53:45 +0100 Subject: [PATCH] Bug 23927: Do not copy invoiceid for a new duplicated order MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When an order is created from an existing one (duplication), then the invoice should be set to null instead of retrieved. Test plan: - receive an order - in a new basket, add an order "From exisitions orders (copy)" - search your received order - duplicate - go to the bibliographic record "Acquisition details" tab => Without this patch you will see that the invoice is the same for the two orders => With this patch the invoice for the new order is not set Signed-off-by: Séverine QUEUNE Signed-off-by: Martin Renvoize --- Koha/Acquisition/Order.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Acquisition/Order.pm b/Koha/Acquisition/Order.pm index 9bba0faef2..4a25814f2d 100644 --- a/Koha/Acquisition/Order.pm +++ b/Koha/Acquisition/Order.pm @@ -223,6 +223,7 @@ sub duplicate_to { ordernumber received_on datereceived + invoiceid datecancellationprinted cancellationreason purchaseordernumber -- 2.39.5