fix: move get_shipping_address() from frappe to erpnext and fix references

This commit is contained in:
Abhishek Balam
2020-10-14 20:09:05 +05:30
parent 2f528c1c73
commit 89419c9a30
2 changed files with 21 additions and 2 deletions

View File

@@ -277,7 +277,7 @@ erpnext.utils.validate_mandatory = function(frm, label, value, trigger_on) {
erpnext.utils.get_shipping_address = function(frm, callback){
if (frm.doc.company) {
frappe.call({
method: "frappe.contacts.doctype.address.address.get_shipping_address",
method: "erpnext.accounts.custom.address.get_shipping_address",
args: {
company: frm.doc.company,
address: frm.doc.shipping_address