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

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


        return phdIndividualProgramProcess.getPhdProgram().getName().getContent(getLanguage());
    }

    @Override
    protected void addPriceFields() {
        AcademicServiceRequestEvent event = getDocumentRequest().getEvent();
        PhdFinalizationCertificateRequestPR postingRule = (PhdFinalizationCertificateRequestPR) event.getPostingRule();
        addParameter("originalAmount", postingRule.getFixedAmount().toString());
        addParameter("urgentAmount",
                getDocumentRequest().isUrgentRequest() ? postingRule.getFixedAmount().toString() : Money.ZERO.toString());
        addParameter("totalAmount", event.getOriginalAmountToPay().toString());
    }
View Full Code Here


                endDate, serviceAgreementTemplate, fixedAmount);
    }

    @Override
    protected Money doCalculationForAmountToPay(Event event, DateTime when, boolean applyDiscount) {
        AcademicServiceRequestEvent academicServiceRequestEvent = (AcademicServiceRequestEvent) event;
        AcademicServiceRequest academicServiceRequest = academicServiceRequestEvent.getAcademicServiceRequest();

        return super.doCalculationForAmountToPay(academicServiceRequestEvent, when, applyDiscount).multiply(
                academicServiceRequest.isUrgentRequest() ? 2 : 1);
    }
View Full Code Here

TOP

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

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.