@@ -, +, @@ staged file --- .../intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt | 13 +++++++++++++ 1 file changed, 13 insertions(+) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -137,6 +137,19 @@ return false; } + 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)); }); --