|
@@ -51,7 +51,7 @@ public class DailyReportServiceImpl implements IDailyReportService {
|
|
|
if (!Check.isNull(dailyAccountReport)) {
|
|
|
BigDecimal cost = dailyAccountReport.getCost();
|
|
|
BigDecimal contractRebateRealCharged = dailyAccountReport.getContractRebateRealCharged();
|
|
|
- if (!Check.isNull(cost)) {
|
|
|
+ if (!Check.isNull(cost) && !Check.isNull(contractRebateRealCharged)) {
|
|
|
BigDecimal actualCost = ((cost.subtract(contractRebateRealCharged)).divide(discount, 2, RoundingMode.HALF_UP));
|
|
|
dailyAccountReport.setActualCost(actualCost);
|
|
|
}
|