NTP-22798 | Pass only single counter party preference for similar transaction. If no similar transaction then pass empty counterPartyPreference (#14340)
This commit is contained in:
@@ -662,15 +662,11 @@ private fun onProceedFooterButtonClick(
|
||||
),
|
||||
counterPartyPreferences =
|
||||
if (isAutoCategoriseChecked) {
|
||||
getTransactionList(
|
||||
selectedItems = selectedItems,
|
||||
selectedCategoryId = selectedChip,
|
||||
createTransaction = { item, category ->
|
||||
CounterPartyPreference(
|
||||
counterPartyName = item.name,
|
||||
selectedCategory = category
|
||||
)
|
||||
}
|
||||
listOf(
|
||||
CounterPartyPreference(
|
||||
counterPartyName = categoryTransactionData.counterPartyName,
|
||||
selectedCategory = selectedChip
|
||||
)
|
||||
)
|
||||
} else {
|
||||
null
|
||||
|
||||
Reference in New Issue
Block a user