mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
add server to monorepo.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { Service, Inject } from 'typedi';
|
||||
import TransactionsLockingGuard from './TransactionsLockingGuard';
|
||||
import { TransactionsLockingGroup } from '@/interfaces';
|
||||
|
||||
@Service()
|
||||
export default class FinancialTransactionLocking {
|
||||
@Inject()
|
||||
transactionLockingGuardService: TransactionsLockingGuard;
|
||||
|
||||
/**
|
||||
* Validates the transaction locking of cashflow command action.
|
||||
* @param {number} tenantId
|
||||
* @param {Date} transactionDate
|
||||
* @throws {ServiceError(TRANSACTIONS_DATE_LOCKED)}
|
||||
*/
|
||||
public transactionLockingGuard = (
|
||||
tenantId: number,
|
||||
transactionDate: Date
|
||||
) => {
|
||||
this.transactionLockingGuardService.transactionsLockingGuard(
|
||||
tenantId,
|
||||
transactionDate,
|
||||
TransactionsLockingGroup.Financial
|
||||
);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user