mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
refactor: branches and warehouses to nestjs
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// import { Inject, Service } from 'typedi';
|
||||
// import events from '@/subscribers/events';
|
||||
// import { DeleteItemWarehousesQuantity } from '../commands/DeleteItemWarehousesQuantity';
|
||||
// import { IItemEventDeletingPayload } from '@/interfaces';
|
||||
|
||||
// @Service()
|
||||
// export class DeleteItemWarehousesQuantitySubscriber {
|
||||
// @Inject()
|
||||
// private deleteItemWarehousesQuantity: DeleteItemWarehousesQuantity;
|
||||
|
||||
// /**
|
||||
// * Attaches events.
|
||||
// */
|
||||
// public attach(bus) {
|
||||
// bus.subscribe(
|
||||
// events.item.onDeleting,
|
||||
// this.deleteItemWarehouseQuantitiesOnItemDelete
|
||||
// );
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * Deletes the given item warehouses quantities once the item deleting.
|
||||
// * @param {IItemEventDeletingPayload} payload -
|
||||
// */
|
||||
// private deleteItemWarehouseQuantitiesOnItemDelete = async ({
|
||||
// tenantId,
|
||||
// oldItem,
|
||||
// trx,
|
||||
// }: IItemEventDeletingPayload) => {
|
||||
// await this.deleteItemWarehousesQuantity.deleteItemWarehousesQuantity(
|
||||
// tenantId,
|
||||
// oldItem.id,
|
||||
// trx
|
||||
// );
|
||||
// };
|
||||
// }
|
||||
Reference in New Issue
Block a user