mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 13:06:45 +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…
x
Reference in New Issue
Block a user