diff --git a/app/views/orders/_edit_amounts.html.haml b/app/views/orders/_edit_amounts.html.haml
index 9c1adb5d..ab143f92 100644
--- a/app/views/orders/_edit_amounts.html.haml
+++ b/app/views/orders/_edit_amounts.html.haml
@@ -62,8 +62,7 @@
}
function unlock_receive_input_field() {
- var order_article_entry = $(this).closest('tr');
- $('.units_received', order_article_entry).removeAttr('readonly');
+ $('.units_received', $(this).closest('tr')).prop('readonly', false);
$(this).remove();
}