reportMap.put(takstolAllV.getProductionUnitName(), jiggElements);
}
private void addJiggReportData(TakstolAllV takstolAllV,
Set<JiggReportData> orders, boolean isMainLine) {
JiggReportData jiggReportData = new JiggReportData();
jiggReportData.setOrderInfo(takstolAllV.getOrderNr() + " "
+ takstolAllV.getCustomerDetails());
jiggReportData.setStartDate(takstolAllV.getActionStarted());
jiggReportData.setProduced(takstolAllV.getProduced());
jiggReportData.setArticleName(takstolAllV.getArticleName()
+ (takstolAllV.getNumberOfItems() != null ? "("
+ takstolAllV.getNumberOfItems() + ")" : ""));
if (isMainLine) {
jiggReportData.setOwnProduction(takstolAllV.getOwnProduction());
} else {
jiggReportData.setOwnProductionInfo(takstolAllV.getOwnProduction());
}
if (isMainLine) {
jiggReportData.setOwnInternalProduction(takstolAllV
.getOwnInternalProduction());
} else {
jiggReportData.setOwnInternalProductionInfo(takstolAllV
.getOwnInternalProduction());
}
jiggReportData.setPrice(takstolAllV.getCalculatedPrice());
if (isMainLine || !orders.contains(jiggReportData)) {
orders.add(jiggReportData);
}
}