forked from DGNum/gestioCOF
Change misc field when updating
This commit is contained in:
parent
998838ca3e
commit
0c21238391
1 changed files with 6 additions and 0 deletions
|
@ -111,6 +111,12 @@ $(document).ready(function() {
|
||||||
var stock_diff = +$line.find('.stock_diff').text();
|
var stock_diff = +$line.find('.stock_diff').text();
|
||||||
$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