refactor: financial statements to nestjs

This commit is contained in:
Ahmed Bouhuolia
2025-01-20 01:05:33 +02:00
parent 6550e88af3
commit 9eec60ea22
56 changed files with 3440 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
import { Model, raw } from 'objection';
import moment, { unitOfTime } from 'moment';
import * as moment from 'moment';
import { unitOfTime } from 'moment';
import { isEmpty, castArray } from 'lodash';
import { BaseModel } from '@/models/Model';
import { Account } from './Account.model';
@@ -10,6 +11,7 @@ export class AccountTransaction extends BaseModel {
public readonly referenceId: number;
public readonly accountId: number;
public readonly contactId: number;
public readonly contactType: string;
public readonly credit: number;
public readonly debit: number;
public readonly exchangeRate: number;