Untitled

mail@pastecode.io avatar
unknown
kotlin
2 years ago
425 B
3
Indexable
Never
private fun generateSocialTypeForDebtor(type: String, showFineNum: Boolean, fineNum: String, showVinCode: Boolean, vinCode: String): String {
        return if (type.isNotEmpty()) {
            when {
                showFineNum -> "ADM$fineNum/A. ${kbkItem?.ShortName ?: ""}."
                showVinCode -> "VIN$vinCode/V. ${kbkItem?.ShortName ?: ""}."
                else -> "$type."
            }
        } else ""
    }