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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-2 / +11 lines)
Lines 656-661 Link Here
656
                }
656
                }
657
            });
657
            });
658
658
659
            [% IF only_one_order %]
660
            $("#quantity").on('change', function() {
661
                $('.modal-save').prop('disabled', $(this).val() < 1 );
662
            });
663
            [% END %]
664
659
            var _doSave = function(params) {
665
            var _doSave = function(params) {
660
                $.ajax($.extend({
666
                $.ajax($.extend({
661
                    method: 'POST',
667
                    method: 'POST',
Lines 1152-1158 Link Here
1152
                $("#current-fund").html(FUNC_CUR.format(row.fund.budget.budget_period_description, row.fund.name));
1158
                $("#current-fund").html(FUNC_CUR.format(row.fund.budget.budget_period_description, row.fund.name));
1153
                $("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')')
1159
                $("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')')
1154
                $("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id);
1160
                $("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id);
1155
                $("#quantity").val(row.quantity_received).prop('readonly', !row.subscription_id && effective_create_items == 'receiving');
1161
                $("#quantity").val( effective_create_items == 'cataloguing' ? row.quantity_received || 1 : row.quantity_received )
1162
                              .prop('readonly', !row.subscription_id && effective_create_items == 'receiving');
1163
                [% IF only_one_order %]
1164
                    $(".modal-save").prop('disabled', $("#quantity").val() == 0);
1165
                [% END %]
1156
                $('#qtyrecerror').hide();
1166
                $('#qtyrecerror').hide();
1157
                var tax_rate = row.tax_rate_on_receiving || row.tax_rate_on_ordering;
1167
                var tax_rate = row.tax_rate_on_receiving || row.tax_rate_on_ordering;
1158
                $("#tax_rate").val(tax_rate).change();
1168
                $("#tax_rate").val(tax_rate).change();
1159
- 

Return to bug 33864