-
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
xero advanced settings html cooding #671
Merged
DhaaraniCIT
merged 5 commits into
xero-advanced-settings-ts
from
xero-advanced-settings-html
Mar 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 111 additions & 1 deletion
112
...ntegrations/xero/xero-shared/xero-advanced-settings/xero-advanced-settings.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,111 @@ | ||
<p>xero-advanced-settings works!</p> | ||
<div *ngIf="isLoading" class="tw-flex tw-justify-center tw-items-center tw-h-screen"> | ||
<app-loader></app-loader> | ||
</div> | ||
<div *ngIf="!isLoading" class="configuration--contents tw-border-border-tertiary tw-mt-6" [ngClass]="{'tw-mx-120-px tw-shadow-app-card': brandingConfig.brandId === 'fyle', 'tw-mx-60-px tw-shadow-shadow-level-1': brandingConfig.brandId === 'co'}"> | ||
<div> | ||
<app-configuration-step-header | ||
[headerText]="brandingContent.stepName" | ||
[contentText]="'In this section, you can customize the integration based on your accounting requirements. '" | ||
[redirectLink]="supportArticleLink" | ||
[showSyncButton]="isOnboarding" | ||
[appName]="appName" | ||
(refreshDimension)="refreshDimensions()"> | ||
</app-configuration-step-header> | ||
</div> | ||
<form [formGroup]="advancedSettingForm"> | ||
<div class="tw-p-24-px"> | ||
<div class="tw-mb-16-px"> | ||
<app-configuration-step-sub-header | ||
[label]="'Automation'" | ||
[subLabel]="'You can automate the export and sync of your data in this section.'"> | ||
</app-configuration-step-sub-header> | ||
</div> | ||
<div class="tw-mb-16-px"> | ||
<div class="tw-rounded-12-px tw-border-border-tertiary tw-border tw-bg-white tw-mb-16-px"> | ||
<app-configuration-toggle-field | ||
[form]="advancedSettingForm" | ||
[label]="'Schedule automatic export'" | ||
[subLabel]="'Set up a schedule to frequently automate the export of expenses from ' + brandingConfig.brandName + ' to Xero.'" | ||
[formControllerName]="'exportSchedule'" | ||
[iconPath]="'calendar'"> | ||
</app-configuration-toggle-field> | ||
|
||
<div *ngIf="advancedSettingForm.value.exportSchedule"> | ||
<app-configuration-schedule-export | ||
[form]="advancedSettingForm" | ||
[appName]="appName" | ||
[isFieldMandatory]="false" | ||
[mandatoryErrorListName]="'automatic export method'" | ||
[label]="'Set up export frequency'" | ||
[subLabel]="'Set a frequency based on how often you want your expenses in ' + brandingConfig.brandName + ' to be exported to Xero.'" | ||
[options]="hours" | ||
[isEmailPresent]="brandingFeatureConfig.featureFlags.advancedSettings.emailNotification ? true: false" | ||
[formControllerName]="'exportScheduleFrequency'" | ||
[adminEmails]="adminEmails"> | ||
</app-configuration-schedule-export> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="tw-mb-16-px"> | ||
<app-configuration-step-sub-header | ||
[label]="'Other Preferences'" | ||
[subLabel]="'Based on your preference, you can choose whether you want to create any new records in Xero from ' + brandingConfig.brandName + '. (when there is no employee record found, or when the accounting period is closed)'"> | ||
</app-configuration-step-sub-header> | ||
</div> | ||
<div class="tw-rounded-12-px tw-border-border-tertiary tw-border tw-bg-white tw-mb-16-px"> | ||
<app-configuration-toggle-field | ||
[form]="advancedSettingForm" | ||
[iconPath]="'calendar'" | ||
[label]="'Post entries in the next open accounting period'" | ||
[subLabel]="'If the accounting period in Xero is closed, the expenses from ' + brandingConfig.brandName + ' will be exported with a date stamp of the first day next open accounting period.'" | ||
[formControllerName]="'changeAccountingPeriod'"> | ||
</app-configuration-toggle-field> | ||
|
||
<app-configuration-toggle-field *ngIf="brandingFeatureConfig.featureFlags.advancedSettings.autoCreateVendors" | ||
[form]="advancedSettingForm" | ||
[iconPath]="'user-plus'" | ||
[label]="brandingContent.autoCreateVendorsLabel" | ||
[subLabel]="'While exporting reimbursable expenses from ' + brandingConfig.brandName + ', the integration will automatically create a vendor if a match does not exist in Xero already.'" | ||
[formControllerName]="'autoCreateVendors'"> | ||
</app-configuration-toggle-field> | ||
|
||
<app-configuration-select-field *ngIf="brandingFeatureConfig.featureFlags.advancedSettings.paymentsSync" | ||
[form]="advancedSettingForm" | ||
[options]="paymentSyncOptions" | ||
[iconPath]="'arrow-rotate'" | ||
[label]="brandingContent.paymentSyncLabel" | ||
[subLabel]="'When expense is marked paid in ' + brandingConfig.brandName + ' the transaction in Xero will be automatically be updated to Paid and vice versa.'" | ||
[placeholder]="'Select how payments should be synced for reimbursable expenses'" | ||
[formControllerName]="'paymentSync'"> | ||
</app-configuration-select-field> | ||
|
||
<app-configuration-select-field *ngIf="advancedSettingForm.value.paymentSync && advancedSettingForm.value.paymentSync === 'fyle_to_xero'" | ||
[form]="advancedSettingForm" | ||
[destinationAttributes]="billPaymentAccounts" | ||
[optionLabel]="'name'" | ||
[isFieldMandatory]="true" | ||
[mandatoryErrorListName]="'payment account'" | ||
[label]="brandingContent.billPaymentAccountLabel" | ||
[subLabel]="'Once the payment for the reimbursable expense is complete in ' + brandingConfig.brandName + brandingContent.billPaymentAccountSubLabel + 'Xero.'" | ||
[placeholder]="'Select a Payment Account'" | ||
[formControllerName]="'billPaymentAccount'"> | ||
</app-configuration-select-field> | ||
|
||
<app-configuration-toggle-field | ||
[form]="advancedSettingForm" | ||
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. check if ccc export is enabled |
||
[iconPath]="'user-plus'" | ||
[label]="brandingContent.autoCreateMerchantsAsVendorsLabel" | ||
[subLabel]="brandingConfig.brandName + ' will auto-create a new vendor in Xero if a merchant added by an employee does not have a corresponding match in Xero.'" | ||
[formControllerName]="'autoCreateMerchantDestinationEntity'"> | ||
</app-configuration-toggle-field> | ||
</div> | ||
</div> | ||
<app-configuration-step-footer | ||
[ctaText] = "!isSaveInProgress ? (isOnboarding ? ConfigurationCtaText.SAVE_AND_CONTINUE : ConfigurationCtaText.SAVE) : ConfigurationCtaText.SAVING" | ||
[isButtonDisabled]="!advancedSettingForm.valid" | ||
[showBackButton]="isOnboarding ? true : false" | ||
(save)="save()" | ||
(navigateToPreviousStep)="navigateToPreviousStep()"></app-configuration-step-footer> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
also check if reimbursable export is present