mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 18:21:22 +00:00
Merge pull request #50316 from mihir-kandoi/fix-buying-transporter-filter
revert: remove transporter filter from buying doctypes
This commit is contained in:
@@ -71,14 +71,6 @@ erpnext.accounts.PurchaseInvoice = class PurchaseInvoice extends erpnext.buying.
|
|||||||
if (this.frm.doc.supplier && this.frm.doc.__islocal) {
|
if (this.frm.doc.supplier && this.frm.doc.__islocal) {
|
||||||
this.frm.trigger("supplier");
|
this.frm.trigger("supplier");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.frm.set_query("supplier", function () {
|
|
||||||
return {
|
|
||||||
filters: {
|
|
||||||
is_transporter: 0,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
refresh(doc) {
|
refresh(doc) {
|
||||||
|
|||||||
@@ -502,17 +502,6 @@ erpnext.buying.PurchaseOrderController = class PurchaseOrderController extends (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onload() {
|
|
||||||
super.onload();
|
|
||||||
this.frm.set_query("supplier", function () {
|
|
||||||
return {
|
|
||||||
filters: {
|
|
||||||
is_transporter: 0,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
get_items_from_open_material_requests() {
|
get_items_from_open_material_requests() {
|
||||||
erpnext.utils.map_current_doc({
|
erpnext.utils.map_current_doc({
|
||||||
method: "erpnext.stock.doctype.material_request.material_request.make_purchase_order_based_on_supplier",
|
method: "erpnext.stock.doctype.material_request.material_request.make_purchase_order_based_on_supplier",
|
||||||
|
|||||||
@@ -199,17 +199,6 @@ erpnext.stock.PurchaseReceiptController = class PurchaseReceiptController extend
|
|||||||
super.setup(doc);
|
super.setup(doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
onload() {
|
|
||||||
super.onload();
|
|
||||||
this.frm.set_query("supplier", function () {
|
|
||||||
return {
|
|
||||||
filters: {
|
|
||||||
is_transporter: 0,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
refresh() {
|
refresh() {
|
||||||
var me = this;
|
var me = this;
|
||||||
super.refresh();
|
super.refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user