Bugzilla – Attachment 107619 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.34 KB, created by
Jonathan Druart
on 2020-07-31 08:24:24 UTC
(
hide
)
Description:
Bug 21811: Add JS confirmation when receiving - at least 1 item to receive
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-07-31 08:24:24 UTC
Size:
1.34 KB
patch
obsolete
>From e7f03bd724b7508ad66653f6650647cb4af53955 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 > >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 >--- > .../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 c9161e48a9..942fd3d1d9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -413,6 +413,11 @@ > }; > [% END %] > >+ if( $("#quantity").val() < 1 ) { >+ alert(_("You must receive at least one item")); >+ return false; >+ } >+ > return true; > } > >-- >2.20.1
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