Bug 10401 - Add ability to merge invoices
Summary: Add ability to merge invoices
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low new feature
Assignee: Jared Camins-Esakov
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 16:04 UTC by Jared Camins-Esakov
Modified: 2014-12-07 20:02 UTC (History)
2 users (show)

See Also:
Change sponsored?: Sponsored
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 10401: Add ability to merge invoices (17.15 KB, patch)
2013-07-10 14:40 UTC, Jared Camins-Esakov
Details | Diff | Splinter Review
Bug 10401: Add ability to merge invoices (17.14 KB, patch)
2013-07-23 13:21 UTC, Jared Camins-Esakov
Details | Diff | Splinter Review
Bug 10401: Add ability to merge invoices (17.07 KB, patch)
2013-08-22 14:11 UTC, Jared Camins-Esakov
Details | Diff | Splinter Review
signed off patch (17.12 KB, patch)
2013-08-29 12:35 UTC, Paola Rossi
Details | Diff | Splinter Review
[PASSED QA] Bug 10401: Add ability to merge invoices (17.32 KB, patch)
2013-09-12 06:00 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Camins-Esakov 2013-06-04 16:04:53 UTC
In situations where items from a single vendor invoice are received on more than one Koha invoice, it would be really useful to be able to merge invoices.
Comment 1 Jared Camins-Esakov 2013-07-10 14:40:32 UTC Comment hidden (obsolete)
Comment 2 Jared Camins-Esakov 2013-07-23 13:21:38 UTC Comment hidden (obsolete)
Comment 3 Jared Camins-Esakov 2013-08-22 14:11:31 UTC Comment hidden (obsolete)
Comment 4 Paola Rossi 2013-08-29 12:35:29 UTC Comment hidden (obsolete)
Comment 5 Katrin Fischer 2013-09-12 06:00:58 UTC
Created attachment 21001 [details] [review]
[PASSED QA] 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.
Comment 6 Galen Charlton 2013-10-21 19:16:10 UTC
Pushed to master.  Thanks, Jared!