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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-3 / +5 lines)
Lines 1177-1186 Link Here
1177
                if( row.creator ) {
1177
                if( row.creator ) {
1178
                    $("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')')
1178
                    $("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')')
1179
                } else {
1179
                } else {
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