[feature] [refactor] Shipping Rule for Buying + Refactor (#11628)

* Shipping rule for Buying

* [refactor] shipping rule
This commit is contained in:
Rushabh Mehta
2017-11-17 14:31:09 +05:30
committed by GitHub
parent 66e65dc104
commit 30dc9a14c6
26 changed files with 13041 additions and 12246 deletions

View File

@@ -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')) {