refactor: branches and warehouses to nestjs

This commit is contained in:
Ahmed Bouhuolia
2024-12-21 00:10:09 +02:00
parent dc52f784b6
commit cb8fd68d46
126 changed files with 5419 additions and 0 deletions

View File

@@ -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
// );
// };
// }