OSID Logo
OSID Specifications
financials posting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.financials.posting.PostEntry
Implementsosid.OsidObject
osid.Subjugateable
Description

A PostEntry is a debit or a credit made to an Account and Activity.

MethodgetPostId
Description

Gets the post Id to which this entry belongs.

Returnosid.id.Idthe payer Id
CompliancemandatoryThis method must be implemented.
MethodgetPost
Description

Gets the post to which this entry belongs.

Returnosid.financials.posting.Postthe post
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAccountId
Description

Gets the G/L account Id to which this entry applies.

Returnosid.id.Idthe account Id
CompliancemandatoryThis method must be implemented.
MethodgetAccount
Description

Gets the G/L account to which this entry applies.

Returnosid.financials.Accountthe account
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetActivityId
Description

Gets the financial activity Id to which this entry applies.

Returnosid.id.Idthe activity Id
CompliancemandatoryThis method must be implemented.
MethodgetActivity
Description

Gets the financial activity to which this entry applies.

Returnosid.financials.Activitythe activity
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAmount
Description

Gets the amount.

Returnosid.financials.Currencythe amount
CompliancemandatoryThis method must be implemented.
MethodisDebit
Description

Tests if the amount is a debit or a credit.

Returnboolean true if this entry amount is a debit, false if it is a credit
CompliancemandatoryThis method must be implemented.
MethodgetPostEntryRecord
Description

Gets the post entry record corresponding to the given PostEntry record Type. This method is used to retrieve an object implementing the requested record. The postEntryRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(postEntryRecordType) is true .

Parametersosid.type.TypepostEntryRecordTypethe type of post entry record to retrieve
Returnosid.financials.posting.records.PostEntryRecordthe post entry record
ErrorsNULL_ARGUMENT postEntryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(postEntryRecordType) is false
CompliancemandatoryThis method must be implemented.