| @@ -1590,7 +1590,7 @@ open class ReportService( | |||||
| val cell4 = getCell(4) ?: createCell(4) | val cell4 = getCell(4) ?: createCell(4) | ||||
| cell4.cellFormula = | cell4.cellFormula = | ||||
| "(((C{currentRow}+B{currentRow})/2)/20)/8".replace("{currentRow}", (rowIndex + 1).toString()) | |||||
| "(((C{currentRow}+B{currentRow})/2)/150)".replace("{currentRow}", (rowIndex + 1).toString()) | |||||
| // getCell(4).cellStyle.dataFormat = accountingStyle | // getCell(4).cellStyle.dataFormat = accountingStyle | ||||
| cell4.cellStyle.dataFormat = accountingStyle | cell4.cellStyle.dataFormat = accountingStyle | ||||
| CellUtil.setAlignment(cell4, HorizontalAlignment.CENTER) | CellUtil.setAlignment(cell4, HorizontalAlignment.CENTER) | ||||
| @@ -1941,6 +1941,7 @@ open class ReportService( | |||||
| + " select p.code, sum(i.issueAmount) as sumIssuedAmount , sum(i.paidAmount) as sumPaidAmount" | + " select p.code, sum(i.issueAmount) as sumIssuedAmount , sum(i.paidAmount) as sumPaidAmount" | ||||
| + " from invoice i" | + " from invoice i" | ||||
| + " left join project p on p.code = i.projectCode" | + " left join project p on p.code = i.projectCode" | ||||
| + " where i.deleted = false " | |||||
| + " group by p.code" | + " group by p.code" | ||||
| + " )" | + " )" | ||||
| + " select p.code, p.description, c.name as client, IFNULL(s2.name, \"N/A\") as subsidiary, concat(t.code, \' - \', t.name) as teamLead, p.planStart , p.planEnd , p.expectedTotalFee, ifnull(p.subContractFee, 0) as subContractFee, " | + " select p.code, p.description, c.name as client, IFNULL(s2.name, \"N/A\") as subsidiary, concat(t.code, \' - \', t.name) as teamLead, p.planStart , p.planEnd , p.expectedTotalFee, ifnull(p.subContractFee, 0) as subContractFee, " | ||||
| @@ -2266,6 +2267,7 @@ open class ReportService( | |||||
| + " select p.code, sum(i.issueAmount) as sumIssuedAmount , sum(i.paidAmount) as sumPaidAmount" | + " select p.code, sum(i.issueAmount) as sumIssuedAmount , sum(i.paidAmount) as sumPaidAmount" | ||||
| + " from invoice i" | + " from invoice i" | ||||
| + " left join project p on p.code = i.projectCode" | + " left join project p on p.code = i.projectCode" | ||||
| + " where i.deleted = false " | |||||
| + " group by p.code" | + " group by p.code" | ||||
| + " )" | + " )" | ||||
| + " select p.code, p.description, c.name as client, IFNULL(s2.name, \"N/A\") as subsidiary, concat(t.code, \" - \", t.name) as teamLead," | + " select p.code, p.description, c.name as client, IFNULL(s2.name, \"N/A\") as subsidiary, concat(t.code, \" - \", t.name) as teamLead," | ||||