mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: trigger compute items cost once the sale invoice and bill be edited or deleted.
This commit is contained in:
11
server/src/repositories/InventoryTransactionRepository.ts
Normal file
11
server/src/repositories/InventoryTransactionRepository.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user