Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import androidx.compose.material.icons.outlined.ContentCopy
import androidx.compose.material.icons.outlined.CurrencyExchange
import androidx.compose.material.icons.outlined.DateRange
import androidx.compose.material.icons.outlined.DeleteOutline
import androidx.compose.material.icons.outlined.Directions
import androidx.compose.material.icons.outlined.DocumentScanner
import androidx.compose.material.icons.outlined.Draw
import androidx.compose.material.icons.outlined.EventRepeat
Expand Down Expand Up @@ -252,4 +253,6 @@ object MifosIcons {
val Copy = Icons.Outlined.ContentCopy
val Currency = Icons.Outlined.CurrencyExchange
val Camera = Icons.Outlined.Camera

val TransferFund = Icons.Outlined.Directions
Comment thread
Arinyadav1 marked this conversation as resolved.
Outdated
}
Comment thread
Arinyadav1 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ import kotlinx.serialization.Serializable
*/
@Serializable
data class AccountTransferRequest(
val fromOfficeId: Int,
val fromClientId: Int,
val fromAccountType: Int,
val fromAccountId: Int,
val toOfficeId: Int,
val toClientId: Int,
val toAccountType: Int,
val toAccountId: Int,
val transferDate: String,
val transferAmount: Double,
val transferDescription: String,
val dateFormat: String,
val locale: String,
val fromOfficeId: Int? = null,
val fromClientId: Int? = null,
val fromAccountType: Int? = null,
val fromAccountId: Int? = null,
val toOfficeId: Int? = null,
val toClientId: Int? = null,
val toAccountType: Int? = null,
val toAccountId: Int? = null,
val transferDate: String? = null,
val transferAmount: Double? = null,
val transferDescription: String? = null,
val dateFormat: String? = null,
val locale: String? = null,
)
Comment thread
Arinyadav1 marked this conversation as resolved.
1 change: 1 addition & 0 deletions core/ui/src/commonMain/composeResources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
<string name="core_ui_pay_outstanding_amount">Pay Outstanding Amount</string>
<string name="core_ui_edit">Edit</string>
<string name="core_ui_delete">Delete</string>
<string name="core_ui_transfer_fund">Transfer Fund</string>
Comment thread
Arinyadav1 marked this conversation as resolved.

<!-- Mifos Note -->
<string name="core_ui_note_createdBy">Created By:</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import androidclient.core.ui.generated.resources.core_ui_quantity
import androidclient.core.ui.generated.resources.core_ui_status
import androidclient.core.ui.generated.resources.core_ui_total_collateral_value
import androidclient.core.ui.generated.resources.core_ui_total_value
import androidclient.core.ui.generated.resources.core_ui_transfer_fund
import androidclient.core.ui.generated.resources.core_ui_type
import androidclient.core.ui.generated.resources.core_ui_upload_again
import androidclient.core.ui.generated.resources.core_ui_view_account
Expand Down Expand Up @@ -826,6 +827,8 @@ sealed class Actions(open val icon: ImageVector, open val text: StringResource)
Actions(icon, Res.string.core_ui_edit)
data class Delete(override val icon: ImageVector = MifosIcons.DeleteDocument) :
Actions(icon, Res.string.core_ui_delete)
data class TransferFund(override val icon: ImageVector = MifosIcons.TransferFund) :
Actions(icon, Res.string.core_ui_transfer_fund)
Comment thread
Arinyadav1 marked this conversation as resolved.
Outdated
}

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fun NavGraphBuilder.clientLoanAccountsDestination(
navController: NavController,
navigateToViewAccount: (Int) -> Unit,
navigateToMakeRepayment: (Int) -> Unit,
navigateToTransferFund: (Int) -> Unit,
createAccount: (Int, String) -> Unit,
) {
composable<ClientLoanAccountsRoute> {
Expand All @@ -32,6 +33,7 @@ fun NavGraphBuilder.clientLoanAccountsDestination(
viewAccount = navigateToViewAccount,
makeRepayment = navigateToMakeRepayment,
navController = navController,
transferFund = navigateToTransferFund,
createAccount = { clientId, accountNo -> createAccount(clientId, accountNo) },
)
}
Expand Down
Loading
Loading