-
Notifications
You must be signed in to change notification settings - Fork 2
Transaction Version List
Hugh Jeremy edited this page Mar 27, 2019
·
2 revisions
Documentation > TransactionVersionList
Amatino retains a version history of every Transaction. That history allows you to step backwards and forwards through changes to the accounting information describing an Entity. To view the history of a Transaction, you can retrieve a Transaction Version List.
UserList complies with the Python Sequence protocol, meaning you can iterate over constituent Transactions, call len(), and access elements by integer subscript.
.entity - Entity
The Entity that contains the versioned Transactions provided in this TransactionVersionList.
.session - Session
The Session used to initialise this TransactionVersionList.
.versions - List[Transaction]
A list of versions of the target Transaction.
Retrieve a TransactionVersionList
- entity: Entity
- transaction: Transaction
versions = TransactionVersionList.retrieve(
entity=mega_corp,
transaction=big_sale
)