feat: trigger compute items cost once the sale invoice and bill be edited or deleted.

This commit is contained in:
a.bouhuolia
2020-12-23 18:57:17 +02:00
parent 26452d9c05
commit b07bb2df53
9 changed files with 228 additions and 69 deletions

View File

@@ -12,6 +12,7 @@ import ExpenseEntryRepository from 'repositories/ExpenseEntryRepository';
import BillRepository from 'repositories/BillRepository';
import SaleInvoiceRepository from 'repositories/SaleInvoiceRepository';
import ItemRepository from 'repositories/ItemRepository';
import InventoryTransactionRepository from 'repositories/InventoryTransactionRepository';
export default (knex, cache) => {
return {
@@ -29,5 +30,6 @@ export default (knex, cache) => {
billRepository: new BillRepository(knex, cache),
saleInvoiceRepository: new SaleInvoiceRepository(knex, cache),
itemRepository: new ItemRepository(knex, cache),
inventoryTransactionRepository: new InventoryTransactionRepository(knex, cache),
};
};