<reponame>mudux/lims<filename>lims/lims/doctype/raw_astm/raw_astm.js<gh_stars>0// Copyright (c) 2022, nnheo@example.com and contributors
// For license information, please see license.txt

frappe.ui.form.on('Raw ASTM', {
	refresh: function(frm) {
		frm.add_custom_button('Reprocess', () => {
            frm.call('reprocess_astm_data')
			.then(r => {
				// if (r.message) {}
				frm.reload_doc();
				frm.reload_doc();
				frappe.show_alert({
					message:'Success',
					indicator:'green'
				}, 5);
			})
        });
	}
});
