AccountTransaction

Contents

General
CloudAssessSpec
CollegePreferenceService
CsvBuilder
DocumentService
DocumentSpec
EmailSpec
ExportSpec
MailchimpSpec
Mask
Money
Preferences
QualityResultSpec
ReportSpec
SmsSpec
SystemUserService
Database objects
ACLAccessKey
ACLRole
Account
AccountTransaction
Application
Article
ArticleProduct
Assessment
AssessmentClass
AssessmentSubmission
AttachmentData
Attendance
Banking
Certificate
ClassCost
ConcessionType
Contact
ContactRelation
ContactRelationType
CorporatePass
CorporatePassCourseClass
CorporatePassProduct
Country
Course
CourseClass
CourseClassTutor
CourseModule
CustomField
CustomFieldType
DefinedTutorRole
Discount
DiscountConcessionType
DiscountCourseClass
DiscountMembership
DiscountMembershipRelationType
Document
DocumentVersion
EmailTemplate
Enrolment
EntityRelation
ExportTemplate
Field
FieldConfiguration
FieldConfigurationScheme
FieldHeading
FundingSource
FundingUpload
FundingUploadOutcome
Import
Invoice
InvoiceDueDate
InvoiceLine
InvoiceLineDiscount
Language
Membership
MembershipProduct
Message
MessagePerson
Module
Note
Outcome
PayLine
PayRate
PaymentIn
PaymentInLine
PaymentMethod
PaymentOut
PaymentOutLine
Payslip
Preference
PriorLearning
Product
ProductItem
Qualification
Report
ReportOverlay
Room
SavedFind
Script
Session
SessionModule
Site
Student
StudentConcession
Survey
SystemUser
Tag
TagRelation
TagRequirement
Tax
TrainingPackage
Tutor
TutorAttendance
UnavailableRule
Voucher
VoucherPaymentIn
VoucherProduct
WaitingList
Enumerations
AccountTransactionType
AccountType
ApplicationStatus
AttachmentInfoVisibility
AttachmentSpecialType
AttendanceType
AvetmissStudentDisabilityType
AvetmissStudentEnglishProficiency
AvetmissStudentIndigenousStatus
AvetmissStudentLabourStatus
AvetmissStudentPriorEducation
AvetmissStudentSchoolLevel
ClassCostFlowType
ClassCostRepetitionType
ClassFundingSource
ClientIndustryEmploymentType
ClientOccupationIdentifierType
ConfirmationStatus
ContactDuplicateStatus
CourseClassAttendanceType
CourseEnrolmentType
CreditCardType
CreditLevel
CreditProviderType
CreditType
DeliveryMode
DeliverySchedule
DiscountType
EnrolmentStatus
EnrolmentVETFeeHelpStatus
EntityRelationType
ExpiryType
FieldConfigurationType
InvoiceType
KeyCode
KeyCollision
MessageStatus
MessageType
MoneyRounding
NodeSpecialType
OutcomeStatus
PaymentSource
PaymentStatus
PaymentType
PayslipStatus
PostcodeType
ProductStatus
ProductType
QualificationType
RecognitionOfPriorLearningIndicator
StudentCitizenship
StudentStatusForUnitOfStudy
StudyReason
SurveyTypeSource
SurveyVisibility
TriggerType
UsiStatus
VETFeeExemptionType
VoucherPaymentStatus

AccountTransactions are entries against the general ledger in onCourse. They are immutable (cannot be edited) and can only be created in pairs.

 
        public 
        AccountTransaction
     {
}

Instance methods

account

Returns Not null Account

the account for this transaction

amount

Returns Not null Money

the value of this transaction

contactName

Get contact related to the transaction through invoice or payment.

Returns Nullable String

contact name

createdOn

Returns Not null Date

the date and time this record was created

foreignRecordId

Returns Not null Long

Documentation not yet available

id

Returns Not null Long

The primary key for this record. This value will never change once the record is created.

invoiceNumber

Get number of related invoice if transaction type is {@link AccountTransactionType#INVOICE_LINE} or null if it is not.

Returns Nullable Long

invoice number

isLocked

Return true if transaction day cannot be changed.

Returns def

true if transaction day is locked

modifiedOn

Returns Not null Date

the date and time this record was modified

printTitle

Returns def

Documentation not yet available

relatedInvoiceLine

Returns def

Documentation not yet available

sourceClass

Returns Nullable Class<? extends PersistentObject>

the Persistent class to which this transaction is linked

transactionDate

Returns Not null LocalDate

the transaction date. This may be different to the creation or modification date

transactionDescription

Generate description for transaction: * Invoice transaction -> invoice number + contact name * Payment in/out -> payment type (cc/cheque/cash/etc) + contact name

Returns Nullable String

string describing transaction

Static methods

AccountTransaction.invoiceLineForTransaction(context, t)

Some transactions are linked to invoice lines.

ObjectContext context

return the resulting objects in this context

AccountTransaction t

account transaction related to this invoice line

Returns InvoiceLine

the invoice line linked to this transaction or null if there is no such link

AccountTransaction.paymentInLineForTransaction(context, t)

Some transactions are linked to paymentIn lines

ObjectContext context

return the resulting objects in this context

AccountTransaction t

account transaction related to this paymentIn line

Returns PaymentInLine

the paymentIn line linked to this transaction or null if there is no such link

AccountTransaction.paymentOutLineForTransaction(context, t)

Some transactions are linked to paymentOut lines

ObjectContext context

return the resulting objects in this context

AccountTransaction t

account transaction related to this paymentOut line

Returns PaymentOutLine

the paymentOut line linked to this transaction or null if there is no such link