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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-2 / +4 lines)
Lines 1180-1186 Link Here
1180
                    $("#creator").html(_("Account has been deleted"));
1180
                    $("#creator").html(_("Account has been deleted"));
1181
                }
1181
                }
1182
                $("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id);
1182
                $("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id);
1183
                $("#quantity").val( effective_create_items == 'cataloguing' ? row.quantity_received || 1 : row.quantity_received )
1183
                if (effective_create_items == 'cataloguing' && ! row.quantity_received) {
1184
                    row.quantity_received = 1;
1185
                }
1186
                $("#quantity").val( row.quantity_received )
1184
                              .prop('readonly', !row.subscription_id && effective_create_items == 'receiving');
1187
                              .prop('readonly', !row.subscription_id && effective_create_items == 'receiving');
1185
                [% IF only_one_order %]
1188
                [% IF only_one_order %]
1186
                    $(".modal-save").prop('disabled', $("#quantity").val() == 0);
1189
                    $(".modal-save").prop('disabled', $("#quantity").val() == 0);
1187
- 

Return to bug 35004