Bugzilla – Attachment 112055 Details for
Bug 21811
Add warning when order receive form is saved without entering 'quantity received'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21811: Add JS confirmation when receiving - at least 1 item to receive
Bug-21811-Add-JS-confirmation-when-receiving---at-.patch (text/plain), 1.48 KB, created by
Séverine Queune
on 2020-10-20 16:50:24 UTC
(
hide
)
Description:
Bug 21811: Add JS confirmation when receiving - at least 1 item to receive
Filename:
MIME Type:
Creator:
Séverine Queune
Created:
2020-10-20 16:50:24 UTC
Size:
1.48 KB
patch
obsolete
>From d7c6497d575ece5c1b7fbb9a5615efe7ad64702f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 31 Jul 2020 10:21:27 +0200 >Subject: [PATCH] Bug 21811: Add JS confirmation when receiving - at least 1 > item to receive >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >When receiving, the "receive items" form should not be submitted if no >items are going to be received > >Test plan: >Create an order, close the basket, receive some items >On the "receive items" form, do not select item (if items are created >when placing the order) and submit the form >=> You must get a JS alert that prevent the form to be submitted >Select at least one item, submit again >=> Now it's submitted > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >index 4dac82a..578a08a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -429,6 +429,11 @@ > }; > [% END %] > >+ if( $("#quantity").val() < 1 ) { >+ alert(_("You must receive at least one item")); >+ return false; >+ } >+ > return true; > } > >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21811
:
107619
|
112055
|
112111