Package org.fenixedu.academic.domain.accounting.events.serviceRequests

Examples of org.fenixedu.academic.domain.accounting.events.serviceRequests.PhotocopyRequestEvent


        return new PhotocopyRequestPR(getServiceAgreementTemplate(), new DateTime().minus(1000), null, baseAmount, amountPerUnit);
    }

    @Override
    protected Money getAmountForPages(final Event event) {
        final PhotocopyRequestEvent requestEvent = (PhotocopyRequestEvent) event;
        final int extraPages = requestEvent.getNumberOfPages().intValue() - 1;
        return getAmountPerPage().multiply(BigDecimal.valueOf(extraPages < 0 ? 0 : extraPages));
    }
View Full Code Here


            if (!hasNumberOfPages()) {
                throw new DomainException("error.serviceRequests.documentRequests.numberOfPages.must.be.set");
            }

            if (!isFree()) {
                new PhotocopyRequestEvent(getAdministrativeOffice(), getPerson(), this);
            }
        } else if (academicServiceRequestBean.isToDeliver()) {
            if (isPayable() && !isPayed()) {
                throw new DomainException("AcademicServiceRequest.hasnt.been.payed");
            }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.accounting.events.serviceRequests.PhotocopyRequestEvent

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.