@Action(value = "/receipts/challan-printChallan") fun printChallan(): String? { try { reportId = collectionCommon.generateChallan(receiptHeader, true) } catch (e: Exception) { LOGGER.error(CollectionConstants.REPORT_GENERATION_ERROR, e) throw ApplicationRuntimeException(CollectionConstants.REPORT_GENERATION_ERROR, e) } setSourcePage("viewChallan") return CollectionConstants.REPORT }
This method generates the report for the requested challan