From 856908a8436afe0db543c5d3222bf61f2953853d Mon Sep 17 00:00:00 2001 From: Shwetabh Kumar Date: Thu, 25 Feb 2021 15:01:18 +0530 Subject: [PATCH] Adding ap account key to payment payload --- netsuitesdk/api/vendor_payments.py | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/netsuitesdk/api/vendor_payments.py b/netsuitesdk/api/vendor_payments.py index 44d7352..0aac3ac 100644 --- a/netsuitesdk/api/vendor_payments.py +++ b/netsuitesdk/api/vendor_payments.py @@ -34,6 +34,7 @@ def post(self, data) -> OrderedDict: apply_lists.append(vpal) vp['applyList'] = self.ns_client.VendorPaymentApplyList(apply=apply_lists) + vp['currency'] = self.ns_client.RecordRef(**(data['currency'])) if 'amount' in data: @@ -51,6 +52,9 @@ def post(self, data) -> OrderedDict: if 'class' in data: vp['class'] = self.ns_client.RecordRef(**(data['class'])) + if 'apAcct' in data: + vp['apAcct'] = self.ns_client.RecordRef(**(data['apAcct'])) + if 'location' in data: vp['location'] = self.ns_client.RecordRef(**(data['location'])) diff --git a/setup.py b/setup.py index 43f21ec..5331646 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='netsuitesdk', - version='1.13.1', + version='1.14.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing the NetSuite SOAP webservice',