recent transaction rework
This commit is contained in:
parent
511c3e0128
commit
b2e8e13a81
@ -4,4 +4,4 @@
|
|||||||
* config auto update after transaction
|
* config auto update after transaction
|
||||||
* signature removed on void
|
* signature removed on void
|
||||||
* "Enter Password" color to LegacyRed
|
* "Enter Password" color to LegacyRed
|
||||||
|
* Amount and Card Number show in signature pad
|
||||||
@ -113,7 +113,7 @@ fun AppNavGraph(
|
|||||||
val transResultViewModel: TransactionResultViewModel = hiltViewModel(activity)
|
val transResultViewModel: TransactionResultViewModel = hiltViewModel(activity)
|
||||||
val dashboardViewModel: DashboardViewModel = hiltViewModel(activity)
|
val dashboardViewModel: DashboardViewModel = hiltViewModel(activity)
|
||||||
val dashboardUiState = dashboardViewModel.uiState.collectAsStateWithLifecycle().value
|
val dashboardUiState = dashboardViewModel.uiState.collectAsStateWithLifecycle().value
|
||||||
val recentPayDetails by sharedViewModel.getLastThreeTransactions().observeAsState(emptyList())
|
val recentPayDetails by sharedViewModel.getLastTenTransactions().observeAsState(emptyList())
|
||||||
val deviceInfoViewModel: DeviceInfoViewModel = hiltViewModel(activity)
|
val deviceInfoViewModel: DeviceInfoViewModel = hiltViewModel(activity)
|
||||||
val deviceInfoUiState = deviceInfoViewModel.uiState.collectAsStateWithLifecycle().value
|
val deviceInfoUiState = deviceInfoViewModel.uiState.collectAsStateWithLifecycle().value
|
||||||
val tmsSetupViewModel: TmsSetupViewModel = hiltViewModel(activity);
|
val tmsSetupViewModel: TmsSetupViewModel = hiltViewModel(activity);
|
||||||
|
|||||||
@ -438,6 +438,10 @@ class SharedViewModel @Inject constructor(
|
|||||||
return repository.getLastThreeTransactions()
|
return repository.getLastThreeTransactions()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun getLastTenTransactions(): LiveData<List<PayDetail>> {
|
||||||
|
return repository.getLastTenTransactions()
|
||||||
|
}
|
||||||
|
|
||||||
fun getSettlementRecords(): LiveData<List<PayDetail>> {
|
fun getSettlementRecords(): LiveData<List<PayDetail>> {
|
||||||
return repository.getSettlementPOS()
|
return repository.getSettlementPOS()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user