-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Add handling of the NetSuite beta in NewDot #44064
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
Changes from all 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 |
|---|---|---|
|
|
@@ -363,6 +363,7 @@ const CONST = { | |
| SPOTNANA_TRAVEL: 'spotnanaTravel', | ||
| ACCOUNTING_ON_NEW_EXPENSIFY: 'accountingOnNewExpensify', | ||
| XERO_ON_NEW_EXPENSIFY: 'xeroOnNewExpensify', | ||
| NETSUITE_ON_NEW_EXPENSIFY: 'netsuiteOnNewExpensify', | ||
| REPORT_FIELDS_FEATURE: 'reportFieldsFeature', | ||
| }, | ||
| BUTTON_STATES: { | ||
|
|
@@ -1799,6 +1800,7 @@ const CONST = { | |
| // Here we will add other connections names when we add support for them | ||
| QBO: 'quickbooksOnline', | ||
| XERO: 'xero', | ||
| NETSUITE: 'netsuite', | ||
|
Collaborator
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. question, I was confused if we should use
Contributor
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. one word should be fine I believe |
||
| }, | ||
| SYNC_STAGE_NAME: { | ||
| STARTING_IMPORT_QBO: 'startingImportQBO', | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -236,6 +236,11 @@ function updateManyPolicyConnectionConfigs<TConnectionName extends ConnectionNam | |
| } | ||
|
|
||
| function hasSynchronizationError(policy: OnyxEntry<Policy>, connectionName: PolicyConnectionName, isSyncInProgress: boolean): boolean { | ||
| // NetSuite does not use the conventional lastSync object, so we need to check for lastErrorSyncDate | ||
| if (connectionName === CONST.POLICY.CONNECTIONS.NAME.NETSUITE) { | ||
| return !isSyncInProgress && !!policy?.connections?.[CONST.POLICY.CONNECTIONS.NAME.NETSUITE].lastErrorSyncDate; | ||
|
Contributor
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. @yuwenmemon I think we should have used
Contributor
Author
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. No, |
||
| } | ||
|
|
||
| return !isSyncInProgress && policy?.connections?.[connectionName]?.lastSync?.isSuccessful === false; | ||
| } | ||
|
|
||
|
|
||
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.
NAB - should this be
netSuiteinstead ofnetsuite?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.
Nah this matches the casing on Web-E