处理原单价被修改问题
This commit is contained in:
@@ -362,7 +362,7 @@ private fun AdjustedViewItem(purchaseOrder: GoodsInfo, viewModel: ReceiptViewMod
|
||||
onValueChange = {
|
||||
viewModel.updatePurchaseItem(
|
||||
purchaseOrder = purchaseOrder.copy(
|
||||
recUnitPriceTaxIn = it.toSafeFloat()
|
||||
newRecUnitPriceTaxIn = it.toSafeFloat()
|
||||
)
|
||||
)
|
||||
}, inputType = InputType.Decimal
|
||||
@@ -622,8 +622,8 @@ private fun ReceiptProductEditView(
|
||||
selectedItem?.let {
|
||||
viewModel.updateSelectedItem(
|
||||
selectedItem!!.copy(
|
||||
recUnitPriceTaxInTemp = "",
|
||||
recUnitPriceTaxIn = 0f,
|
||||
newRecUnitPriceTaxInTemp = "",
|
||||
newRecUnitPriceTaxIn = 0f,
|
||||
|
||||
recPriceExItemTemp = value,
|
||||
recPriceExItem = value.toSafeFloat()
|
||||
|
||||
@@ -88,6 +88,7 @@ fun CustomSearchView(onValueChange: (String) -> Unit = {}, onSearchClick: (Strin
|
||||
.height(32.dp)
|
||||
.clickable {
|
||||
Timber.d("搜索点击")
|
||||
focusManager.clearFocus()
|
||||
onSearchClick(searchText)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user