refactor: financial statements to nestjs

This commit is contained in:
Ahmed Bouhuolia
2025-01-21 11:38:07 +02:00
parent 8e36aab529
commit b46f2a91c3
21 changed files with 743 additions and 373 deletions

View File

@@ -4,6 +4,7 @@ import * as moment from 'moment';
import { getTransactionTypeLabel } from '@/modules/BankingTransactions/utils';
import { TInventoryTransactionDirection } from '../types/InventoryCost.types';
import { TenantBaseModel } from '@/modules/System/models/TenantBaseModel';
import { InventoryTransactionMeta } from './InventoryTransactionMeta';
export class InventoryTransaction extends TenantBaseModel {
date: Date | string;
@@ -21,6 +22,8 @@ export class InventoryTransaction extends TenantBaseModel {
warehouseId?: number;
meta?: InventoryTransactionMeta;
/**
* Table name
*/

View File

@@ -2,6 +2,10 @@ import { BaseModel } from '@/models/Model';
import { Model, raw } from 'objection';
export class InventoryTransactionMeta extends BaseModel {
transactionNumber!: string;
description!: string;
inventoryTransactionId!: number;
/**
* Table name
*/