Package org.xrace.model.facturation

Examples of org.xrace.model.facturation.FactureItem


        final Double montantParItem = rabaisEvenement.getMontant()
            / nbCourses;

        for (final Inscription inscription : inscriptions)
        {
          FactureItem factureItemRecherche = null;

          if (facture != null)
          {
            for (final FactureItem factureItem : facture
                .getFactureItems())
View Full Code Here


    final Iterator i = facture.getFactureItems().listIterator();

    while (i.hasNext())
    {
      final FactureItem factureItem = (FactureItem) i.next();
      line += factureItemToString(factureItem);
    }

    line += StringUtils.repeat("-", 65) + "\n";
View Full Code Here

  @Override
  public void delete(final Inscription inscription)
  {
    Validate.argNotNull(inscription, "inscription");

    final FactureItem item = factureItemService
        .findByInscription(inscription);
    Inscription inscriptionADetruire = inscription;

    if (item != null)
    {
      getGenericDao().detach(inscription);
      inscriptionADetruire = item.getInscription();
      item.setInscription(null);
      factureItemService.save(item);
    }

    getGenericDao().delete(inscriptionADetruire);
  }
View Full Code Here

  private class PredicateApproved implements Predicate<Inscription>
  {
    public boolean evaluate(final Inscription inscription)
    {
      final FactureItem factureItem = factureItemService
          .findByInscription(inscription);
      if (factureItem != null)
      {
        final Transaction transaction = factureItem.getFacture()
            .getTransaction();
        if (transaction != null && transaction.isApproved())
        {
          return true;
        }
View Full Code Here

    final List<DossierArticle> dossiers = new Vector<DossierArticle>();

    for (final Article article : approved)
    {
      final Personne personneInscrite = article.getPersonne();
      final FactureItem factureItem = factureItemService
          .findByArticle(article);
      Facture facture;
      Transaction transaction;
      Personne personneTransaction;

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

      {
        dossier = new DossierArticleParPersonne(evenement, personne);
        dossiers.put(personne, dossier);
      }

      final FactureItem factureItem = factureItemService
          .findByArticle(article);

      dossier.addArticle(article, factureItem);
    }
View Full Code Here

  private class PredicateApproved implements Predicate<Article>
  {
    public boolean evaluate(final Article article)
    {
      final FactureItem factureItem = factureItemService
          .findByArticle(article);
      if (factureItem != null)
      {
        final Transaction transaction = factureItem.getFacture()
            .getTransaction();
        if (transaction != null && transaction.isApproved())
        {
          return true;
        }
View Full Code Here

  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final FactureItem factureItem = (FactureItem) item.getModelObject();

    DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT,
        Locale.CANADA);

    item.add(new Label("description", factureItem.getArticle().getChoix()
        .getDescription()));
    item.add(new Label("nom", factureItem.getArticle().getPersonne()
        .getNom()));
    item.add(new Label("prenom", factureItem.getArticle().getPersonne()
        .getPrenom()));
    item.add(new Label("dateAchat", df.format(factureItem.getFacture()
        .getCreation())));
    item.add(new Label("prixPaye", factureItem.getArticle().getPrix()
        .toString()));

    if (factureItem.getArticle().getDateTraitement() != null)
    {
      item.add(new Label("dateTraitement", df.format(factureItem
          .getArticle().getDateTraitement())));
    }
    else
    {
      item.add(new Label("dateTraitement", ""));
    }

    if (factureItem.getArticle().isTraite())
    {
      item.add(new Label("traite", "Oui"));
    }
    else
    {
      item.add(new Label("traite", "Non"));
    }

    item.add(new PageLink("modifier", new IPageLink()
    {
      private static final long serialVersionUID = 1L;

      public Page getPage()
      {
        return new ArticleVenduUpdatePage(factureItem.getArticle());
      }

      public Class getPageIdentity()
      {
        return ArticleVenduUpdatePage.class;
View Full Code Here

  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final FactureItem factureItem = (FactureItem) item.getModelObject();

    if (factureItem.getInscription() != null)
    {
      item.add(new InscriptionDisplayPanel("factureItemContent",
          factureItem.getInscription()));
    }
    else if (factureItem.getArticle() != null)
    {
      item.add(new ArticleDisplayPanel("factureItemContent", factureItem
          .getArticle()));
    }
    else
    {
      item.add(new EmptyPanel("factureItemContent"));
View Full Code Here

                .getNomEquipe()));
      }

      // --------- 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());
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.