自采入库同一物品可以添加多次

This commit is contained in:
zxj
2025-07-15 16:32:30 +08:00
parent bf8dc3f9b5
commit 84a337bae4
4 changed files with 31 additions and 13 deletions
@@ -111,6 +111,12 @@ data class GoodsInfo(
return recUnitPriceTaxIn?.toFormattedString() ?: ""
}
val recUnitPriceTaxInListStr: String
get() {
if (recUnitPriceTaxIn == 0f) return "-"
return recUnitPriceTaxIn?.toFormattedString() ?: "-"
}
val receiveCountStr: String
get() {
return when (receiveCount) {
@@ -118,6 +124,13 @@ data class GoodsInfo(
else -> receiveCount?.toSafeString(unitName) ?: ""
}
}
val receiveCountListStr: String
get() {
return when (receiveCount) {
0f -> "-"
else -> receiveCount?.toSafeString(unitName) ?: "-"
}
}
val recPriceExItemStr: String
get() {
@@ -126,6 +139,13 @@ data class GoodsInfo(
else -> recPriceExItem?.toFormattedString() ?: ""
}
}
val recPriceExItemListStr: String
get() {
return when (recPriceExItem) {
0f -> "-"
else -> recPriceExItem?.toFormattedString() ?: "-"
}
}
val unitNameStr: String
get() {