]> git.koha-community.org Git - koha.git/commit
Bug 14172: Acq: Orders without items missing from 'spent' list
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 15 May 2015 10:19:16 +0000 (12:19 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 18 May 2015 21:54:40 +0000 (09:54 +1200)
commit0b79a2c62503c721446362238fa7dea94868e2dc
tree5b8667278eba916f72b14f9e2b9441f2af65ac2b
parent44eb102ef0ad6036357e0b5b385e6f0e5660cefe
Bug 14172: Acq: Orders without items missing from 'spent' list

If the item for an order had been deleted since or there was never
an item created for the order (subscription orders) those records
where missing from the "Spent" page in acquisitions.

Patch corrects the SQL to list the correct records.

To test:
- Create different orders for one fund and receive them
  - normal order with a few items
  - subscription order (no item)
  - normal order with an item, delete the item after receiving
  - include some freight cost in one of the invoices
- Compare the amount spent shown on the acq start page
  with the amount shown at the end of the 'spent' page
- Without the patch, the amounts don't match and not all
  received titles are listed
- With the patch, amounts should match and list shoudl be complete

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit ecc9eb33b7f2f7b0b770135633390e00244921c6)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
acqui/spent.pl