@@ -, +, @@ row.quantity_received is empty and we're in 'cataloguing' mode Verify: - Quantity ordered: X - Quantity received: 1 (pre-filled, don't touch or change it) set. No items will be created." empty) step 5. --- .../intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -1180,7 +1180,10 @@ $("#creator").html(_("Account has been deleted")); } $("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id); - $("#quantity").val( effective_create_items == 'cataloguing' ? row.quantity_received || 1 : row.quantity_received ) + if (effective_create_items == 'cataloguing' && ! row.quantity_received) { + row.quantity_received = 1; + } + $("#quantity").val( row.quantity_received ) .prop('readonly', !row.subscription_id && effective_create_items == 'receiving'); [% IF only_one_order %] $(".modal-save").prop('disabled', $("#quantity").val() == 0); --