[Koha-bugs] [Bug 34469] Modifying an order line of a standing order will delete linked invoice ID

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 11 02:57:57 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34469

Victor Grousset/tuxayo <victor at tuxayo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #154294|0                           |1
        is obsolete|                            |

--- Comment #14 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 154356
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154356&action=edit
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 at gmail.com>
Signed-off-by: Michaela Sieber <michaela.sieber at kit.edu>
Signed-off-by: Laura Escamilla <laura.escamilla at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list