mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Click button to validate BOM item
This commit is contained in:
parent
37d9c59a0e
commit
7659f2de7b
@ -317,5 +317,22 @@ function loadBomTable(table, options) {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
table.on('click', '.bom-validate-button', function() {
|
||||
var button = $(this);
|
||||
|
||||
var url = '/api/bom/' + button.attr('pk') + '/validate/';
|
||||
|
||||
inventreePut(
|
||||
url,
|
||||
{
|
||||
valid: true
|
||||
},
|
||||
{
|
||||
method: 'PATCH',
|
||||
reloadOnSuccess: true
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user