addSourceAccountingLine(SourceAccountingLine line) This implementation sets the sequence number appropriately for the passed in source accounting line using the value that has
been stored in the nextSourceLineNumber variable, adds the accounting line to the list that is aggregated by this object, and
then handles incrementing the nextSourceLineNumber variable for you.
public void
addTargetAccountingLine(TargetAccountingLine line) This implementation sets the sequence number appropriately for the passed in target accounting line using the value that has
been stored in the nextTargetLineNumber variable, adds the accounting line to the list that is aggregated by this object, and
then handles incrementing the nextTargetLineNumber variable for you.
copyAccountingLines(boolean isErrorCorrection) Copies accounting lines but sets new document number and version If error correction, reverses line amount.
getSourceAccountingLine(int index) This implementation is coupled tightly with some underlying issues that the Struts PojoProcessor plugin has with how objects
get instantiated within lists.
getTargetAccountingLine(int index) This implementation is coupled tightly with some underlying issues that the Struts PojoProcessor plugin has with how objects
get instantiated within lists.
getTotalDollarAmount() Since one side of the document should match the other and the document should balance, the total dollar amount for the
document should either be the expense line or the income line.
This implementation sets the sequence number appropriately for the passed in source accounting line using the value that has
been stored in the nextSourceLineNumber variable, adds the accounting line to the list that is aggregated by this object, and
then handles incrementing the nextSourceLineNumber variable for you.
See Also:org.kuali.kfs.document.AccountingDocument.addSourceAccountingLine(SourceAccountingLine)
This implementation sets the sequence number appropriately for the passed in target accounting line using the value that has
been stored in the nextTargetLineNumber variable, adds the accounting line to the list that is aggregated by this object, and
then handles incrementing the nextTargetLineNumber variable for you.
See Also:org.kuali.kfs.document.AccountingDocument.addTargetAccountingLine(TargetAccountingLine)
This implementation is coupled tightly with some underlying issues that the Struts PojoProcessor plugin has with how objects
get instantiated within lists. The first three lines are required otherwise when the PojoProcessor tries to automatically
inject values into the list, it will get an index out of bounds error if the instance at an index is being called and prior
instances at indices before that one are not being instantiated. So changing the code below will cause adding lines to break
if you add more than one item to the list.
See Also:org.kuali.kfs.document.AccountingDocument.getSourceAccountingLine(int)
This implementation is coupled tightly with some underlying issues that the Struts PojoProcessor plugin has with how objects
get instantiated within lists. The first three lines are required otherwise when the PojoProcessor tries to automatically
inject values into the list, it will get an index out of bounds error if the instance at an index is being called and prior
instances at indices before that one are not being instantiated. So changing the code below will cause adding lines to break
if you add more than one item to the list.
See Also:org.kuali.kfs.document.AccountingDocument.getTargetAccountingLine(int)
Since one side of the document should match the other and the document should balance, the total dollar amount for the
document should either be the expense line or the income line. This is the default implementation of this interface method so
it should be overridden appropriately if your document cannot make this assumption.
if target total is zero, source total, otherwise target total