Skip to content

Commit 8ea1887

Browse files
committed
qbd direct export settings onboarding changes and content changes
1 parent 9640a93 commit 8ea1887

File tree

5 files changed

+55
-30
lines changed

5 files changed

+55
-30
lines changed

src/app/branding/fyle-contents-config.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const brandingConfig: BrandingConfiguration = config as BrandingConfigura
66
export const fyleContents = {
77
qbd_direct: {
88
landing: {
9-
contentText: 'Import data from QuickBooks Desktop to Fyle and export expenses from Fyle to QuickBooks Desktop',
9+
contentText: 'Import data from QuickBooks Desktop to ' + brandingConfig.brandName + ' and export expenses from ' + brandingConfig.brandName + ' to QuickBooks Desktop',
1010
guideHeaderText: 'Guide to setup your integrations'
1111
},
1212
configuration: {
@@ -24,42 +24,42 @@ export const fyleContents = {
2424
exportSetting: {
2525
stepName: 'Export Settings',
2626
headerText: ' Export Corporate Card Expenses',
27-
contentText: 'In this section, you can configure how and when the expenses from ' + brandingConfig.brandName + ' can be exported to QuickBooks Desktop',
27+
contentText: 'In this section, you can configure how and when the expenses from ' + brandingConfig.brandName + ' need to be exported to QuickBooks Desktop.',
2828
reimbursable: {
2929
reimbursableExpenseLabel: 'Export Reimbursable Expenses',
3030
reimbursableExpenseSubLabel: 'Enable this to export the reimbursable expenses from ' + brandingConfig.brandName + '. If not enabled, any <b>out-of-pocket</b> expenses will not be exported to Quickbooks Desktop.',
3131
reimbursableExpenseTypeLabel: 'How should the expenses be exported?',
3232
reimbursableExpenseTypeSubLabel: 'Choose the type of transaction in QuickBooks Desktop to export your ' + brandingConfig.brandName +' expenses.',
3333
reimbursableExpenseStateLabel: 'At which state should the expenses be ready to export from ' + brandingConfig.brandName + '?',
34-
reimbursableExpenseStateSubLabel: 'You can export expenses either when they are awaiting closure after approval (Processing) or when the payment has been settled (Closed).',
34+
reimbursableExpenseStateSubLabel: 'You can export expenses either when they are awaiting payments after approval (Processing) or when the payment has been settled (Closed).',
3535
reimbursableExpenseDateLabel: 'Set the expense ',
3636
reimbursableExpenseDateSubLabel: 'Expenses will be grouped and posted using the configured date when exporting from ' + brandingConfig.brandName +' to QuickBooks Desktop',
3737
reimbursableExpenseGroupLabel: 'How should the expenses be grouped?',
3838
reimbursableExpenseGroupSubLabel: 'Expenses can either be exported as single line items (Expense) or as a grouped report with multiple line items (Report)',
3939
employeeMappingLabel: 'How are your Employees represented in QuickBooks Desktop?',
40-
employeeMappingSubLabel: 'Select how you represent your employees in QuickBooks Desktop. This would help to export the expenses from ' + brandingConfig.brandName + ' to the correct employee/vendor record in QuickBooks Desktop.',
40+
employeeMappingSubLabel: 'Select how employees are represented in QuickBooks Desktop to ensure expenses from ' + brandingConfig.brandName + ' export to the correct employee/vendor record.',
4141
autoMapEmployeesLabel: 'How should Employees in ' + brandingConfig.brandName + ' be mapped to ',
4242
autoMapEmployeesSubLabel: 'Automatically map the employees in ' + brandingConfig.brandName + ' to their corresponding records in QuickBooks Desktop based on a unique parameter.',
43-
defaultReimbursableAccountPayableLabel: 'To which accounts payable account should the ',
43+
defaultReimbursableAccountPayableLabel: 'Select the Default Credit Account for adding ',
4444
defaultReimbursableAccountPayableSubLabel: 'The integration will post the offset credit entry in '
4545
},
4646
corporateCard: {
4747
creditCardExpenseLabel: 'Export corporate card expenses',
48-
creditCardExpenseSubLabel: 'Enable this to export the non-reimbursable expenses from ' + brandingConfig.brandName + '. If not enabled, any <b>corporate credit card </b> expenses will not be exported to Quickbooks Desktop.',
48+
creditCardExpenseSubLabel: 'Enable this to export the corporate credit card expenses from ' + brandingConfig.brandName + '. If not enabled, any <b>non-reimbursable </b> expenses will not be exported to Quickbooks Desktop.',
4949
creditCardExpenseTypeLabel: 'How should the expenses be exported?',
5050
creditCardExpenseTypeSubLabel: 'Choose the type of transaction in QuickBooks Desktop to export your ' + brandingConfig.brandName +' expenses.',
5151
creditCardExpenseStateLabel: 'At which state should the expenses be ready to export from ' + brandingConfig.brandName + '?',
52-
creditCardExpenseStateSubLabel: 'You could choose to export ccc expenses when they have been approved and are awaiting payment clearance, or simply when they have been paid out.',
52+
creditCardExpenseStateSubLabel: 'You can export expenses either when they are awaiting closure after approval (Approved) or when the expense has been closed (Closed).',
5353
creditCardExpenseDateLabel: 'Set the expense ',
5454
creditCardExpenseDateSubLabel: 'Expenses will be grouped and posted using the configured date when exporting from ' + brandingConfig.brandName +' to QuickBooks Desktop',
5555
creditCardExpenseGroupLabel: 'How should the expenses be grouped?',
5656
creditCardExpenseGroupSubLabel: 'Expenses can either be exported as single line items (Expense) or as a grouped report with multiple line items (Report)',
5757
creditCardExpenseNameinJELabel: 'Name in Journal Entry',
58-
creditCardExpenseNameinJESubLabel: 'You can select either the \'Merchant Name\' or the \'Employee Name\' to appear in the \'Name\' field of your Journal Entries.',
59-
defaultCCCAccountLabel: 'Set Default Credit Card Account as',
60-
defaultCCCAccountSubLabel: 'Post all your company corporate card transactions to a default credit card account.',
61-
defaultCCCAccountPayableLabel: 'To which accounts payable account should the ',
62-
defaultCCCAccountPayableSubLabel: 'The integration will post the offset credit entry in '
58+
creditCardExpenseNameinJESubLabel: 'You can select either the \'Merchant Name\' or the \'Employee Name\' to appear in the \'Name\' field of your journal entries.',
59+
defaultCCCAccountLabel: 'Set a Default Credit Card Account',
60+
defaultCCCAccountSubLabel: 'If there\'s no card-to-card mapping or when an expense lacks a corporate card transaction associated with it, expenses will be posted to the default card configured here.',
61+
defaultCCCAccountPayableLabel: 'Select the Default Credit Account for adding Journal Entry ',
62+
defaultCCCAccountPayableSubLabel: 'This account will be used for the credit line of the '
6363
}
6464
},
6565
importSetting: {
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
<p>qbd-direct-onboarding-export-settings works!</p>
1+
<div class="tw-pb-48-px">
2+
<app-onboarding-steppers [onboardingSteps]="onboardingSteps"></app-onboarding-steppers>
3+
<app-qbd-direct-export-settings></app-qbd-direct-export-settings>
4+
</div>
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
1-
import { Component } from '@angular/core';
1+
import { Component, OnInit } from '@angular/core';
2+
import { QbdDirectExportSettingsComponent } from "../../qbd-direct-shared/qbd-direct-export-settings/qbd-direct-export-settings.component";
3+
import { SharedModule } from 'src/app/shared/shared.module';
4+
import { CommonModule } from '@angular/common';
5+
import { QbdOnboardingModule } from 'src/app/integrations/qbd/qbd-onboarding/qbd-onboarding.module';
6+
import { QbdDirectOnboardingModel } from 'src/app/core/models/qbd-direct/qbd-direct-configuration/qbd-direct-onboarding.model';
7+
import { brandingContent } from 'src/app/branding/branding-config';
8+
import { OnboardingStepper } from 'src/app/core/models/misc/onboarding-stepper.model';
9+
import { WorkspaceService } from 'src/app/core/services/common/workspace.service';
210

311
@Component({
412
selector: 'app-qbd-direct-onboarding-export-settings',
513
standalone: true,
6-
imports: [],
14+
imports: [QbdDirectExportSettingsComponent, SharedModule, CommonModule],
715
templateUrl: './qbd-direct-onboarding-export-settings.component.html',
816
styleUrl: './qbd-direct-onboarding-export-settings.component.scss'
917
})
10-
export class QbdDirectOnboardingExportSettingsComponent {
18+
export class QbdDirectOnboardingExportSettingsComponent implements OnInit {
19+
20+
brandingContent = brandingContent.configuration.exportSetting;
21+
22+
onboardingSteps: OnboardingStepper[] = new QbdDirectOnboardingModel().getOnboardingSteps(this.brandingContent.stepName, this.workspaceService.getOnboardingState());
23+
24+
constructor(
25+
private workspaceService: WorkspaceService
26+
) { }
27+
28+
ngOnInit(): void {
29+
}
1130

1231
}

src/app/integrations/qbd-direct/qbd-direct-shared/qbd-direct-export-settings/qbd-direct-export-settings.component.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
[subLabel]="brandingContent.reimbursable.reimbursableExpenseTypeSubLabel"
3333
[options]="reimbursableExportTypes"
3434
[iconPath]="'list'"
35-
[placeholder]="brandingContent.reimbursable.reimbursableExpenseTypeSubLabel"
35+
[placeholder]="'Select an export type'"
3636
[formControllerName]="'reimbursableExportType'"
3737
[appName]="appName"
3838
[showExportPreview]="false">
@@ -65,8 +65,8 @@
6565
[optionLabel]="'value'"
6666
[isFieldMandatory]="true"
6767
[mandatoryErrorListName]="'accounts payable'"
68-
[label]="brandingContent.reimbursable.defaultReimbursableAccountPayableLabel + (exportSettingsForm.get('reimbursableExportType')?.value | snakeCaseToSpaceCase | titlecase) + ' be posted to?'"
69-
[subLabel]="brandingContent.reimbursable.defaultReimbursableAccountPayableSubLabel + (exportSettingsForm.get('reimbursableExportType')?.value | snakeCaseToSpaceCase | titlecase) + ' to the selected accounts payable account.'"
68+
[label]="brandingContent.reimbursable.defaultReimbursableAccountPayableLabel + (exportSettingsForm.get('reimbursableExportType')?.value | snakeCaseToSpaceCase | titlecase)"
69+
[subLabel]="brandingContent.reimbursable.defaultReimbursableAccountPayableSubLabel + (exportSettingsForm.get('reimbursableExportType')?.value | snakeCaseToSpaceCase | titlecase) + ' ,while debit lines will reflect the category chosen by the employee for each respective expense'"
7070
[iconPath]="'list'"
7171
[placeholder]="'Select accounts payable'"
7272
[isMultiLineOption]="true"
@@ -108,7 +108,7 @@
108108
[label]="brandingContent.reimbursable.reimbursableExpenseDateLabel + (exportSettingsForm.value.reimbursableExportType | snakeCaseToSpaceCase | lowercase) + ' date as'"
109109
[subLabel]="brandingContent.reimbursable.reimbursableExpenseDateSubLabel"
110110
[options]="reimbursableExpenseGroupingDateOptions" [iconPath]="'calendar'"
111-
[placeholder]="'Select the date of the ' + (exportSettingsForm.value.reimbursableExportType | snakeCaseToSpaceCase | titlecase)"
111+
[placeholder]="'Select date'"
112112
[formControllerName]="'reimbursableExportDate'">
113113
</app-configuration-select-field>
114114
</div>
@@ -117,7 +117,7 @@
117117
<app-configuration-toggle-field
118118
[form]="exportSettingsForm"
119119
[label]="brandingContent.headerText"
120-
[subLabel]="brandingContent.contentText"
120+
[subLabel]="brandingContent.corporateCard.creditCardExpenseSubLabel"
121121
[formControllerName]="'creditCardExpense'"
122122
[isSectionHeader]="true"
123123
[hideToggle]="!brandingFeatureConfig.featureFlags.exportSettings.reimbursableExpenses">
@@ -132,10 +132,10 @@
132132
[isFieldMandatory]="true"
133133
[mandatoryErrorListName]="'export module'"
134134
[label]="brandingContent.corporateCard.creditCardExpenseTypeLabel"
135-
[subLabel]="brandingContent.corporateCard.creditCardExpenseSubLabel"
135+
[subLabel]="brandingContent.corporateCard.creditCardExpenseTypeSubLabel"
136136
[options]="creditCardExportTypes"
137137
[iconPath]="'list'"
138-
[placeholder]="'Select expense export type'"
138+
[placeholder]="'Select an export type'"
139139
[formControllerName]="'creditCardExportType'"
140140
[appName]="appName"
141141
[showExportPreview]="false">
@@ -187,8 +187,8 @@
187187
[optionLabel]="'value'"
188188
[isFieldMandatory]="true"
189189
[mandatoryErrorListName]="'accounts payable'"
190-
[label]="brandingContent.corporateCard.defaultCCCAccountPayableLabel + (exportSettingsForm.get('creditCardExportType')?.value | snakeCaseToSpaceCase | titlecase) + ' be posted to?'"
191-
[subLabel]="brandingContent.corporateCard.defaultCCCAccountPayableSubLabel + (exportSettingsForm.get('creditCardExportType')?.value | snakeCaseToSpaceCase | titlecase) + ' to the selected accounts payable account.'"
190+
[label]="brandingContent.corporateCard.defaultCCCAccountPayableLabel + (exportSettingsForm.get('creditCardExportType')?.value | snakeCaseToSpaceCase | titlecase)"
191+
[subLabel]="brandingContent.corporateCard.defaultCCCAccountPayableSubLabel + (exportSettingsForm.get('creditCardExportType')?.value | snakeCaseToSpaceCase | titlecase) + ' ,while debit lines will reflect the category chosen by the employee for each respective expense'"
192192
[iconPath]="'list'"
193193
[placeholder]="'Select accounts payable'"
194194
[isMultiLineOption]="true"
@@ -237,7 +237,7 @@
237237
[options]="creditCardExpenseGroupingFieldOptions"
238238
[iconPath]="'question-square-outline'"
239239
[placeholder]="'Select expense grouping'"
240-
[isDisableTextRequired]="false"
240+
[isDisableTextRequired]="true"
241241
[isDisabled]="exportSettingsForm.get('creditCardExportType')?.value === QBDCorporateCreditCardExpensesObject.CREDIT_CARD_PURCHASE ? true : false"
242242
[formControllerName]="'creditCardExportGroup'">
243243
</app-configuration-select-field>
@@ -252,7 +252,7 @@
252252
[subLabel]="brandingContent.corporateCard.creditCardExpenseDateSubLabel"
253253
[options]="cccExpenseGroupingDateOptions"
254254
[iconPath]="'calendar'"
255-
[placeholder]="'Select the date of the ' + (brandingConfig.brandId === 'fyle' ? (exportSettingsForm.value.creditCardExportType | snakeCaseToSpaceCase | titlecase) : (exportSettingsForm.value.creditCardExportType | snakeCaseToSpaceCase | lowercase))"
255+
[placeholder]="'Select date'"
256256
[formControllerName]="'creditCardExportDate'">
257257
</app-configuration-select-field>
258258
</div>
@@ -261,7 +261,7 @@
261261
<app-configuration-step-footer
262262
[ctaText]="!isSaveInProgress ? (isOnboarding ? ConfigurationCtaText.SAVE_AND_CONTINUE : ConfigurationCtaText.SAVE) : ConfigurationCtaText.SAVING"
263263
[isButtonDisabled]="!exportSettingsForm.valid"
264-
[showBackButton]="isOnboarding ? true : false"
264+
[showBackButton]="false"
265265
(save)="save()"
266266
(navigateToPreviousStep)="navigateToPreviousStep()">
267267
</app-configuration-step-footer>

src/app/integrations/qbd-direct/qbd-direct-shared/qbd-direct-shared.module.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { SharedModule } from 'src/app/shared/shared.module';
44
import { QbdDirectDownloadFileComponent } from './qbd-direct-download-file/qbd-direct-download-file.component';
55
import { QbdDirectSetupConnectionComponent } from './qbd-direct-setup-connection/qbd-direct-setup-connection.component';
66
import { QbdDirectDataSyncComponent } from './qbd-direct-data-sync/qbd-direct-data-sync.component';
7+
import { QbdDirectExportSettingsComponent } from './qbd-direct-export-settings/qbd-direct-export-settings.component';
78

89
@NgModule({
910
declarations: [],
@@ -12,12 +13,14 @@ import { QbdDirectDataSyncComponent } from './qbd-direct-data-sync/qbd-direct-da
1213
SharedModule,
1314
QbdDirectDownloadFileComponent,
1415
QbdDirectSetupConnectionComponent,
15-
QbdDirectDataSyncComponent
16+
QbdDirectDataSyncComponent,
17+
QbdDirectExportSettingsComponent
1618
],
1719
exports: [
1820
QbdDirectDownloadFileComponent,
1921
QbdDirectSetupConnectionComponent,
20-
QbdDirectDataSyncComponent
22+
QbdDirectDataSyncComponent,
23+
QbdDirectExportSettingsComponent
2124
]
2225
})
2326
export class QbdDirectSharedModule { }

0 commit comments

Comments
 (0)