From f124dd31120b52a4de15e8ba612ba82e5ed521d0 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 26 Jan 2023 20:26:50 +0530 Subject: [PATCH] fix: GST Category validation broken for pos unregistered customer who dont have address. (#33800) fix: GST Category validation broken for pos unregistered customer who dont have address. (#33800) * fix: GST Category validation is given for pos customer (cherry picked from commit c5ca8d74c4aa400e4123bdfe62009b261e43b1bf) Co-authored-by: Vishal Dhayagude --- 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 67cf6443538..bfe73f02cdc 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)