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:
parent
b9d434c18f
commit
9dc69cf47f
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue