[Koha-patches] [PATCH] [SIGNED-OFF] Adding a javascript function to check the validation of a record with a budget.

Chris Cormack chrisc at catalyst.net.nz
Tue Apr 5 04:47:19 CEST 2011


* paul.poulain at biblibre.com (paul.poulain at biblibre.com) wrote:
> From: koha-preprod <koha-preprod at sys-tech.net>

Do we have a bug number for this?

Chris
> 
> 
> 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
> 
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/

-- 
Chris Cormack
Catalyst IT Ltd.
+64 4 803 2238
PO Box 11-053, Manners St, Wellington 6142, New Zealand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: </pipermail/koha-patches/attachments/20110405/c627955f/attachment.pgp>


More information about the Koha-patches mailing list