Skip to content

Commit

Permalink
flake8 resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh committed Nov 8, 2023
1 parent 8cb6aa8 commit 0a13c91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/business_central/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def sync_accounts(self):
Synchronize accounts from MS Dynamics SDK to your application
"""
workspace = Workspace.objects.get(id=self.workspace_id)
self.company_id = workspace.business_central_company_id
self.connection.company_id = workspace.business_central_company_id

accounts = self.connection.accounts.get_all()
self._sync_data(accounts, 'ACCOUNT', 'accounts', self.workspace_id)
Expand All @@ -99,7 +99,7 @@ def sync_vendors(self):
Synchronize vendors from MS Dynamics SDK to your application
"""
workspace = Workspace.objects.get(id=self.workspace_id)
self.company_id = workspace.business_central_company_id
self.connection.company_id = workspace.business_central_company_id

vendors = self.connection.vendors.get_all()
self._sync_data(vendors, 'VENDOR', 'vendor', self.workspace_id)
Expand All @@ -110,7 +110,7 @@ def sync_employees(self):
Synchronize employees from MS Dynamics SDK to your application
"""
workspace = Workspace.objects.get(id=self.workspace_id)
self.company_id = workspace.business_central_company_id
self.connection.company_id = workspace.business_central_company_id

employees = self.connection.employees.get_all()
self._sync_data(employees, 'EMPLOYEE', 'employee', self.workspace_id)
Expand All @@ -121,7 +121,7 @@ def sync_locations(self):
Synchronize locations from MS Dynamics SDK to your application
"""
workspace = Workspace.objects.get(id=self.workspace_id)
self.company_id = workspace.business_central_company_id
self.connection.company_id = workspace.business_central_company_id

locations = self.connection.locations.get_all()
self._sync_data(locations, 'LOCATION', 'location', self.workspace_id)
Expand Down

0 comments on commit 0a13c91

Please sign in to comment.