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:
parent
71559d0909
commit
a0611d2809
|
|
@ -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>";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue