|
|
@@ -282,7 +282,9 @@ public class InstallmentServiceImpl implements InstallmentService{
|
|
|
if (NumberUtil.compare(total, installTotal) == 1) {
|
|
|
InstallmentDetail installmentDetail = installmentDetailDao.findByInstallmentIdAndDetno(installment.getId(), installment.getCount().shortValue());
|
|
|
if (installmentDetail != null) {
|
|
|
- installmentDetail.setPrice(NumberUtil.pricesScaleTwo(total - installTotal + installmentDetail.getPrice()));
|
|
|
+ double rest1 = NumberUtil.sub(total, installTotal);
|
|
|
+ double result = NumberUtil.add(rest1, installmentDetail.getPrice());
|
|
|
+ installmentDetail.setPrice(NumberUtil.pricesScaleTwo(result));
|
|
|
installmentDetailDao.save(installmentDetail);
|
|
|
}
|
|
|
}
|