diff --git a/netsuitesdk/api/base.py b/netsuitesdk/api/base.py index 368bff0..5d70c6a 100644 --- a/netsuitesdk/api/base.py +++ b/netsuitesdk/api/base.py @@ -40,7 +40,13 @@ def get_all(self): return all_records def count(self): - ps = PaginatedSearch(client=self.ns_client, type_name=self.type_name, pageSize=10, perform_search=True) + record_type_search_field = self.ns_client.SearchBooleanField(searchValue=False) + basic_search = self.ns_client.basic_search_factory( + type_name=self.type_name, + isInactive=record_type_search_field, + ) + + ps = PaginatedSearch(client=self.ns_client, type_name=self.type_name, pageSize=10, perform_search=True,basic_search=basic_search) return ps.total_records def get_all_generator(self, page_size=20): diff --git a/setup.py b/setup.py index 1043e5c..918de5f 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='netsuitesdk', - version='2.22.1', + version='2.23.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing the NetSuite SOAP webservice',