fix: Apply shipping rule without address too

This commit is contained in:
marination
2020-06-03 14:32:07 +05:30
parent 28c9f3103f
commit 1a1ce9a743
2 changed files with 4 additions and 2 deletions

View File

@@ -879,7 +879,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
shipping_rule: function() {
var me = this;
if(this.frm.doc.shipping_rule && this.frm.doc.shipping_address) {
if(this.frm.doc.shipping_rule) {
return this.frm.call({
doc: this.frm.doc,
method: "apply_shipping_rule",