Service - Journal

From Izara Wiki
Revision as of 13:58, 12 January 2026 by Sven the Barbarian (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

A journal entry is a single transaction, each journal entry will have credit and debit entries that add up to each other and match the functionalCurrencyAmount.

Repository

...

Object Schemas

Additional Information
Per Service Schemas

organization

{
	objectType: "journal",
	canDelete: false,
	belongTo: {
		serviceTag: "Organization",
		objectType: "organization"
	},
	addOnDataStructure: [
		{
			type: "propertyValue"
		},
		{
			type:"versionedData",
			versionedDataLabel: "journalDetail",
			storageResourceTag : "myGraph",
			fieldNames: {
				amount: {
					type: "currencyValue",
					storageResourceTags: ['myGraph']
				},
				amountCurrency: {
					type: "currency",
					storageResourceTags: ['myGraph']
				},
				functionalCurrencyAmount: {
					type: "currencyValue",
					storageResourceTags: ['myGraph']
				},
				exchangeRate: {
					type: "number",
					storageResourceTags: ['myGraph']
				},
			},
        },	
	],
	storageResources: {
		myGraph: {
			storageType: "graph",
			graphServerTag: "GraphHandler"
		},
		"dynamo": {
		  "storageType": "dynamoDB",
		  "tableName": "entry",
		}  
    },
    fieldNames: {
		journalId: {
			type: "string",
			randomOnCreate: true,
			storageResourceTags: ['myGraph']
		},
		accountingStatus: { // "open"|"processing"|"locked"
			type: "string",
			storageResourceTags: ['dynamo']
		},
    },
    identifiers: [
		{
			type: "identifier",
			fieldName: "journalId"
		}
    ]
}
  • maybe add accountingStatus, same as entry, so can check if journal can be adjusted, or perhaps only journals because entries cannot be changed directly

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?

Working documents

Journal