[feature] [refactor] Shipping Rule for Buying + Refactor (#11628)
* Shipping rule for Buying * [refactor] shipping rule
This commit is contained in:
@@ -18,6 +18,14 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
|
||||
this.setup_queries();
|
||||
this._super();
|
||||
|
||||
this.frm.set_query('shipping_rule', function() {
|
||||
return {
|
||||
filters: {
|
||||
"shipping_rule_type": "Buying"
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
/* eslint-disable */
|
||||
// no idea where me is coming from
|
||||
if(this.frm.get_field('shipping_address')) {
|
||||
|
||||
Reference in New Issue
Block a user