.getParcel().getPayDate()
.getFormatedDate(), posX + 272, posY,
110, 15));
page.addElement(drawVerticalLine(posX + 385,
posY, 15));
page.addElement(insertRightText(new Money(
parcelData.getParcel().getDiscount())
.getFormatedValue(), posX + 387, posY,
60));
page.addElement(drawVerticalLine(posX + 450,
posY, 15));
page
.addElement(insertNormalText(
new Money(
parcelData
.getParcel()
.getValueBeforeParcelDateExpiration())
.getFormatedValue(),
posX + 462, posY, 120, 15));
// page.addElement(drawVerticalLine(posX+465,
// posY, 15));
// page.addElement(insertRightText(parcelData.getParcel().getValueBeforeParcelDateExpiration()+"",
// posX+467, posY, 60));
// page.addElement(drawVerticalLine(posX+465,
// posY, 15));
// page.addElement(insertRightText(linkedOperation.getOperation().getValue()+"",
// posX+467, posY, convert(190)-470));
posY += 15;
localDiscount += parcelData.getParcel()
.getDiscount();
localValue += parcelData.getParcel()
.getValueBeforeParcelDateExpiration();
if (posY > (convert(290) - 25)) {
jasperPrint.addPage(page);
page = new JRBasePrintPage();
posY = convert(10);
}
}
}
totalDiscount += localDiscount;
totalValue += localValue;
page.addElement(insertFooterLeft("Desconto no Caixa: "
+ new Money(localDiscount).getFormatedValue()));
posY += 15;
page.addElement(insertFooterLeft("Total do Caixa: "
+ new Money(localValue).getFormatedValue()));
localDiscount = 0;
localValue = 0;
posY += 25;
if (posY > (convert(290) - 25)) {
jasperPrint.addPage(page);
page = new JRBasePrintPage();
posY = convert(10);
}
}
}
}
posY += 25;
page.addElement(insertFooterLeft("Total em Desconto: "+new Money(totalDiscount).getFormatedValue()));
posY += 15;
page.addElement(insertFooterLeft("Total: "+ new Money(totalValue).getFormatedValue()));
posY += 25;
jasperPrint.addPage(page);