/** * By overriding this method, we can add the invoice total and open amount to the document header. * * @see org.kuali.rice.kns.web.struts.form.KualiForm#getDocInfo() * <p>KRAD Conversion: Performs the customization of the header fields. No data dictionary is * involved here. */ @Override public void populateHeaderFields(WorkflowDocument workflowDocument) { super.populateHeaderFields(workflowDocument); getDocInfo() .add( new HeaderField( "DataDictionary.CustomerInvoiceDocument.attributes.sourceTotal", (String) new CurrencyFormatter().format(getCustomerInvoiceDocument().getSourceTotal()))); getDocInfo() .add( new HeaderField( "DataDictionary.CustomerInvoiceDocument.attributes.openAmount", (String) new CurrencyFormatter().format(getCustomerInvoiceDocument().getOpenAmount()))); }
/** * @see * org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase#populate(javax.servlet.http.HttpServletRequest) */ @Override public void populate(HttpServletRequest request) { super.populate(request); SpringContext.getBean(CustomerInvoiceDocumentService.class) .loadCustomerAddressesForCustomerInvoiceDocument(getCustomerInvoiceDocument()); }