Change misc field when updating
This commit is contained in:
parent
998838ca3e
commit
0c21238391
|
@ -112,6 +112,12 @@ $(document).ready(function() {
|
||||||
$line.find('.current_stock').text(old_stock + stock_diff);
|
$line.find('.current_stock').text(old_stock + stock_diff);
|
||||||
$line.find('.stock_diff').text('');
|
$line.find('.stock_diff').text('');
|
||||||
|
|
||||||
|
if ($line.find('.stock_new input').val()) {
|
||||||
|
var old_misc = +$line.find('.misc input').val();
|
||||||
|
$line.find('.misc input').val(old_misc + stock_diff)
|
||||||
|
.trigger('input');
|
||||||
|
}
|
||||||
|
|
||||||
var id = $line.find('input[type="hidden"]').val();
|
var id = $line.find('input[type="hidden"]').val();
|
||||||
conflicts = conflicts.filter(item => item != id);
|
conflicts = conflicts.filter(item => item != id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue