fix: Error on any new doc from Shipping Rule. (#21207)

This commit is contained in:
Marica
2020-04-09 12:01:29 +05:30
committed by GitHub
parent bf5c7fc4d3
commit b225ffa003
2 changed files with 2 additions and 2 deletions

View File

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