invoice and bill item price issue solved
This commit is contained in:
@ -352,8 +352,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', '#vendor_id', function (e) {
|
||||
|
@ -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', '#vendor_id', function (e) {
|
||||
|
@ -352,8 +352,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) {
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user