Bugzilla – Attachment 87967 Details for
Bug 20830
Make sure a fund is selected when ordering from staged file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20830: Make sure a fund is selected when ordering from a stage file
Bug-20830-Make-sure-a-fund-is-selected-when-orderi.patch (text/plain), 1.36 KB, created by
Chris Cormack
on 2019-04-14 22:32:52 UTC
(
hide
)
Description:
Bug 20830: Make sure a fund is selected when ordering from a stage file
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2019-04-14 22:32:52 UTC
Size:
1.36 KB
patch
obsolete
>From 9b3f7a2a70ee5dfa41f2f8af524faa5de250a570 Mon Sep 17 00:00:00 2001 >From: Olivier Crouzet <kohateam@univ-lyon3.fr> >Date: Mon, 11 Mar 2019 15:00:23 +0100 >Subject: [PATCH] Bug 20830: Make sure a fund is selected when ordering from a > stage file > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > .../intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >index f6e08fc11c..06f04dd3d8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -76,6 +76,20 @@ > > } > >+ if (! $("#all_budget_id").val() ) { >+ // If there is no default fund >+ var error = 0; >+ $(".selected [name='budget_id']").each(function(){ >+ if (!$(this).val()) { >+ error++; >+ } >+ }); >+ if ( error > 0 ) { >+ alert(_("Some budgets are not defined in item records")); >+ return false; >+ } >+ } >+ > return disableUnchecked($(this)); > }); > $('#tabs').tabs(); >-- >2.11.0
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 20830
:
85911
|
86455
|
87285
| 87967