Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Jacek Ablewicz 51601176c6 Bug 13220 - Shipment date not saved when creating an invoice which has a duplicated number
When creating an invoice which has a duplicated number, if the user chooses to 'Create new invoice anyway', previously entered shipment date (todays date by default) is not being saved, because the date value is passed to the script in the wrong format (acqui/parcels.pl expects shipmentdate parameter to be in the system-configured date format, but what it's getting in such cases is ISO-formatted date instead). As a consequence (when receiving orders from invoice whith empty shipment date) 'datereceived' field in order records are also not being populated. Here and there, Koha is using datereceived field to establish if the order was received or not received, so such not-quite-complete orders:

- can be cancelled from the basket (even when they are de facto already received),
- it's not possible to cancel receipt of those orders from the invoice (because Koha is considering them as not yet received).

To reproduce:

1) Make sure you have some system date format configured in your test environment which is different from ISO format (e.g., DD/MM/YYYY) and the AcqWarnOnDuplicateInvoice syspref is enabled
2) Create some invoice with e.g. '11111' number,
3) Create another invoice with the same number (using 'Create new invoice anyway' button)
4) Try to create yet another invoice with the same number; observe that already existing invoice created in step 3) does have empty shipment date.
5) Optional: create some orders and receive them from the invoice with empty shipment date; observe that such orders are not being treated as received in all places (e.g. it's not possible to cancel receipts of such orders, and the message displayed is not in any way helpfull to determine why not).

To test:

1) Apply patch
2) Retest
3) Ensure that the issue is no longer reproductible, and that there are no apparent regressions of any kind.

Signed-off-by: simith <simith@inlibro.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tiny change fixing a bad bug. No problems found, passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-11-14 11:02:36 -03:00
..
csv Bug 7298: (follow-up) fix translation for CSV strings 2013-10-31 15:51:45 +00:00
acqui-home.tt Bug 12989: Fix JS error 2014-11-11 14:16:10 -03:00
addorder.tt Bug 9822: Alert on adding an order to a basket if budget s exceeded 2013-10-30 15:10:11 +00:00
addorderiso2709.tt Bug 12927: Problems with item information tab on acq order from staged page 2014-10-16 12:51:13 -03:00
ajax.tt
aqbasketuser_search.tt Bug 2889: template aqbasketusersearch add loop.odd 2014-10-15 17:59:05 -03:00
basket.tt Bug 7162; Factorize code for order cancellation (QA fixes) 2014-10-30 00:44:11 -03:00
basketgroup.tt Bug 12494 - Remove yuipath system preference 2014-10-29 22:06:57 -03:00
basketheader.tt Bug 11805 - Use validation plugin when creating new basket in Acquisitions 2014-02-27 15:44:48 +00:00
booksellers.tt Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
cancelorder.tt Bug 7162: Remove "(Y)" and "(N)" from buttons text 2014-10-30 00:44:18 -03:00
histsearch.tt Bug 12089: Remove use of dt_add_type_uk_date() - Acquisitions 2014-04-28 18:41:28 +00:00
invoice-files.tt Bug 3050: QA follow-up 2014-05-25 21:15:03 +00:00
invoice.tt Bug 3050: QA follow-up 2014-05-25 21:15:03 +00:00
invoices.tt Bug 12646: Display all invoices on the same page 2014-10-16 12:52:15 -03:00
lateorders.tt Bug 12089: Remove use of dt_add_type_uk_date() - Acquisitions 2014-04-28 18:41:28 +00:00
modordernotes.tt Bug 12111: (follow-up) fix breadcrumbs wording for vendor note 2014-04-28 15:31:46 +00:00
neworderbiblio.tt Bug 10649 - Upgrade DataTables and move scripts out of theme directory 2013-09-05 15:43:36 +00:00
neworderempty.tt Bug 11812 - Add missing "required" indicator to fields which are required 2014-10-22 14:04:43 -03:00
neworderempty_duplicate.tt
newordersubscription.tt Bug 12089: Remove use of dt_add_type_uk_date() - Acquisitions 2014-04-28 18:41:28 +00:00
newordersuggestion.tt Bug 10649 - Upgrade DataTables and move scripts out of theme directory 2013-09-05 15:43:36 +00:00
ordered.tt Bug 12089: Remove use of dt_add_type_uk_date() - Acquisitions 2014-04-28 18:41:28 +00:00
orderreceive.tt Bug 12111: (follow-up) ensure that vendor note is not editable during order receiving 2014-04-28 15:37:43 +00:00
parcel.tt Bug 7162 [Follow-up] Fix referrer URL when coming from parcel.pl 2014-10-30 00:44:09 -03:00
parcels.tt Bug 13220 - Shipment date not saved when creating an invoice which has a duplicated number 2014-11-14 11:02:36 -03:00
spent.tt Bug 12089: Remove use of dt_add_type_uk_date() - Acquisitions 2014-04-28 18:41:28 +00:00
supplier.tt Bug 10402 follow-up: choose contacts for claims 2014-08-26 11:45:59 -03:00
transferorder.tt Bug 5349: (follow-up) tweak order transfer form 2013-09-16 15:21:07 +00:00
uncertainprice.tt Bug 10402: Use an object for contacts 2014-08-26 11:45:42 -03:00
z3950_search.tt Bug 12835 - Acquisitions: Show search terms in z39.50 results 2014-09-08 10:55:45 -03:00