mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
chore: remove un-used classes
This commit is contained in:
@@ -1,17 +1,12 @@
|
|||||||
import { Service, Inject } from 'typedi';
|
import { Service } from 'typedi';
|
||||||
import { includes, difference, camelCase, upperFirst } from 'lodash';
|
import { includes, camelCase, upperFirst } from 'lodash';
|
||||||
import { ACCOUNT_TYPE } from '@/data/AccountTypes';
|
import { IAccount } from '@/interfaces';
|
||||||
import { IAccount, ICashflowTransactionLine } from '@/interfaces';
|
|
||||||
import { getCashflowTransactionType } from './utils';
|
import { getCashflowTransactionType } from './utils';
|
||||||
import { ServiceError } from '@/exceptions';
|
import { ServiceError } from '@/exceptions';
|
||||||
import { CASHFLOW_TRANSACTION_TYPE, ERRORS } from './constants';
|
import { CASHFLOW_TRANSACTION_TYPE, ERRORS } from './constants';
|
||||||
import HasTenancyService from '@/services/Tenancy/TenancyService';
|
|
||||||
|
|
||||||
@Service()
|
@Service()
|
||||||
export class CommandCashflowValidator {
|
export class CommandCashflowValidator {
|
||||||
@Inject()
|
|
||||||
private tenancy: HasTenancyService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the lines accounts type should be cash or bank account.
|
* Validates the lines accounts type should be cash or bank account.
|
||||||
* @param {IAccount} accounts -
|
* @param {IAccount} accounts -
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
import { difference, includes } from 'lodash';
|
|
||||||
import { ICashflowTransactionLine } from '@/interfaces';
|
|
||||||
import { ServiceError } from '@/exceptions';
|
|
||||||
import { Inject, Service } from 'typedi';
|
|
||||||
import { CASHFLOW_TRANSACTION_TYPE, ERRORS } from './constants';
|
|
||||||
import { IAccount } from '@/interfaces';
|
|
||||||
import HasTenancyService from '@/services/Tenancy/TenancyService';
|
|
||||||
|
|
||||||
@Service()
|
|
||||||
export default class CommandCashflowTransaction {
|
|
||||||
@Inject()
|
|
||||||
private tenancy: HasTenancyService;
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -9,13 +9,9 @@ import HasTenancyService from '@/services/Tenancy/TenancyService';
|
|||||||
import UnitOfWork from '@/services/UnitOfWork';
|
import UnitOfWork from '@/services/UnitOfWork';
|
||||||
import events from '@/subscribers/events';
|
import events from '@/subscribers/events';
|
||||||
import { ERRORS } from './constants';
|
import { ERRORS } from './constants';
|
||||||
import { ItemsValidators } from './ItemValidators';
|
|
||||||
|
|
||||||
@Service()
|
@Service()
|
||||||
export class DeleteItem {
|
export class DeleteItem {
|
||||||
@Inject()
|
|
||||||
private validators: ItemsValidators;
|
|
||||||
|
|
||||||
@Inject()
|
@Inject()
|
||||||
private tenancy: HasTenancyService;
|
private tenancy: HasTenancyService;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
export default class ItemsCostService {
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user