Koha-clms/acqui
Jacek Ablewicz 9cd6cc2b94 Bug 9948: fix creation/updating of items when partially receiving an order
Problem summary: when doing partial receives for the given order -
1) if AcqCreateItem is set to 'ordering', various item data (price,
dateaccessioned, replacementprice, replacementpricedate) are getting
erroneously updated on the wrong (yet to be received == not the ones
being currently received) item records
2) if AcqCreateItem is set to 'receiving', newly received
item records are being created without the aforementioned fields
set to the proper values

This (trivial) patch should deal with both cases, hopefully without
breaking enything else.

To test:
- apply the patch,
- create some orders with 2+ quantity
- test partial & non-partial receives for those orders
- ensure the received item records are getting modified
(for AcqCreateItem set to 'ordering') and/or created (for AcqCreateItem
set to 'receiving') correctly for both partial and non-partial receives
- receiving orders with quantity = 1 / receiving orders in non-partial
mode should be still working fine for 1) & 2) scenarios (i.e.,
AcqCreateItem set to 'ordering' / AcqCreateItem set to 'receiving')

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>

Works as I'd expect now! Awesome patch.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.
Also: t/db_dependent/Acquisition/
      t/db_dependent/Acquisition.t

Created 2 orders with 3 items each for both settings
of AcqCreateItem (on receive, on order) with the patches
applied. No regressions found.

Closed baskets and received shipments for each, with
AcqCreateItem set according to how the order was created.

First recreated the problem without the patches, reloaded
database and confirmed that the patch fixes it.

No problems found.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 95e2754af6)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
(cherry picked from commit 7f57015aa9)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-02-07 10:48:02 -03:00
..
pdfformat Bug 10573: (follow-up) update license and copyright statement 2013-09-13 10:53:58 -03:00
acqui-home.pl Bug 7304: More permissions for budgets 2012-06-27 16:25:44 +02:00
addorder.pl Bug 5343: Link serial and acqui modules 2013-03-22 23:54:43 -04:00
addorderiso2709.pl Bug 11059: fix date sorting of import batches in basket add form 2013-12-17 15:43:14 -03:00
basket.pl Bug 10258: fix permissions check for setting basket group for order basket 2013-07-25 11:57:21 -03:00
basketgroup.pl Bug 10573: French translation for printing a basketgroup 2013-09-13 10:52:23 -03:00
basketheader.pl Bug 9364: fixes billing/delivery addresses for new baskets 2013-01-18 19:15:24 -05:00
booksellers.pl Bug 10967: fix minor POD error 2013-11-13 14:13:13 -03:00
check_budget_total.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
check_duplicate_barcode_ajax.pl Bug 6963: Corrects a problem when a new order is created with a duplicate barcode. 2011-11-04 10:22:28 +01:00
check_uniqueness.pl Bug 10483: fix item uniqueness check on order form 2013-09-10 15:56:32 -03:00
currency.pl Fix FSF address in directory acqui/ 2010-03-16 20:17:51 -04:00
fetch_sort_dropbox.pl Bug 8629: update of statistics fields on fund selection in order creation/edition 2012-09-14 16:57:02 +02:00
finishreceive.pl Bug 9948: fix creation/updating of items when partially receiving an order 2014-02-07 10:48:02 -03:00
histsearch.pl Revert "Merge branch 'bug_6554' into 3.12-master" 2013-04-25 22:37:54 -04:00
invoice.pl Bug 8913 [Revised] Improve acquisitions navigation 2013-02-20 09:17:21 -05:00
invoices.pl Bug 8913 [Revised] Improve acquisitions navigation 2013-02-20 09:17:21 -05:00
lateorders.pl Bug 10557: remove unused branch parameter from GetBooksellersWithLateOrders 2013-09-13 13:53:58 -03:00
modordernotes.pl Bug 7166: Adds edit order notes when the basket is closed 2012-03-20 16:45:37 +01:00
neworderbiblio.pl Bug 9239 QA follow-up: the last QA follow-up was missing a require 2013-03-16 21:32:34 -04:00
neworderempty.pl Bug 7228: can't add items in an order with Modify 2013-05-01 08:22:44 -04:00
newordersubscription.pl Bug 9508: Standardize the dateformat value from C4::Auth 2013-05-21 20:02:23 -03:00
newordersuggestion.pl Bug 4330 : Fixing FSF address and copyright headers for acqui/ 2012-05-28 17:54:18 +02:00
ordered.pl Bug 7735: removal of C4::Dates when unused 2012-03-20 18:11:04 +01:00
orderreceive.pl Bug 9923: (MT #11060) actual cost not getting populated 2013-03-29 21:26:28 -04:00
parcel.pl Bug 11108: fix duplicate display of basket whose receipt has just been cancelled 2013-12-05 14:40:47 -03:00
parcels.pl Bug 8821: make receive shipment page hide inactive funds like new order form 2013-11-07 12:49:37 -03:00
spent.pl Bug 5339: Invoices management improvement 2012-09-18 22:42:15 +02:00
supplier.pl Bug 9108: Followup: send the dateformat value from C4::Auth 2013-01-17 21:59:30 -05:00
uncertainprice.pl Bug 8913 [Revised] Improve acquisitions navigation 2013-02-20 09:17:21 -05:00
updatesupplier.pl Bug 5335 - More granular VAT 2012-09-20 18:09:53 +02:00
z3950_search.pl Bug 9986: Two fixes for Z3950 search 2013-04-15 08:49:52 -04:00