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

@@ -0,0 +1,11 @@
import TenantRepository from 'repositories/TenantRepository';
import { InventoryTransaction } from 'models';
export default class InventoryTransactionRepository extends TenantRepository {
/**
* Gets the repository's model.
*/
get model() {
return InventoryTransaction.bindKnex(this.knex);
}
}