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:
Sanjay P
2024-12-26 19:21:32 +05:30
committed by GitHub
parent a49771bc04
commit eedb7dc93a

View File

@@ -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