diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index f6e08fc11c..06f04dd3d8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -76,6 +76,20 @@ } + 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();