mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
refactor
This commit is contained in:
@@ -22,8 +22,8 @@ const models = [
|
||||
InventoryCostGLStorage,
|
||||
InventoryItemsQuantitySyncService,
|
||||
InventoryCostMethod,
|
||||
InventoryTransactionsService
|
||||
InventoryTransactionsService,
|
||||
],
|
||||
exports: [...models],
|
||||
exports: [...models, InventoryTransactionsService],
|
||||
})
|
||||
export class InventoryCostModule {}
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
import { IInventoryTransactionsDeletedPayload, TInventoryTransactionDirection } from './types/InventoryCost.types';
|
||||
// @ts-nocheck
|
||||
import { Knex } from 'knex';
|
||||
import { Inject } from '@nestjs/common';
|
||||
import { EventEmitter2 } from '@nestjs/event-emitter';
|
||||
import {
|
||||
IInventoryTransactionsDeletedPayload,
|
||||
TInventoryTransactionDirection,
|
||||
} from './types/InventoryCost.types';
|
||||
import { InventoryCostLotTracker } from './models/InventoryCostLotTracker';
|
||||
import { InventoryTransaction } from './models/InventoryTransaction';
|
||||
import { Knex } from 'knex';
|
||||
import { events } from '@/common/events/events';
|
||||
import { IInventoryTransactionsCreatedPayload } from './types/InventoryCost.types';
|
||||
import { transformItemEntriesToInventory } from "./utils";
|
||||
import { transformItemEntriesToInventory } from './utils';
|
||||
import { IItemEntryTransactionType } from '../TransactionItemEntry/ItemEntry.types';
|
||||
import { ItemEntry } from '../TransactionItemEntry/models/ItemEntry';
|
||||
import { Inject } from '@nestjs/common';
|
||||
|
||||
export class InventoryTransactionsService {
|
||||
constructor(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// @ts-nocheck
|
||||
import { chain } from 'lodash';
|
||||
import { pick } from 'lodash';
|
||||
import { IItemEntryTransactionType } from '../TransactionItemEntry/ItemEntry.types';
|
||||
|
||||
Reference in New Issue
Block a user