Modify Disbursement Voucher Coversheet
Tool: Acrobat Adobe Professional for Macbook
Code: work/src/org.kuali.kfs.fp.document.service.impl.DisbursementVoucherCoverSheetImpl.java
Template-original: build/project/help/disbursementVoucherCoverSheetTemplate.pdf
Template-uconn: uconn/help/ disbursementVoucherCoverSheetTemplate.pdf
- Tools+Prepare Form
- Add a text field on the form where you want it to appear
- Name it (ex. Today)
- Click All properties
- On the General Tab, verify that the Form field is visible
- On the Format Tab, choose a format (ex m/d/yyyy h:mm tt)
- Close
- Tools+Javascript
- Document Actions, choose Document Will Print and press OK
Document Scripts, Enter script name (code must reference the text field name and the format selected, mentioned above), press add, delete function text field name(){}, add code below and press OK
var f = this.getField(“Today”)
f.value=util.prntd(‘mm/dd/yyyy h:MM tt’, newDate();
press close
save the PDf