Index: trunk/src/main/groovy/com/lemans/pdf/bms/BmsPdfBuilder.groovy =================================================================== diff -u -r9997 -r9998 --- trunk/src/main/groovy/com/lemans/pdf/bms/BmsPdfBuilder.groovy (.../BmsPdfBuilder.groovy) (revision 9997) +++ trunk/src/main/groovy/com/lemans/pdf/bms/BmsPdfBuilder.groovy (.../BmsPdfBuilder.groovy) (revision 9998) @@ -250,27 +250,18 @@ } private PdfPTable createRateTable() { - int rateSizes = 2 - PdfPTable rateTable = new PdfPTable(1) + int[] rateSizes = [1, 2] + PdfPTable rateTable = new PdfPTable(2) rateTable.widthPercentage = 100f rateTable.widths = rateSizes String returnRate = root.vwDealerInfo.dealerReturnRate?.text() rateTable.addCell(cellWithoutBorder('Dealer Return Rate:', 11f, Element.ALIGN_LEFT, Element.ALIGN_TOP, NORMAL_8FONT)) rateTable.addCell(cellWithoutBorder(returnRate ? new DecimalFormat('0.00%').format(new BigDecimal(returnRate)) : '', 11f, Element.ALIGN_LEFT, Element.ALIGN_TOP, NORMAL_8FONT)) + rateTable.defaultCell.setBorder(Rectangle.NO_BORDER) rateTable } - private BigDecimal totalhandlingFee() { - String totalFee = root.vwDealerInfo.handlingFeeTotal?.text() - BigDecimal totalhandlingFee - if (totalFee) { - totalhandlingFee = new BigDecimal(totalFee) - totalhandlingFee.setScale(2, BigDecimal.ROUND_HALF_UP) - } - totalhandlingFee - } - private PdfPTable createBalanceTable() { int[] balanceSizes = [4, 4, 4, 3, 4, 4, 3] PdfPTable balanceTable = new PdfPTable(7) @@ -318,7 +309,7 @@ balanceCell.with { setBorder(PdfPCell.BOX) disableBorderSide(PdfPCell.TOP) - setFixedHeight(30f) + setFixedHeight(20f) setHorizontalAlignment(Element.ALIGN_LEFT) setVerticalAlignment(Element.ALIGN_TOP) addElement(createBalanceTable())