Adding a javascript function to check the validation of a record with a budget.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
koha-preprod 2011-02-07 11:12:49 -05:00 committed by Chris Cormack
parent b9d434c18f
commit 9dc69cf47f

View file

@ -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;