Launch new forms

This commit is contained in:
Oliver Walters 2022-04-27 00:12:12 +10:00
parent bf11e8361e
commit 340d4d8a89

View File

@ -681,6 +681,12 @@ function orderParts(parts_list, options={}) {
var pk = $(this).attr('pk');
// Launch dialog to create new supplier part
createSupplierPart({
part: pk,
onSuccess: function(response) {
// TODO
}
});
});
// Add callback for "new purchase order" button
@ -688,6 +694,11 @@ function orderParts(parts_list, options={}) {
var pk = $(this).attr('pk');
// Launch dialog to create new purchase order
createPurchaseOrder({
onSuccess: function(response) {
// TODO
}
});
});
});
}