Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
}
+ 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();