Package org.xrace.model.paiement

Examples of org.xrace.model.paiement.Transaction


      final Choix choix = article.getChoix();

      // --------- Information sur la facture et la transaction -------
      final Facture facture = dossier.getFacture();
      final FactureItem factureItem = dossier.getFactureItem();
      final Transaction transaction = dossier.getTransaction();

      // --------- Personne qui a effectué la transaction -------
      final Personne personneTransaction = dossier
          .getPersonneTransaction();

      row.createCell((short) 3).setCellValue(
          new HSSFRichTextString(choix.getDescription()));
      row.createCell((short) 4).setCellValue(
          new HSSFRichTextString(article.getTextFieldValue()));
      if (factureItem != null)
      {
        HSSFUtils.createCurrencyCell(wb, row, 5, factureItem.getPrix());
        prixTotalChoix += factureItem.getPrix();
      }
      row.createCell((short) 6).setCellValue(article.getQuantite());
      qteTotalChoix += article.getQuantite();

      if (personneTransaction != null)
      {
        row.createCell((short) 7).setCellValue(
            new HSSFRichTextString(personneTransaction
                .getNomPrenom()));
      }

      if (facture != null)
      {
        row.createCell((short) 8).setCellValue(facture.getId());
      }

      if (transaction != null)
      {
        row.createCell((short) 9).setCellValue(
            new HSSFRichTextString(transaction.getId().toString()));
        row.createCell((short) 10)
            .setCellValue(
                new HSSFRichTextString(transaction
                    .getCardHolderName()));
        HSSFUtils.createDateCell(wb, row, 11, transaction
            .getDateCreated());
        row.createCell((short) 12).setCellValue(
            new HSSFRichTextString(transaction.getDateApproved()));
      }
    }

    createLigneTotal(wb, sheet, ++i, qteTotalChoix, prixTotalChoix);
View Full Code Here


  }

  private void completeTransactions(final Personne personne,
      final Facture facture)
  {
    Transaction transaction = getTransactionService().createTransaction(
        personne, facture);
    getDesjardins3Service().runTrx(transaction);
  }
View Full Code Here

    {
      row = sheet.createRow((short) ++i);

      // --------- Informations sur la personne inscrite -------
      final Personne personneInscrite = dossier.getPersonneInscrite();
      final Transaction transaction = dossier.getLatestTransaction();
      row.createCell((short) 0).setCellValue(personneInscrite.getId());
      row.createCell((short) 1).setCellValue(
          new HSSFRichTextString(personneInscrite.getNom()));
      row.createCell((short) 2).setCellValue(
          new HSSFRichTextString(personneInscrite.getPrenom()));
      if (transaction != null)
      {
        row.createCell((short) 3).setCellValue(
            new HSSFRichTextString(transaction.getPersonne()
                .getNomPrenom()));
        HSSFUtils.createDateTimeCell(wb, row, 4, transaction
            .getDateCreated());
      }

      for (Map.Entry<Choix, Integer> entry : mapChoixIndex.entrySet())
      {
View Full Code Here

        throw new DesjardinsException(
            "Le message reçu ne peut être interprété. ");
      }
    }

    Transaction transaction = findTransactionFromNode(transactionNode);

    if (isUpdateInfo)
    {
      return updateTransactionInfo(transaction, transactionNode);
    }
View Full Code Here

    {
      transactionId = StringUtils.removeStart(transactionId, context
          .getTxIdPrefix());
    }

    Transaction transaction = transactionService.find(Long
        .parseLong(transactionId));
    return transaction;
  }
View Full Code Here

        "id");
    String transactionId = transactionIdNode.getTextContent();

    log.debug("Trying to load transaction # : " + transactionId);

    Transaction transaction = findTransaction(transactionId);

    if (transaction == null)
    {
      throw new DesjardinsException("Transaction non trouvée. ");
    }
View Full Code Here

      final Facture facture)
  {
    Validate.argNotNull(facture, "Facture");
    Validate.argNotNull(personne, "Personne");

    final Transaction transaction = new Transaction();

    transaction.setId(facture.getId());
    facture.setTransaction(transaction);
    transaction.setPersonne(personne);
    transaction.setFacture(facture);
    transaction.setDateCreated(new Date());
    transaction.setCancelled(false);
    transaction.setApproved(false);

    getGenericDao().save(transaction);

    return transaction;
  }
View Full Code Here

TOP

Related Classes of org.xrace.model.paiement.Transaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.