View | Details | Raw Unified | Return to bug 20426
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-10 / +13 lines)
Lines 551-565 Link Here
551
                    return false;
551
                    return false;
552
552
553
                }
553
                }
554
                var error = 0;
554
555
                $("select[name='budget_id']").each(function() {
555
                if (! $("#all_budget_id").val() ) {
556
                    if (!$(this).val()) {
556
                    // If there is no default fund
557
                        error++;
557
                    var error = 0;
558
                    $("select[name='budget_id']").each(function() {
559
                        if (!$(this).val()) {
560
                            error++;
561
                        }
562
                    });
563
                    if ( error > 0 ) {
564
                        alert(_("Some budgets are not defined in item records"));
565
                        return false;
558
                    }
566
                    }
559
                });
560
                if ( error > 0 ) {
561
                    alert(_("Some budgets are not defined in item records"));
562
                    return false;
563
                }
567
                }
564
568
565
                return disableUnchecked($(this));
569
                return disableUnchecked($(this));
Lines 588-591 Link Here
588
    </script>
592
    </script>
589
[% END %]
593
[% END %]
590
594
591
[% INCLUDE 'intranet-bottom.inc' %]
595
[% INCLUDE 'intranet-bottom.inc' %]
592
- 

Return to bug 20426