From ec6bdd1b5407017356bb8c6decff8a2cf23c47e5 Mon Sep 17 00:00:00 2001 From: blaise Date: Fri, 29 Sep 2023 18:25:53 +0200 Subject: [PATCH] Remove regression which breaks behaviour of PurchaseOrders, etc. --- src/xero/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xero/manager.py b/src/xero/manager.py index c7d0b21..4a6997b 100644 --- a/src/xero/manager.py +++ b/src/xero/manager.py @@ -8,7 +8,7 @@ def __init__(self, name, credentials, unit_price_4dps=False, user_agent=None): from xero import __version__ as VERSION # noqa self.credentials = credentials - self.name = name.capitalize() + self.name = name.capitalize() if name.islower() else name self.base_url = credentials.base_url + XERO_API_URL self.extra_params = {"unitdp": 4} if unit_price_4dps else {} self.singular = singular(name)