Bug 23927: Do not copy invoiceid for a new duplicated order
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 25 Nov 2019 10:53:45 +0000 (11:53 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 27 Nov 2019 09:18:27 +0000 (09:18 +0000)
commit5b694fea9a00db7470d0942195ec4d131ee16928
tree77b96cb14919dbc7d9297d00e576494272923de4
parent4d2f7668665f9fafc945be93cda71eab333029f9
Bug 23927: Do not copy invoiceid for a new duplicated order

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 <severine.queune@bulac.fr>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Acquisition/Order.pm