Bug 10401: Add ability to merge invoices
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 19 Jun 2013 19:19:06 +0000 (15:19 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 21 Oct 2013 19:08:03 +0000 (19:08 +0000)
commit88b46f342209b4f08748fd0e03f5a03d8708306e
treeeb5fde7954606ff24da367bd27f0fb85bc5689a8
parent481c062fe9ee72ffc204b6ccb37a4bfe0c23cadf
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>
C4/Acquisition.pm
acqui/invoice.pl
acqui/invoices.pl
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt
t/db_dependent/Acquisition/Invoices.t [new file with mode: 0644]