-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Connection #92
Fix Connection #92
Changes from 5 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -93,6 +93,7 @@ def sync_companies(self): | |||||
""" | ||||||
sync business central companies | ||||||
""" | ||||||
print('sync_companies') | ||||||
companies = self.connection.companies.get_all() | ||||||
field_names = [] | ||||||
|
||||||
|
@@ -143,6 +144,7 @@ def get_companies(self): | |||||
""" | ||||||
Get business central companies | ||||||
""" | ||||||
self.connection.__company_id = None | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid directly accessing private attributes like - self.connection.__company_id = None
+ # Suggested: Implement a method in the Dynamics class for this operation. Committable suggestion
Suggested change
|
||||||
companies = self.connection.companies.get_all() | ||||||
return companies | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the print statement from the
sync_companies
method for production readiness.- print('sync_companies')
Committable suggestion