Add refresh after enter in sales and receivings register (#572)

This commit is contained in:
jekkos
2016-05-20 17:27:28 +02:00
parent 41b3d00fb2
commit ec20eb96df
2 changed files with 18 additions and 2 deletions

View File

@@ -459,6 +459,14 @@ $(document).ready(function()
}
});
$("#cart_contents input").keypress(function(event)
{
if (event.which == 13)
{
$('#cart_' + (1 + $(this).index() / 2 )).submit();
}
});
table_support.handle_submit = function(resource, response, stay_open)
{
if(response.success)

View File

@@ -641,8 +641,16 @@ $(document).ready(function()
$('#add_payment_form').submit();
});
$("#payment_types").change(check_payment_type_giftcard).ready(check_payment_type_giftcard)
$("#payment_types").change(check_payment_type_giftcard).ready(check_payment_type_giftcard);
$("#cart_contents input").keypress(function(event)
{
if (event.which == 13)
{
$('#cart_' + (1 + $(this).index() / 2 )).submit();
}
});
$("#amount_tendered").keypress(function(event)
{
if( event.which == 13 )