]> git.koha-community.org Git - koha.git/commit
Bug 36246: Add JS function/include for submitting forms from link data
authorNick Clemens <nick@bywatersolutions.com>
Wed, 28 Feb 2024 14:46:43 +0000 (09:46 -0500)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 3 May 2024 16:02:12 +0000 (18:02 +0200)
commit6e05d3edf397a323d0fd439c3a10a637a14b5a37
tree2afe16e3e470bd0bdba9a8a3564a5337411231f4
parent915d585b50868c878e492b2ce7d60f92fd3e8e87
Bug 36246: Add JS function/include for submitting forms from link data

This patch adds a new js include file form-submit.js which will read data elements from a link
and use those to submit a form

This patch fixes forms on acqui/invoice.pl as an example

To test:
1 - Add some invoices for a vendor
2 - Got to Acquisitions->Invoices
3 - Actions -> Close - confirm it works
4 - Got to 'Closed invoices' - reopen
5 - Go to Details on the invoice
6 - Add an adjustment
7 - Delete the adjustment
8 - Confirm it works

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
acqui/invoice.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt
koha-tmpl/intranet-tmpl/prog/js/form-submit.js [new file with mode: 0644]