Bug 32938: Fix ORDRSP message linking to point to baskets instead of invoices

ORDRSP (Order Response) messages are responses to ORDERS messages and should
link to the related basket, not to invoices. This follows the standard EDI
workflow:
1. ORDERS message sent to vendor
2. ORDRSP message received from vendor (order response/confirmation)
3. INVOICE message received later when items shipped

Sponsored-by: OpenFifth <https://openfifth.co.uk/>
Signed-off-by: Hannah Dunne-Howrie <hdunne-howrie@westminster.gov.uk>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2025-08-04 15:11:53 +01:00 committed by Lucas Gass
parent 71559d0909
commit a0611d2809
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@
orderable: true,
render: function (data, type, row, meta) {
let rendered = "";
if (row.type == "QUOTE" || row.type == "ORDERS") {
if (row.type == "QUOTE" || row.type == "ORDERS" || row.type == "ORDRSP") {
if (row.basket_id) {
rendered = '<a href="/cgi-bin/koha/acqui/basket.pl?basketno=' + row.basket_id + '">' + _("Basket") + ": " + row.basket_id + "</a>";
}