-
Notifications
You must be signed in to change notification settings - Fork 1
Side
Hugh Jeremy edited this page Aug 17, 2018
·
2 revisions
Documentation > Side
Sides are Amatino's name for the fundamental double-entry bookeeping building blocks, the debit and credit. Sides primarily pop up when dealing with Transactions. Transactions are made up of multiple Entries, each of which must include a Side.
The Side object is an enumeration of two possible values: .debit and .credit. Each of these values is an Object containing a Number .value and String .name.
.value: 0
.name: "debit"
.value: 1
.name: "credit"
You will most often use Side when creating Entries as part of Transactions. See the Entries documentation for examples of the Side enumeration in action.