Skip to content

Commit 93b0046

Browse files
authored
intacct remove expense_type from code prepend array (#980)
1 parent 44dbeb7 commit 93b0046

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/app/integrations/intacct/intacct-main/intacct-mapping/intacct-base-mapping/intacct-base-mapping.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class IntacctBaseMappingComponent implements OnInit {
3838

3939
cccExpenseObject: IntacctCorporateCreditCardExpensesObject | null;
4040

41-
acceptedCodeField: string[] = [SageIntacctField.ACCOUNT, SageIntacctField.DEPARTMENT, MappingSourceField.PROJECT, IntacctCategoryDestination.EXPENSE_TYPE];
41+
acceptedCodeField: string[] = [SageIntacctField.ACCOUNT, SageIntacctField.DEPARTMENT, MappingSourceField.PROJECT];
4242

4343
brandingConfig = brandingConfig;
4444

src/app/integrations/intacct/intacct-shared/intacct-import-settings/intacct-import-settings.component.ts

+2-14
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class IntacctImportSettingsComponent implements OnInit {
9191

9292
importCodeField: FormGroup[] = [];
9393

94-
acceptedImportCodeField: string[] = [SageIntacctField.ACCOUNT, SageIntacctField.DEPARTMENT, MappingSourceField.PROJECT, IntacctCategoryDestination.EXPENSE_TYPE];
94+
acceptedImportCodeField: string[] = [SageIntacctField.ACCOUNT, SageIntacctField.DEPARTMENT, MappingSourceField.PROJECT];
9595

9696
existingFields: string[] = ['employee id', 'organisation name', 'employee name', 'employee email', 'expense date', 'expense date', 'expense id', 'report id', 'employee id', 'department', 'state', 'reporter', 'report', 'purpose', 'vendor', 'category', 'category code', 'mileage distance', 'mileage unit', 'flight from city', 'flight to city', 'flight from date', 'flight to date', 'flight from class', 'flight to class', 'hotel checkin', 'hotel checkout', 'hotel location', 'hotel breakfast', 'currency', 'amount', 'foreign currency', 'foreign amount', 'tax', 'approver', 'project', 'billable', 'cost center', 'cost center code', 'approved on', 'reimbursable', 'receipts', 'paid date', 'expense created date'];
9797

@@ -114,18 +114,6 @@ export class IntacctImportSettingsComponent implements OnInit {
114114
subLabel: 'Example: Meals & Entertainment'
115115
}
116116
],
117-
"EXPENSE_TYPE": [
118-
{
119-
label: 'Import Codes + Names',
120-
value: true,
121-
subLabel: 'Example: 4567: Meals & Entertainment'
122-
},
123-
{
124-
label: 'Import Names only',
125-
value: false,
126-
subLabel: 'Example: Meals & Entertainment'
127-
}
128-
],
129117
"DEPARTMENT": [
130118
{
131119
label: 'Import Codes + Names',
@@ -182,7 +170,7 @@ export class IntacctImportSettingsComponent implements OnInit {
182170
sourceField = IntacctCategoryDestination.ACCOUNT;
183171
}
184172

185-
if (event.checked && this.acceptedImportCodeField.includes(sourceField)) {
173+
if (event.checked && this.acceptedImportCodeField.includes(sourceField) && this.intacctImportCodeConfig[sourceField]) {
186174
// Create a new FormGroup
187175
const value = this.formBuilder.group({
188176
source_field: [sourceField],

0 commit comments

Comments
 (0)