Skip to content

Commit

Permalink
Feature/vendors repkey (#44)
Browse files Browse the repository at this point in the history
* Fix LastModDate condition for VendorBills

* add require_lastModified_date to entities (#43)

---------

Co-authored-by: Keyna Rafael <[email protected]>
  • Loading branch information
hsyyid and keyn4 authored May 9, 2023
1 parent 43bd23e commit 7d7c58b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tap_netsuite/netsuite/transaction_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def post(self, data) -> OrderedDict:
class InventoryTransfer(ApiBase):
def __init__(self, ns_client):
ApiBase.__init__(self, ns_client=ns_client, type_name='InventoryTransfer')
self.require_lastModified_date = True

def get_all(self, last_modified_date=None):
return self.get_all_generator(last_modified_date=last_modified_date)
Expand Down Expand Up @@ -204,6 +205,7 @@ def post(self, data) -> OrderedDict:
class InventoryAdjustment(ApiBase):
def __init__(self, ns_client):
ApiBase.__init__(self, ns_client=ns_client, type_name='InventoryAdjustment')
self.require_lastModified_date = True

def get_all(self, last_modified_date=None):
return self.get_all_generator(last_modified_date=last_modified_date)
Expand All @@ -226,6 +228,7 @@ def post(self, data) -> OrderedDict:
class VendorBills(ApiBase):
def __init__(self, ns_client):
ApiBase.__init__(self, ns_client=ns_client, type_name='VendorBills')
self.require_lastModified_date = True

def get_all(self, last_modified_date=None):
return self.get_all_generator(last_modified_date=last_modified_date)
Expand All @@ -247,6 +250,7 @@ def post(self, data) -> OrderedDict:
class VendorPayments(ApiBase):
def __init__(self, ns_client):
ApiBase.__init__(self, ns_client=ns_client, type_name='VendorPayment')
self.require_lastModified_date = True

def get_all(self, last_modified_date=None):
return self.get_all_generator(last_modified_date=last_modified_date)
Expand Down

0 comments on commit 7d7c58b

Please sign in to comment.