Examples of EquivalencePlanRequestEvent


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

                .getPayedAmount(), calculateAmountToPay, event.getDescriptionForEntryType(getEntryType()), calculateAmountToPay));
    }

    @Override
    protected Money doCalculationForAmountToPay(final Event event, final DateTime when, boolean applyDiscount) {
        final EquivalencePlanRequestEvent planRequest = (EquivalencePlanRequestEvent) event;

        Money amountToPay = getAmountPerUnit();

        if (planRequest.getNumberOfEquivalences() != null && planRequest.getNumberOfEquivalences().intValue() != 0) {
            amountToPay = amountToPay.multiply(planRequest.getNumberOfEquivalences().intValue());
        }

        if (getMaximumAmount().greaterThan(Money.ZERO)) {
            if (amountToPay.greaterThan(getMaximumAmount())) {
                amountToPay = getMaximumAmount();
View Full Code Here

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

        return amountToPay;
    }

    @Override
    protected Money subtractFromExemptions(Event event, DateTime when, boolean applyDiscount, Money amountToPay) {
        final EquivalencePlanRequestEvent planRequest = (EquivalencePlanRequestEvent) event;

        if (planRequest.hasAcademicEventExemption()) {
            amountToPay = amountToPay.subtract(planRequest.getAcademicEventExemption().getValue());
        }

        return amountToPay.isPositive() ? amountToPay : Money.ZERO;
    }
View Full Code Here

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

    protected void createAcademicServiceRequestSituations(AcademicServiceRequestBean academicServiceRequestBean) {
        super.createAcademicServiceRequestSituations(academicServiceRequestBean);

        if (academicServiceRequestBean.isNew()) {
            if (!isFree()) {
                new EquivalencePlanRequestEvent(getAdministrativeOffice(), getPerson(), this);
            }
        }
    }
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.