return (EnrolmentCertificateRequest) super.getDocumentRequest();
}
@Override
protected void addPriceFields() {
final EnrolmentCertificateRequest request = getDocumentRequest();
final PostingRule postingRule = getPostingRule();
if (postingRule instanceof EnrolmentCertificateRequestPR) {
final EnrolmentCertificateRequestPR requestPR = (EnrolmentCertificateRequestPR) postingRule;
addParameter("printed",
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.academicDocument.certificate.printingPriceLabel"));
addParameter("printPriceLabel",
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.academicDocument.certificate.issuingPriceLabel"));
addParameter("urgency", BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
"label.academicDocument.certificate.fastDeliveryPriceLabel"));
addParameter("total",
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.academicDocument.certificate.totalsPriceLabel"));
addParameter("amountPerPage", requestPR.getAmountPerPage());
addParameter("baseAmountPlusAmountForUnits", calculateAmountToPayPlusUnits(request, requestPR));
addParameter("urgencyAmount", request.getUrgentRequest() ? requestPR.getBaseAmount() : Money.ZERO);
addParameter("printPriceFields", printPriceParameters(request));
} else {
super.addPriceFields();
}
}