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

Examples of org.fenixedu.academic.domain.accounting.events.insurance.InsuranceEvent


    public Set<InsuranceEvent> getNotCancelledInsuranceEvents() {
        final Set<InsuranceEvent> result = new HashSet<InsuranceEvent>();

        for (final Event event : getEventsByEventType(EventType.INSURANCE)) {
            final InsuranceEvent specificEvent = (InsuranceEvent) event;
            if (!specificEvent.isCancelled()) {
                result.add(specificEvent);
            }
        }

        return result;
View Full Code Here


    public Set<InsuranceEvent> getNotCancelledInsuranceEventsUntil(final ExecutionYear executionYear) {
        final Set<InsuranceEvent> result = new HashSet<InsuranceEvent>();

        for (final Event event : getEventsByEventType(EventType.INSURANCE)) {
            final InsuranceEvent specificEvent = (InsuranceEvent) event;
            if (!specificEvent.isCancelled() && specificEvent.getExecutionYear().isBeforeOrEquals(executionYear)) {
                result.add(specificEvent);
            }
        }

        return result;
View Full Code Here

        return result;
    }

    public InsuranceEvent getInsuranceEventFor(final ExecutionYear executionYear) {
        for (final Event event : getEventsByEventType(EventType.INSURANCE)) {
            final InsuranceEvent insuranceEvent = (InsuranceEvent) event;
            if (!insuranceEvent.isCancelled() && insuranceEvent.isFor(executionYear)) {
                return insuranceEvent;
            }
        }

        return null;
View Full Code Here

    }

    @Override
    protected Money subtractFromExemptions(Event event, DateTime when, boolean applyDiscount, Money amountToPay) {
        if (event instanceof InsuranceEvent) {
            InsuranceEvent insuranceEvent = (InsuranceEvent) event;
            if (insuranceEvent.hasInsuranceExemption()) {
                return Money.ZERO;
            }
        } else if (event instanceof AdministrativeOfficeFeeAndInsuranceEvent) {
            final AdministrativeOfficeFeeAndInsuranceEvent administrativeOfficeFeeAndInsuranceEvent =
                    (AdministrativeOfficeFeeAndInsuranceEvent) event;
View Full Code Here

    }

    private void assertInsuranceEvent(final ExecutionYear executionYear) {
        if (!getPerson().hasInsuranceEventFor(executionYear)
                && !getPerson().hasAdministrativeOfficeFeeInsuranceEventFor(executionYear)) {
            new InsuranceEvent(getPerson(), executionYear);
        }
    }
View Full Code Here

                return result;

            }

            new InsuranceEvent(studentCurricularPlan.getPerson(), executionYear);
        }

        return result;
    }
View Full Code Here

                return result;

            }

            new InsuranceEvent(person, executionYear);
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.accounting.events.insurance.InsuranceEvent

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.