Package org.xrace.model.facturation

Examples of org.xrace.model.facturation.FactureItem


    for (final Inscription inscription : approved)
    {
      final Personne personneInscrite = inscription.getPersonne();
      final Categorie categorie = inscription.getCategorie();
      final Club club = inscription.getClub();
      final FactureItem factureItem = factureItemService
          .findByInscription(inscription);
      Facture facture;
      Transaction transaction;
      Personne personneTransaction;

      if (factureItem != null)
      {
        facture = factureItem.getFacture();
        transaction = facture.getTransaction();
      }
      else
      {
        facture = null;
View Full Code Here


      final Article article = dossier.getArticle();
      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)
View Full Code Here

      for (final EscompteItem escompteItem : escompte.getEscompteItems())
      {
        escompteItemService.save(escompteItem);

        //Ajuter le prix de l'inscription, selon l'escompte.
        final FactureItem factureItem = escompteItem.getFactureItem();
        final Inscription inscription = factureItem.getInscription();

        inscription.setPrix(factureItem.getPrix()
            - escompteItem.getMontant());
        inscriptionService.save(inscription);
      }
    }
View Full Code Here

  {
    Validate.argNotNull(facture, "Facture");
    Validate.argNotNull(inscription, "Inscription");
    Validate.argNotNull(prix, "Prix");

    FactureItem factureItem = null;

    if (!facture.getPaye())
    {

      factureItem = new FactureItem();

      factureItem.setFacture(facture);
      factureItem.setInscription(inscription);
      factureItem.setPrix(prix);

      getGenericDao().save(factureItem);
    }
    else
    {
View Full Code Here

  {
    Validate.argNotNull(facture, "Facture");
    Validate.argNotNull(article, "article");
    Validate.argNotNull(prix, "Prix");

    FactureItem factureItem = null;

    if (!facture.getPaye())
    {
      factureItem = new FactureItem();

      factureItem.setFacture(facture);
      factureItem.setArticle(article);
      factureItem.setPrix(prix);

      getGenericDao().save(factureItem);
    }
    else
    {
View Full Code Here

TOP

Related Classes of org.xrace.model.facturation.FactureItem

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.