Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Katrin Fischer 93e9184327 Bug 34469: Block editing for received order lines
When an already received order line is modified/edited,
we experience data loss. Most prominently, we will lose the
linked invoiceid. Therefore we should not allow editing an
order line that was already received. If something needs to be
changed, the receipt should be cancelled first.

To test:
* Create basket as standing order with items added in cataloguing
* Add an order line
* Receive shipment
* Go to the basket summary page, click on 'Modify'
* Change the actual cost
* Save
* Verify that the invoice is now empty
* In the database aqorders.invoiceid will be NULL
* Apply patch
* Receive another shipment for the standing order
* Go back to basket summary page
* Verify the 'Modify' link is no longer present
* Click 'Modify' on the unreceived order line
* Edit the URL parameter odernumber to have the number of an
  already received order line
* Verify you see a nice error message:
  This order cannot be edited, the basket is closed or the order was already received.

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a4b7490633)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-08-17 09:38:27 -10:00
..
csv
acqui-home.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
addorder.tt
addorderiso2709.tt Bug 34169: (follow-up) Fix ordering from staged files by removing superfluous form 2023-08-07 20:05:46 -10:00
ajax.tt
basket.tt Bug 34469: Block editing for received order lines 2023-08-17 09:38:27 -10:00
basketgroup.tt Bug 31722: Fixed EDIFACT message to only display if EDIFACT is turned on 2023-04-14 11:35:26 -03:00
basketheader.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
booksellers.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
cancelorder.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
duplicate_orders.tt Bug 33082: Add yellow buttons and page sections to 'copy order' pages 2023-03-17 09:59:04 -03:00
edi_ean.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
edifactmsgs.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
edimsg.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
histsearch.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
invoice-files.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
invoice.tt Bug 34452: Restore fund label and 'Update adjustments' button 2023-08-17 08:51:04 -10:00
invoices.tt Bug 34169: Add decimal class to all relevant input fields in the acquisitions module 2023-08-07 20:05:46 -10:00
lateorders.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
moddeliverydate.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
modordernotes.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
neworderempty.tt Bug 34169: Add decimal class to all relevant input fields in the acquisitions module 2023-08-07 20:05:46 -10:00
neworderempty_duplicate.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
newordersubscription.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
newordersuggestion.tt Bug 33541: Add document type to list of suggestions when ordering 2023-05-16 15:17:45 -03:00
ordered.tt Bug 33005: (follow-up) Add spans for translatability 2023-04-12 11:43:18 -03:00
orderreceive.tt Bug 34108: Preserve checked orders after item editing 2023-08-17 09:33:21 -10:00
parcel.tt Bug 8179: (follow-up) Fix currency change and remove datatables select 2023-05-15 08:53:52 -03:00
parcels.tt Bug 34169: Add decimal class to all relevant input fields in the acquisitions module 2023-08-07 20:05:46 -10:00
showorder.tt
spent.tt Bug 33005: (follow-up) Add spans for translatability 2023-04-12 11:43:18 -03:00
supplier.tt Bug 33798: Improve consistency of the vendor display view 2023-07-12 09:21:10 +01:00
transferorder.tt
uncertainprice.tt Bug 34169: Add decimal class to all relevant input fields in the acquisitions module 2023-08-07 20:05:46 -10:00
z3950_search.tt Bug 33655: z39.50 search no longer shows search in progress 2023-05-12 11:22:37 -03:00