mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 17:53:49 +00:00
This reverts commit abb210bd18.
This commit is contained in:
@@ -17,17 +17,7 @@ erpnext.buying = {
|
|||||||
this.setup_queries(doc, cdt, cdn);
|
this.setup_queries(doc, cdt, cdn);
|
||||||
super.onload();
|
super.onload();
|
||||||
|
|
||||||
if (["Purchase Order", "Purchase Receipt", "Purchase Invoice"].includes(this.frm.doctype)) {
|
this.frm.set_query('shipping_rule', function() {
|
||||||
this.frm.set_query("supplier", function () {
|
|
||||||
return {
|
|
||||||
filters: {
|
|
||||||
is_transporter: 0,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
this.frm.set_query("shipping_rule", function () {
|
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
"shipping_rule_type": "Buying"
|
"shipping_rule_type": "Buying"
|
||||||
|
|||||||
Reference in New Issue
Block a user