mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat(nestjs): migrate to NestJS
This commit is contained in:
13
packages/server/src/modules/Ledger/JournalEntry.ts
Normal file
13
packages/server/src/modules/Ledger/JournalEntry.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ILedgerEntry } from "./types/Ledger.types";
|
||||
|
||||
export class JournalEntry {
|
||||
entry: ILedgerEntry;
|
||||
|
||||
constructor(entry: ILedgerEntry) {
|
||||
const defaults = {
|
||||
credit: 0,
|
||||
debit: 0,
|
||||
};
|
||||
this.entry = { ...defaults, ...entry };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user