Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.GratuitySituation


    @Override
    public void delete() {
        if (this instanceof GratuityTransaction) {
            GratuityTransaction gratuityTransaction = (GratuityTransaction) this;
            GratuitySituation gratuitySituation = gratuityTransaction.getGratuitySituation();
            gratuityTransaction.setGratuitySituation(null);

            gratuitySituation.updateValues();
        }

        setGuideEntry(null);
        super.delete();
    }
View Full Code Here


        }
    }

    private void addAmountForGratuitySituation(final SibsIncommingPaymentFileDetailLine detailLine,
            GratuitySituationPaymentCode paymentCode) {
        final GratuitySituation gratuitySituation = paymentCode.getGratuitySituation();
        switch (gratuitySituation.getStudentCurricularPlan().getSpecialization()) {
        case STUDENT_CURRICULAR_PLAN_MASTER_DEGREE:
            addMasterDegreeGratuityAmount(detailLine.getAmount());
            break;
        case STUDENT_CURRICULAR_PLAN_INTEGRATED_MASTER_DEGREE:
            addIntegratedMasterDegreeGratuityAmount(detailLine.getAmount());
            break;
        case STUDENT_CURRICULAR_PLAN_SPECIALIZATION:
            addSpecializationGratuityAmount(detailLine.getAmount());
            break;
        default:
            throw new RuntimeException("Unknown specialization "
                    + gratuitySituation.getStudentCurricularPlan().getSpecialization().name());
        }
    }
View Full Code Here

    }

    final public GratuitySituation readGratuitySituationByExecutionDegree(ExecutionDegree executionDegree) {
        GratuityValues gratuityValues = executionDegree.getGratuityValues();
        for (StudentCurricularPlan studentCurricularPlan : this.getStudentCurricularPlansSet()) {
            GratuitySituation gratuitySituation = studentCurricularPlan.getGratuitySituationByGratuityValues(gratuityValues);
            if (gratuitySituation != null) {
                return gratuitySituation;
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.GratuitySituation

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.