use of org.kuali.kfs.module.ar.document.service.AccountsReceivableDocumentHeaderService in project cu-kfs by CU-CommunityApps.
the class PaymentApplicationAction method createDocument.
@Override
protected void createDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException {
super.createDocument(kualiDocumentFormBase);
PaymentApplicationForm form = (PaymentApplicationForm) kualiDocumentFormBase;
PaymentApplicationDocument document = form.getPaymentApplicationDocument();
// create new accounts receivable header and set it to the payment application document
AccountsReceivableDocumentHeaderService accountsReceivableDocumentHeaderService = SpringContext.getBean(AccountsReceivableDocumentHeaderService.class);
AccountsReceivableDocumentHeader accountsReceivableDocumentHeader = accountsReceivableDocumentHeaderService.getNewAccountsReceivableDocumentHeaderForCurrentUser();
accountsReceivableDocumentHeader.setDocumentNumber(document.getDocumentNumber());
document.setAccountsReceivableDocumentHeader(accountsReceivableDocumentHeader);
}
Aggregations