Skip to content

Commit

Permalink
Bug fix default value for use_merchant_in_journal_line (#529)
Browse files Browse the repository at this point in the history
* Export Merchant as Journal Entry Line Item

* comment resolved

* Revert "Export Merchant as Journal Entry Line Item (#478)"

This reverts commit 0f312d1.

* Export merchant as vendor in Journal Line Item

* reverted code

* font size on condition

* resolved comment

* Bug fix default value for use_merchant_in_journal_line
  • Loading branch information
Ashutosh619-sudo authored Feb 8, 2024
1 parent 68fe516 commit e60b3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export type ExportSettingOptionSearch = {
corporate_credit_card_expenses_object: cccExportType,
employee_field_mapping: exportSettingsForm.get('employeeFieldMapping')?.value ? exportSettingsForm.get('employeeFieldMapping')?.value.toUpperCase() : null,
auto_map_employees: getValueOrDefault(exportSettingsForm.get('autoMapEmployees')),
use_merchant_in_journal_line: exportSettingsForm.get('useMerchantInJournalLine')?.value
use_merchant_in_journal_line: exportSettingsForm.get('useMerchantInJournalLine')?.value ? exportSettingsForm.get('useMerchantInJournalLine')?.value : false
},
general_mappings: {
default_gl_account: exportSettingsForm.get('glAccount')?.value?.value ? {id: exportSettingsForm.get('glAccount')?.value.destination_id, name: exportSettingsForm.get('glAccount')?.value.value} : emptyDestinationAttribute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ export class IntacctExportSettingsComponent implements OnInit {
creditCardVendor: [findObjectById(this.destinationOptions.VENDOR, generalMappings?.default_ccc_vendor.id)],
creditCard: [findObjectById(this.destinationOptions.ACCOUNT, generalMappings?.default_credit_card.id)],
chargeCard: [findObjectById(this.destinationOptions.CHARGE_CARD, generalMappings?.default_charge_card.id)],
useMerchantInJournalLine: [configurations?.use_merchant_in_journal_line]
useMerchantInJournalLine: [configurations?.use_merchant_in_journal_line ? configurations?.use_merchant_in_journal_line: false]
});

this.exportFieldsWatcher();
Expand Down

0 comments on commit e60b3a0

Please sign in to comment.