From c5ca8d74c4aa400e4123bdfe62009b261e43b1bf Mon Sep 17 00:00:00 2001 From: Vishal Dhayagude Date: Thu, 26 Jan 2023 15:45:51 +0530 Subject: [PATCH] fix: GST Category validation broken for pos unregistered customer who dont have address. (#33800) * fix: GST Category validation is given for pos customer --- erpnext/accounts/party.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index baeed03a0f..b6eb3edbda 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -211,7 +211,13 @@ def set_address_details( else: party_details.update(get_company_address(company)) - if doctype and doctype in ["Delivery Note", "Sales Invoice", "Sales Order", "Quotation"]: + if doctype and doctype in [ + "Delivery Note", + "Sales Invoice", + "Sales Order", + "Quotation", + "POS Invoice", + ]: if party_details.company_address: party_details.update( get_fetch_values(doctype, "company_address", party_details.company_address)