cash out to cash adv

This commit is contained in:
moon 2026-07-09 23:05:49 +06:30
parent 836eb07b3b
commit 838a40ee4f
6 changed files with 12 additions and 11 deletions

View File

@ -130,7 +130,7 @@ fun buildMenuItems(
)
}) { onNavigateAction("Pre-Auth Complete Void") },
DashboardMenuItem(
"Cash Out",
"Cash Adv",
{
Icon(
Icons.Default.AccountBalanceWallet,
@ -138,5 +138,5 @@ fun buildMenuItems(
modifier = Modifier.size(32.dp),
tint = Color.LegacyRed
)
}) { onNavigateAmount("Cash Out") },
}) { onNavigateAmount("Cash Adv") },
)

View File

@ -115,7 +115,7 @@ private fun formatTypeLabel(raw: String): String = when {
raw.contains("REFUND", ignoreCase = true) -> "Refund"
raw.contains("SETTLEMENT", ignoreCase = true) -> "Settlement"
raw.contains("PRE", ignoreCase = true) -> "Pre-Auth"
raw.contains("CASH", ignoreCase = true) -> "Cash Out"
raw.contains("CASH", ignoreCase = true) -> "Cash Adv"
raw.contains("WAVE", ignoreCase = true) -> "Wave Pay"
else -> raw.lowercase().replaceFirstChar { it.uppercaseChar() }
}

View File

@ -51,7 +51,7 @@ fun SeeMoreScreen(
SeeMoreItem("Pre-Auth Void", Icons.Default.LockOpen),
SeeMoreItem("Pre-Auth Complete", Icons.Default.CreditCard),
SeeMoreItem("Pre-Auth Complete Void", Icons.Default.SwapHoriz),
SeeMoreItem("Cash Out", Icons.Default.AccountBalanceWallet)
SeeMoreItem("Cash Adv", Icons.Default.AccountBalanceWallet)
)
Scaffold(

View File

@ -74,7 +74,7 @@ private fun String.toTransactionConfig(): TransactionConfig {
processCode = ProcessCode.PRE_AUTH_COMPLETE_VOID + ProcessCode.SMART + ProcessCode.TO_ACCOUNT
)
"cash out" -> TransactionConfig(
"cash adv" -> TransactionConfig(
transactionName = "CASH_OUT",
transactionType = TransactionsType.CASH_OUT,
processCode = ProcessCode.CASH_ADVANCE + ProcessCode.SMART + ProcessCode.TO_ACCOUNT

View File

@ -150,7 +150,7 @@ fun AppNavGraph(
onNavigateAmount = { action ->
when (action) {
"Pre-Auth",
"Cash Out",
"Cash Adv",
"Sale" -> {
navController.navigate(Routes.Amount.createRoute(action)) {
launchSingleTop = true
@ -158,7 +158,7 @@ fun AppNavGraph(
}
"Pre-Auth",
"Cash Out" -> {
"Cash Adv" -> {
navController.navigate(Routes.Amount.createRoute(action)) {
launchSingleTop = true
}
@ -191,7 +191,7 @@ fun AppNavGraph(
}
"Pre-Auth",
"Cash Out" -> {
"Cash Adv" -> {
sharedViewModel.transactionsType.value = when (action) {
"Pre-Auth" -> TransactionsType.PRE_AUTH_SALE
else -> TransactionsType.CASH_OUT
@ -286,7 +286,7 @@ fun AppNavGraph(
}
"Pre-Auth",
"Cash Out" -> {
"Cash Adv" -> {
sharedViewModel.transactionsType.value = when (action) {
"Pre-Auth" -> TransactionsType.PRE_AUTH_SALE
else -> TransactionsType.CASH_OUT

View File

@ -38,8 +38,8 @@ public class SystemParamsSettings implements Serializable {
private boolean checkExpSwitch = false;
private String tmsAddress = "http://posuat.myanmarorientalbank.com:5033/api/v1";
// private String tmsAddress = "https://sirius-nest.utsmyanmar.com/api/v1";
// private String tmsAddress = "https://posmgmt.myanmarorientalbank.com/api/v1";
private String tmsAddress = "https://sirius-nest.utsmyanmar.com/api/v1";
// private String tmsAddress = "http://128.199.170.203";
private String terminalCapability = "E0E8C8";
@ -55,6 +55,7 @@ public class SystemParamsSettings implements Serializable {
private String merchantName = "";
private String receiptHeader = "";
private String merchantAddress = "";