return getDocumentRequest().isCertificate() && getDocumentRequest().getEventType() != null;
}
protected void addPriceFields() {
final CertificateRequest certificateRequest = (CertificateRequest) getDocumentRequest();
final CertificateRequestPR certificateRequestPR = (CertificateRequestPR) getPostingRule();
final Money amountPerPage = certificateRequestPR.getAmountPerPage();
final Money baseAmountPlusAmountForUnits =
certificateRequestPR.getBaseAmount().add(
certificateRequestPR.getAmountPerUnit().multiply(
BigDecimal.valueOf(certificateRequest.getNumberOfUnits())));
final Money urgencyAmount = certificateRequest.getUrgentRequest() ? certificateRequestPR.getBaseAmount() : Money.ZERO;
addParameter("printed",
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.academicDocument.certificate.printingPriceLabel"));
addParameter("printPriceLabel",
BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.academicDocument.certificate.issuingPriceLabel"));
addParameter("urgency",