[Koha-patches] [PATCH] [SIGNED-OFF] Adding a javascript function to check the validation of a record with a budget.
paul.poulain at biblibre.com
paul.poulain at biblibre.com
Mon Apr 4 11:51:21 CEST 2011
From: koha-preprod <koha-preprod at sys-tech.net>
Signed-off-by: Paul Poulain <paul.poulain at biblibre.com>
---
.../prog/en/modules/acqui/neworderempty.tmpl | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
index 76f5a3f..410ddd2 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
@@ -18,6 +18,11 @@ function Check(ff) {
ok=1;
_alertString += "\n- " + _("Title cannot be empty");
}
+
+ if(isNull(ff.budget_id,1)){
+ ok=1;
+ _alertString += "\n- "+ _("You must select a budget");
+ }
if (!(isNum(ff.quantity,0))){
ok=1;
--
1.7.1
More information about the Koha-patches
mailing list