mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: licenses administration basic authentication.
feat: accounts slug. feat: duplicate accounts_balance table and merge balance with accounts table. feat: refactoring customers and vendors. feat: system user soft deleting. feat: preventing build tenant database without any subscription. feat: remove 'password' property from 'req.user' object. feat: refactoring JournalPoster class. feat: delete duplicated directories and files.
This commit is contained in:
40
server/src/interfaces/Journal.ts
Normal file
40
server/src/interfaces/Journal.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
export interface IJournalEntry {
|
||||
index?: number,
|
||||
|
||||
date: Date,
|
||||
credit: number,
|
||||
debit: number,
|
||||
account: number,
|
||||
referenceType: string,
|
||||
referenceId: number,
|
||||
|
||||
transactionType?: string,
|
||||
note?: string,
|
||||
userId?: number,
|
||||
contactType?: string,
|
||||
contactId?: number,
|
||||
};
|
||||
|
||||
export interface IJournalPoster {
|
||||
credit(entry: IJournalEntry): void;
|
||||
debit(entry: IJournalEntry): void;
|
||||
|
||||
removeEntries(ids: number[]): void;
|
||||
|
||||
saveEntries(): void;
|
||||
saveBalance(): void;
|
||||
deleteEntries(): void;
|
||||
}
|
||||
|
||||
export type TEntryType = 'credit' | 'debit';
|
||||
|
||||
export interface IAccountChange {
|
||||
credit: number,
|
||||
debit: number,
|
||||
};
|
||||
|
||||
export interface IAccountsChange {
|
||||
[key: string]: IAccountChange,
|
||||
};
|
||||
Reference in New Issue
Block a user