Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -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.
21 changes: 21 additions & 0 deletions core/ui/src/commonMain/composeResources/drawable/send_money.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2026 Mifos Initiative

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.

See https://github.com/openMF/mifos-x-field-officer-app/blob/master/LICENSE.md
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal"
android:autoMirrored="true">
<path
android:fillColor="@android:color/white"
android:pathData="M240,790Q136,763 68,678Q0,593 0,480Q0,367 68,282Q136,197 240,170L240,254Q169,278 124.5,340Q80,402 80,480Q80,558 124.5,620Q169,682 240,706L240,790ZM560,800Q427,800 333.5,706.5Q240,613 240,480Q240,347 333.5,253.5Q427,160 560,160Q626,160 684,185Q742,210 786,254L730,310Q697,277 653.5,258.5Q610,240 560,240Q460,240 390,310Q320,380 320,480Q320,580 390,650Q460,720 560,720Q610,720 653.5,701.5Q697,683 730,650L786,706Q742,750 684,775Q626,800 560,800ZM800,640L744,584L808,520L520,520L520,440L808,440L744,376L800,320L960,480L800,640Z"/>
</vector>
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 @@ -90,6 +90,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) :
Actions(icon, Res.string.core_ui_transfer_fund)
}

@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