Bug 12502: (follow-up) Use modal to add/edit order notes
authorMaryse Simard <maryse.simard@inlibro.com>
Tue, 16 Jul 2019 19:24:51 +0000 (15:24 -0400)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 20 Jan 2020 16:37:21 +0000 (16:37 +0000)
commite4860aeeede07a30ddb425a075a26b442a13a538
treef6b332e5a685b6a789567925f74506b36457d3a0
parent34dfe783c6e13f8298c4e296860711e44889980d
Bug 12502: (follow-up) Use modal to add/edit order notes

Replace inputs to edit notes by a link opening a modal, similar
to the basket summary page. This makes it possible for the notes
to appear in the datatable exports.

Also fix exporting with the export as csv button at the bottom
of the page to export notes.

Test plan :
1) In the late orders table (acqui/lateorders.pl), a link should
appear in both the internal and vendor note column, following the
current value if it exist.
    -> This link should read "Add ..." if there is no existing note
    or "Edit ..." if there is.
2) Click on the link. A modal should appear. Confirm that saving a
note works as expected.
3) Try exporting to any format using either the button at the top
of the table or the one at the bottom of the page.
    -> The three new columns and their values should appear in the
    export.

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
acqui/lateorders-export.pl
acqui/lateorders.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/csv/lateorders.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt