invoice and bill item price issue solved

This commit is contained in:
cuneytsenturk
2018-09-01 14:04:35 +03:00
parent 4e2c42825f
commit e1b5f59b72
5 changed files with 72 additions and 4 deletions

View File

@ -360,8 +360,24 @@
totalItem();
});
var focus = false;
$(document).on('focusin', '#items .input-price', function(){
focus = true;
});
$(document).on('blur', '#items .input-price', function(){
if (focus) {
totalItem();
focus = false;
}
});
$(document).on('keyup', '#items tbody .form-control', function(){
totalItem();
if (!$(this).hasClass('input-price')) {
totalItem();
}
});
$(document).on('change', '#customer_id', function (e) {