Merge pull request #22233 from deepeshgarg007/pi_billing_address

fix: Billing address in for Purchase documents
This commit is contained in:
rohitwaghchaure 2020-06-14 15:10:43 +05:30 committed by GitHub
commit 25f49d59c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1215 additions and 372 deletions

File diff suppressed because it is too large Load Diff

View File

@ -73,6 +73,8 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
me.frm.set_query('contact_person', erpnext.queries.contact_query);
me.frm.set_query('supplier_address', erpnext.queries.address_query);
me.frm.set_query('billing_address', erpnext.queries.company_address_query);
if(this.frm.fields_dict.supplier) {
this.frm.set_query("supplier", function() {
return{ query: "erpnext.controllers.queries.supplier_query" }});
@ -283,6 +285,11 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
"shipping_address_display", true);
},
billing_address: function() {
erpnext.utils.get_address_display(this.frm, "billing_address",
"billing_address_display", true);
},
tc_name: function() {
this.get_terms();
},

File diff suppressed because it is too large Load Diff