Koha/t/db_dependent/Acquisition
Jared Camins-Esakov 88b46f3422 Bug 10401: Add ability to merge invoices
Given how easy it is to accidentally receive items from one invoice on
multiple invoices, the ability to merge invoices can be quite handy.
This patch adds that ability to Koha's Acquisitions module.

To test:
1) Apply patch.
2) Run unit test:
    > prove t/db_dependent/Acquisition/Invoices.t
3) Create two invoices from the same vendor for merging, and receive at
   least one order on each.
4) Do a search on the Invoices page that brings up both the invoices you
   created.
5) Check the boxes next to the two invoices.
6) Click "Merge selected invoices."
7) Choose which invoice you want to keep (the default will be the first).
8) Click "Merge."
9) Confirm that the resulting invoice has all the orders you received
   listed on it.
10) Sign off.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.
Merged several invoices sucessfully - with and without received
orders, open and closed. Works nicely.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-10-21 19:08:03 +00:00
..
GetOrdersByBiblionumber.t Bug 10575 : GetOrdersByBiblionumber.t needs a database transaction 2013-07-15 16:20:53 +00:00
Invoices.t Bug 10401: Add ability to merge invoices 2013-10-21 19:08:03 +00:00
OrderFromSubscription.t Bug 10275: Use a transaction for OrderFromSubscription.t 2013-07-16 14:20:38 +00:00
TransferOrder.t Bug 5349: Use DB transaction/rollback in unit tests 2013-09-08 22:38:28 +00:00