fix:
1.单价四舍五入
This commit is contained in:
parent
48b6e7985c
commit
8a91fb11b9
@ -396,7 +396,7 @@ public class ClientUtils {
|
|||||||
if (yem_exrate.compareTo(BigDecimal.ZERO) != 0) {
|
if (yem_exrate.compareTo(BigDecimal.ZERO) != 0) {
|
||||||
DynamicObjectCollection coll = getTypeColl(models);
|
DynamicObjectCollection coll = getTypeColl(models);
|
||||||
// if (!isFCAPriceItem(coll, rowInfo)) {
|
// if (!isFCAPriceItem(coll, rowInfo)) {
|
||||||
models.setValue("yem_safobprice", roundUpNew(dm.getBigDecimal("yem_standsalesprice").divide(yem_exrate, RoundingMode.HALF_UP)), rowInfo);
|
models.setValue("yem_safobprice", dm.getBigDecimal("yem_standsalesprice").divide(yem_exrate, RoundingMode.HALF_UP), rowInfo);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -720,7 +720,7 @@ public class ClientUtils {
|
|||||||
if ("P".equals(businesssort)) {
|
if ("P".equals(businesssort)) {
|
||||||
BigDecimal fobprice = (BigDecimal) model.getValue("yem_fobprice", i);
|
BigDecimal fobprice = (BigDecimal) model.getValue("yem_fobprice", i);
|
||||||
if (exrate.compareTo(BigDecimal.ZERO) != 0) {
|
if (exrate.compareTo(BigDecimal.ZERO) != 0) {
|
||||||
model.setValue("yem_safobprice", roundUpNew(fobprice.divide(exrate, BigDecimal.ROUND_HALF_UP)), i);
|
model.setValue("yem_safobprice", fobprice.divide(exrate, BigDecimal.ROUND_HALF_UP), i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -804,7 +804,7 @@ public class ClientUtils {
|
|||||||
fobPrice = (BigDecimal) model.getValue("yem_fobprice", i);
|
fobPrice = (BigDecimal) model.getValue("yem_fobprice", i);
|
||||||
}
|
}
|
||||||
if (exrate.compareTo(BigDecimal.ZERO) != 0) {
|
if (exrate.compareTo(BigDecimal.ZERO) != 0) {
|
||||||
model.setValue("yem_safobprice", roundUpNew(fobPrice.divide(exrate, RoundingMode.HALF_UP)), i);
|
model.setValue("yem_safobprice", fobPrice.divide(exrate, RoundingMode.HALF_UP), i);
|
||||||
} else {
|
} else {
|
||||||
model.setValue("yem_safobprice", BigDecimal.ZERO, i);
|
model.setValue("yem_safobprice", BigDecimal.ZERO, i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user