refactor!: change "is_subcontracted" field type from "Select" to "Check"
This commit is contained in:
@@ -81,7 +81,7 @@ erpnext.buying.BuyingController = class BuyingController extends erpnext.Transac
|
||||
}
|
||||
|
||||
this.frm.set_query("item_code", "items", function() {
|
||||
if (me.frm.doc.is_subcontracted == "Yes") {
|
||||
if (me.frm.doc.is_subcontracted) {
|
||||
return{
|
||||
query: "erpnext.controllers.queries.item_query",
|
||||
filters:{ 'supplier': me.frm.doc.supplier, 'is_stock_item': 0 }
|
||||
|
||||
Reference in New Issue
Block a user