Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9eebaca7c1 |
+2
-2
@@ -13,8 +13,8 @@ android {
|
|||||||
applicationId "com.conta.app"
|
applicationId "com.conta.app"
|
||||||
minSdk 24
|
minSdk 24
|
||||||
targetSdk 34
|
targetSdk 34
|
||||||
versionCode 5
|
versionCode 6
|
||||||
versionName "1.0.4"
|
versionName "1.0.5"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ class AppViewModel : ViewModel() {
|
|||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
runRequest { _summary.value = repo.getSummary() }
|
runRequest { _summary.value = repo.getSummary() }
|
||||||
runRequest { _transactions.value = repo.listTransactions() }
|
runRequest { _transactions.value = repo.listTransactions() }
|
||||||
|
runRequest { _accounts.value = repo.listAccounts() }
|
||||||
runRequest { _notices.value = repo.listNotices() }
|
runRequest { _notices.value = repo.listNotices() }
|
||||||
runRequest { _statistics.value = repo.getStatistics() }
|
runRequest { _statistics.value = repo.getStatistics() }
|
||||||
}
|
}
|
||||||
@@ -129,6 +130,9 @@ class AppViewModel : ViewModel() {
|
|||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
runRequest { _summary.value = repo.getSummary() }
|
runRequest { _summary.value = repo.getSummary() }
|
||||||
runRequest { _accounts.value = repo.listAccounts() }
|
runRequest { _accounts.value = repo.listAccounts() }
|
||||||
|
runRequest { _transactions.value = repo.listTransactions() }
|
||||||
|
runRequest { _statistics.value = repo.getStatistics() }
|
||||||
|
runRequest { _notices.value = repo.listNotices() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ fun AccountFormScreen(viewModel: AppViewModel, navController: NavController, acc
|
|||||||
viewModel.updateAccount(
|
viewModel.updateAccount(
|
||||||
account.id,
|
account.id,
|
||||||
UpdateAccountRequest(
|
UpdateAccountRequest(
|
||||||
|
name = name.trim(),
|
||||||
creditLimit = parseAmount(creditLimit),
|
creditLimit = parseAmount(creditLimit),
|
||||||
interestRate = parseAmount(interestRate),
|
interestRate = parseAmount(interestRate),
|
||||||
maturityDate = maturityDate.ifBlank { null },
|
maturityDate = maturityDate.ifBlank { null },
|
||||||
|
|||||||
Reference in New Issue
Block a user