}
// --------- Information sur la facture et la transaction -------
final Facture facture = dossier.getFacture();
final FactureItem factureItem = dossier.getFactureItem();
final Transaction transaction = dossier.getTransaction();
if (facture != null)
{
row.createCell((short) 26).setCellValue(facture.getId());
}
if (inscription.getPrix() != null)
{
row.createCell((short) 27).setCellValue(inscription.getPrix());
}
else if (factureItem != null)
{
row.createCell((short) 28).setCellValue(
new HSSFRichTextString(transaction.getTxID()));
}
if (transaction != null)
{
row.createCell((short) 29)
.setCellValue(
new HSSFRichTextString(transaction
.getCardHolderName()));
row.createCell((short) 30).setCellValue(
transaction.isApproved());
row.createCell((short) 31).setCellValue(
transaction.isCancelled());
HSSFUtils.createDateCell(wb, row, 32, transaction
.getDateCreated());
row.createCell((short) 33).setCellValue(
new HSSFRichTextString(transaction.getDateApproved()));
}
}
return wb;
}