mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
chore: remove not used files
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { EventPublisher } from '@/lib/EventPublisher/EventPublisher';
|
import { EventPublisher } from '@/lib/EventPublisher/EventPublisher';
|
||||||
|
|
||||||
import ItemSubscriber from '@/subscribers/Items/ItemSubscriber';
|
|
||||||
import InventoryAdjustmentsSubscriber from '@/subscribers/Inventory/InventoryAdjustment';
|
import InventoryAdjustmentsSubscriber from '@/subscribers/Inventory/InventoryAdjustment';
|
||||||
import BillWriteInventoryTransactionsSubscriber from '@/subscribers/Bills/WriteInventoryTransactions';
|
import BillWriteInventoryTransactionsSubscriber from '@/subscribers/Bills/WriteInventoryTransactions';
|
||||||
import PaymentSyncBillBalance from '@/subscribers/PaymentMades/PaymentSyncBillBalance';
|
import PaymentSyncBillBalance from '@/subscribers/PaymentMades/PaymentSyncBillBalance';
|
||||||
@@ -87,7 +86,6 @@ export default () => {
|
|||||||
|
|
||||||
export const susbcribers = () => {
|
export const susbcribers = () => {
|
||||||
return [
|
return [
|
||||||
ItemSubscriber,
|
|
||||||
InventoryAdjustmentsSubscriber,
|
InventoryAdjustmentsSubscriber,
|
||||||
BillWriteInventoryTransactionsSubscriber,
|
BillWriteInventoryTransactionsSubscriber,
|
||||||
PaymentSyncBillBalance,
|
PaymentSyncBillBalance,
|
||||||
|
|||||||
@@ -23,15 +23,6 @@ export class GetAccounts {
|
|||||||
@Inject()
|
@Inject()
|
||||||
private transformer: TransformerInjectable;
|
private transformer: TransformerInjectable;
|
||||||
|
|
||||||
/**
|
|
||||||
* Parsees accounts list filter DTO.
|
|
||||||
* @param filterDTO
|
|
||||||
* @returns
|
|
||||||
*/
|
|
||||||
private parseListFilterDTO(filterDTO) {
|
|
||||||
return R.compose(this.dynamicListService.parseStringifiedFilter)(filterDTO);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve accounts datatable list.
|
* Retrieve accounts datatable list.
|
||||||
* @param {number} tenantId
|
* @param {number} tenantId
|
||||||
@@ -75,4 +66,13 @@ export class GetAccounts {
|
|||||||
filterMeta: dynamicList.getResponseMeta(),
|
filterMeta: dynamicList.getResponseMeta(),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parsees accounts list filter DTO.
|
||||||
|
* @param filterDTO
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
private parseListFilterDTO(filterDTO) {
|
||||||
|
return R.compose(this.dynamicListService.parseStringifiedFilter)(filterDTO);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
export class AccountsReceivableRepository {
|
|
||||||
|
|
||||||
|
|
||||||
findOrCreateAccount = (currencyCode?: string) => {
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
import { Container } from 'typedi';
|
|
||||||
import { EventSubscriber, On } from 'event-dispatch';
|
|
||||||
import { map, head } from 'lodash';
|
|
||||||
import events from '@/subscribers/events';
|
|
||||||
import TenancyService from '@/services/Tenancy/TenancyService';
|
|
||||||
import SaleInvoicesCost from '@/services/Sales/SalesInvoicesCost';
|
|
||||||
import InventoryItemsQuantitySync from '@/services/Inventory/InventoryItemsQuantitySync';
|
|
||||||
import InventoryService from '@/services/Inventory/Inventory';
|
|
||||||
|
|
||||||
@EventSubscriber()
|
|
||||||
export class OwnerContributionCashflowSubscriber {
|
|
||||||
depends: number = 0;
|
|
||||||
startingDate: Date;
|
|
||||||
saleInvoicesCost: SaleInvoicesCost;
|
|
||||||
tenancy: TenancyService;
|
|
||||||
itemsQuantitySync: InventoryItemsQuantitySync;
|
|
||||||
inventoryService: InventoryService;
|
|
||||||
agenda: any;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor method.
|
|
||||||
*/
|
|
||||||
constructor() {
|
|
||||||
this.tenancy = Container.get(TenancyService);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Marks items cost compute running state.
|
|
||||||
*/
|
|
||||||
@On(events.cashflow.onOwnerContributionCreate)
|
|
||||||
async writeOwnerContributionJournalEntries({
|
|
||||||
|
|
||||||
}) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import events from '@/subscribers/events';
|
|
||||||
import { EventSubscriber } from '@/lib/EventPublisher/EventPublisher';
|
|
||||||
import { Service } from 'typedi';
|
|
||||||
|
|
||||||
@Service()
|
|
||||||
export default class ItemSubscriber extends EventSubscriber {
|
|
||||||
/**
|
|
||||||
* Attaches the events with handles.
|
|
||||||
* @param bus
|
|
||||||
*/
|
|
||||||
attach(bus) {
|
|
||||||
bus.subscribe(events.item.onCreated, this.handleItemCreated);
|
|
||||||
}
|
|
||||||
|
|
||||||
handleItemCreated() {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user