Examples of PaymentKind


Examples of org.bigk.invoices.model.PaymentKind

    Long number = new Long(maxInvoiceNumber);
    invoice.setNumber(number);
    invoice.setDocumentDate(nowDay.getTime());
    invoice.setSoldDate(nowDay.getTime());
   
    PaymentKind pk = null;
    if (invoice.getPaymentKindId() != null) {
      pk = paymentKindsService.getPaymentKind(invoice.getPaymentKindId());
    }
   
    Date paymentDate = null;
    if (pk != null) {
      invoice.setPaymentKind(pk);
      paymentDate = paymentKindsService.calculatePaymentDate(nowDay.getTime(), pk.getId());
      invoice.setPaymentDate(paymentDate);
    }
   
    recalculateInvoice(invoice);
    hrInvoiceNumberService.updateHRInvoiceNumber(invoice);
View Full Code Here

Examples of org.bigk.invoices.model.PaymentKind

    Long number = new Long(maxInvoiceNumber);
    invoice.setNumber(number);
    invoice.setDocumentDate(nowDay.getTime());
    invoice.setSoldDate(nowDay.getTime());
   
    PaymentKind pk = null;
    if (invoice.getPaymentKindId() != null) {
      pk = paymentKindsService.getPaymentKind(invoice.getPaymentKindId());
    }
   
    Date paymentDate = null;
    if (pk != null) {
      invoice.setPaymentKind(pk);
      paymentDate = paymentKindsService.calculatePaymentDate(nowDay.getTime(), pk.getId());
      invoice.setPaymentDate(paymentDate);
    }
   
    recalculateInvoice(invoice);
    hrInvoiceNumberService.updateHRInvoiceNumber(invoice);
View Full Code Here

Examples of org.bigk.invoices.model.PaymentKind

    Long number = new Long(maxInvoiceNumber);
    invoice.setNumber(number);
    invoice.setDocumentDate(nowDay.getTime());
    invoice.setSoldDate(nowDay.getTime());
   
    PaymentKind pk = null;
    if (invoice.getPaymentKindId() != null) {
      pk = paymentKindsService.getPaymentKind(invoice.getPaymentKindId());
    }
   
    Date paymentDate = null;
    if (pk != null) {
      invoice.setPaymentKind(pk);
      paymentDate = paymentKindsService.calculatePaymentDate(nowDay.getTime(), pk.getId());
      invoice.setPaymentDate(paymentDate);
    }
   
    recalculateInvoice(invoice);
    hrInvoiceNumberService.updateHRInvoiceNumber(invoice);
View Full Code Here

Examples of org.bigk.invoices.model.PaymentKind

  @Override
  public PaymentKind getPaymentKind(Long id) throws ServiceException {
    logger.debug("getPaymentKind(id=[{}]) - start", id);
   
    PaymentKind paymentKind = em.find(PaymentKind.class, id);

    logger.debug("getPaymentKind() - end - return value=[{}]", paymentKind);
    return paymentKind;
  }
View Full Code Here

Examples of org.bigk.invoices.model.PaymentKind

  public Date calculatePaymentDate(Date soldDate, Long paymentKindId)
      throws ServiceException {
    logger.debug("calculatePaymentDate(soldDate=[{}], paymentKindId=[{}]) - start", soldDate, paymentKindId);

    PaymentKind paymentKind = this.getPaymentKind(paymentKindId);
    if (paymentKind == null) {
      throw new ServiceException("No PaymentKind read for id: " + paymentKindId);
    }
    Date returnDate = calculatePaymentDate(soldDate, paymentKind.getValue());

    logger.debug("calculatePaymentDate() - end - return value=[{}]", returnDate);
    return returnDate;
  }
View Full Code Here

Examples of org.bigk.invoices.model.PaymentKind

  public PaymentKind getPaymentKind(Long id) throws ServiceException {
    if (logger.isDebugEnabled()) {
      logger.debug("getPaymentKind(Long id=" + id + ") - start");
    }

    PaymentKind object = null;
    Session session = null;
    try {
      session = HibernateUtils.getCurrentSession();
      object = (PaymentKind) session.get(PaymentKind.class, id);
    } catch (HibernateException ex) {
View Full Code Here

Examples of org.bigk.invoices.model.PaymentKind

    if (logger.isDebugEnabled()) {
      logger.debug("calculatePaymentDate(Date soldDate=" + soldDate
          + ", Long paymentKindId=" + paymentKindId + ") - start");
    }

    PaymentKind paymentKind = this.getPaymentKind(paymentKindId);
    if (paymentKind == null) {
      throw new ServiceException("No PaymentKind read for id: " + paymentKindId);
    }
    Date returnDate = calculatePaymentDate(soldDate, paymentKind.getValue());

    if (logger.isDebugEnabled()) {
      logger.debug("calculatePaymentDate(Date, Long) - end - return value=" + returnDate);
    }
    return returnDate;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.