// Copyright (c) 2021, InfluxFramework LLC
// License: GNU General Public License v3. See license.txt

influxframework.ui.form.on("Product Bundle", {
	refresh: function (frm) {
		frm.toggle_enable("new_item_code", frm.is_new());
		frm.set_query("new_item_code", () => {
			return {
				query: "influxerp.selling.doctype.product_bundle.product_bundle.get_new_item_code",
			};
		});
	},
});
