Service - Journal: Difference between revisions
Jump to navigation
Jump to search
| Line 26: | Line 26: | ||
{ | { | ||
type:"versionedData", | type:"versionedData", | ||
versionedDataLabel: " | versionedDataLabel: "Detail", | ||
storageResourceTag : "myGraph", | storageResourceTag : "myGraph", | ||
fieldNames: { | fieldNames: { | ||
Latest revision as of 02:21, 1 June 2026
Overview
A journal entry is a single transaction, each journal entry will have credit and debit entries, it may have multiple credit and debit entries but the total credits must equal the total debits.
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
organization
{
objectType: "journal",
canDelete: false,
belongTo: {
serviceTag: "Organization",
objectType: "organization"
},
addOnDataStructure: [
{
type: "propertyValue"
},
{
type:"versionedData",
versionedDataLabel: "Detail",
storageResourceTag : "myGraph",
fieldNames: {
timestamp: {
type: "timestamp",
storageResourceTags: ['myGraph']
},
amount: {
type: "currencyValue",
storageResourceTags: ['myGraph']
},
amountCurrencyId: {
type: "currency",
storageResourceTags: ['myGraph']
},
functionalCurrencyAmount: {
type: "currencyValue",
storageResourceTags: ['myGraph']
},
exchangeRate: {
type: "number",
storageResourceTags: ['myGraph']
},
},
},
],
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
},
"dynamo": {
"storageType": "dynamoDB",
"tableName": "journal",
}
},
fieldNames: {
journalId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph','dynamo']
},
accountingStatus: { // "open"|"processing"|"locked"
type: "string",
storageResourceTags: ['dynamo']
},
},
identifiers: [
{
type: "identifier",
fieldName: "journalId"
}
]
}
Relationships
- probably need relationship to organization that owns the entry, because will be floating initially (until entries connect to accounts)
- maybe adjust relationship to organization according to open or locked status, to make it easier to see which journals are awaiting processing end of period?