添加净值率判断

This commit is contained in:
zxj
2025-07-11 11:14:18 +08:00
parent f92ae70423
commit a88321b7b6
5 changed files with 75 additions and 12 deletions
@@ -85,10 +85,10 @@ data class GoodsAddParam(
val netRateStr: String
get() {
if (netRate == null || netRate == 0f) {
return ""
return if (netRate == null || netRate == 0f) {
""
} else {
return netRate!!.toFormattedString()
netRate!!.toFormattedString(1)
}
}