Skip to content

Commit

Permalink
fix(VAT ID Check): add address query
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Jul 19, 2023
1 parent 61c5a8c commit 2160509
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
// Copyright (c) 2023, ALYF GmbH and contributors
// For license information, please see license.txt

frappe.ui.form.on('VAT ID Check', {
// refresh: function(frm) {

// }
frappe.ui.form.on("VAT ID Check", {
setup: function (frm) {
frm.set_query("customer_address", function (doc) {
return {
query: "frappe.contacts.doctype.address.address.address_query",
filters: {
link_doctype: "Customer",
link_name: doc.customer,
},
};
});
},
});

0 comments on commit 2160509

Please sign in to comment.