mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
[Fix] get_shipping_address() takes at least 1 argument (0 given) (#14328)
This commit is contained in:
committed by
Nabin Hait
parent
c1cf495a93
commit
5ecc26bf15
@@ -169,6 +169,7 @@ erpnext.utils.validate_mandatory = function(frm, label, value, trigger_on) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
erpnext.utils.get_shipping_address = function(frm, callback){
|
erpnext.utils.get_shipping_address = function(frm, callback){
|
||||||
|
if (frm.doc.company) {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "frappe.contacts.doctype.address.address.get_shipping_address",
|
method: "frappe.contacts.doctype.address.address.get_shipping_address",
|
||||||
args: {
|
args: {
|
||||||
@@ -186,4 +187,7 @@ erpnext.utils.get_shipping_address = function(frm, callback){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
frappe.msgprint(__("Select company first"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user