Skip to content

Commit

Permalink
add options card num and employee name across
Browse files Browse the repository at this point in the history
  • Loading branch information
anishfyle committed Nov 26, 2024
1 parent 427031c commit d419882
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface BusinessCentralAdvancedSettingsPost extends BusinessCentralAdva
export class BusinessCentralAdvancedSettingsModel {

static mapAPIResponseToFormGroup(advancedSettings: BusinessCentralAdvancedSettingsGet | null, isSkipExportEnabled: boolean): FormGroup {
const defaultMemoOptions: string[] = ['employee_email', 'purpose', 'category', 'spent_on', 'report_number', 'expense_link'];
const defaultMemoOptions: string[] = ['employee_email', 'employee_name','purpose', 'category', 'spent_on', 'report_number', 'expense_link', 'card_number'];

Check failure on line 24 in src/app/core/models/business-central/business-central-configuration/business-central-advanced-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

A space is required after ','
return new FormGroup({
memoStructure: new FormControl(advancedSettings?.expense_memo_structure ? advancedSettings?.expense_memo_structure : defaultMemoOptions),
scheduleEnabled: new FormControl(advancedSettings?.schedule_is_enabled ? true : false),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface Sage300AdvancedSettingPost extends Sage300AdvancedSetting { }
export class Sage300AdvancedSettingModel {

static mapAPIResponseToFormGroup(advancedSettings: Sage300AdvancedSettingGet | null, isSkipExportEnabled: boolean): FormGroup {
const defaultMemoOptions: string[] = ['employee_email', 'purpose', 'category', 'spent_on', 'report_number', 'expense_link'];
const defaultMemoOptions: string[] = ['employee_email', 'employee_name','purpose', 'category', 'spent_on', 'report_number', 'expense_link', 'card_number'];

Check failure on line 24 in src/app/core/models/sage300/sage300-configuration/sage300-advanced-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

A space is required after ','
return new FormGroup({
memoStructure: new FormControl(advancedSettings?.memo_structure ? advancedSettings?.memo_structure : defaultMemoOptions),
scheduleEnabled: new FormControl(advancedSettings?.schedule_is_enabled ? true : false),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class BusinessCentralAdvancedSettingsComponent implements OnInit {

ConfigurationCtaText = ConfigurationCta;

defaultMemoOptions: string[] = ['employee_email', 'purpose', 'category', 'spent_on', 'report_number'];
defaultMemoOptions: string[] = ['employee_email', 'employee_name','purpose', 'category', 'spent_on', 'report_number', 'card_number'];

Check failure on line 50 in src/app/integrations/business-central/business-central-shared/business-central-advanced-settings/business-central-advanced-settings.component.ts

View workflow job for this annotation

GitHub Actions / lint

A space is required after ','

memoPreviewText: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Sage300AdvancedSettingsComponent implements OnInit {

ConfigurationCtaText = ConfigurationCta;

defaultMemoOptions: string[] = ['employee_email', 'purpose', 'category', 'spent_on', 'report_number', 'expense_link'];
defaultMemoOptions: string[] = ['employee_email', 'employee_name','purpose', 'category', 'spent_on', 'report_number', 'expense_link', 'card_number'];

Check failure on line 55 in src/app/integrations/sage300/sage300-shared/sage300-advanced-settings/sage300-advanced-settings.component.ts

View workflow job for this annotation

GitHub Actions / lint

A space is required after ','

memoPreviewText: string;

Expand Down

0 comments on commit d419882

Please sign in to comment.