mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
chore!: remove unused utils
This commit is contained in:
@@ -702,17 +702,6 @@ def set_transaction_type(args):
|
|||||||
args.transaction_type = "buying"
|
args.transaction_type = "buying"
|
||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
|
||||||
def make_pricing_rule(doctype, docname):
|
|
||||||
doc = frappe.new_doc("Pricing Rule")
|
|
||||||
doc.applicable_for = doctype
|
|
||||||
doc.set(frappe.scrub(doctype), docname)
|
|
||||||
doc.selling = 1 if doctype == "Customer" else 0
|
|
||||||
doc.buying = 1 if doctype == "Supplier" else 0
|
|
||||||
|
|
||||||
return doc
|
|
||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
@frappe.validate_and_sanitize_search_inputs
|
@frappe.validate_and_sanitize_search_inputs
|
||||||
def get_item_uoms(doctype, txt, searchfield, start, page_len, filters):
|
def get_item_uoms(doctype, txt, searchfield, start, page_len, filters):
|
||||||
|
|||||||
@@ -293,20 +293,6 @@ $.extend(erpnext.utils, {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
make_pricing_rule: function (doctype, docname) {
|
|
||||||
frappe.call({
|
|
||||||
method: "erpnext.accounts.doctype.pricing_rule.pricing_rule.make_pricing_rule",
|
|
||||||
args: {
|
|
||||||
doctype: doctype,
|
|
||||||
docname: docname,
|
|
||||||
},
|
|
||||||
callback: function (r) {
|
|
||||||
var doclist = frappe.model.sync(r.message);
|
|
||||||
frappe.set_route("Form", doclist[0].doctype, doclist[0].name);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the first row of a given child table is empty
|
* Checks if the first row of a given child table is empty
|
||||||
* @param child_table - Child table Doctype
|
* @param child_table - Child table Doctype
|
||||||
|
|||||||
Reference in New Issue
Block a user