|
@@ -530,7 +530,8 @@ public class CustomerApiController {
|
|
|
if(_source.containsKey("npdate")){
|
|
|
Date npdate = _source.getDate("npdate");
|
|
|
String npDateStr = DateUtils.parseDateToStr("yyyy-MM-dd", npdate);
|
|
|
- if(npDateStr.compareTo(currentDateTime)>0){
|
|
|
+ String npDateStrYear = DateUtils.parseDateToStr("yyyy", npdate);
|
|
|
+ if(npDateStr.compareTo(currentDateTime)>0 && !npDateStrYear.equals(currentYear)){
|
|
|
handedinprem+=_source.getDouble("prem");
|
|
|
}
|
|
|
}
|