mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
add server to monorepo.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { Service, Inject } from 'typedi';
|
||||
import TransactionsLockingValidator from '@/services/TransactionsLocking/TransactionsLockingGuard';
|
||||
import { TransactionsLockingGroup } from '@/interfaces';
|
||||
|
||||
@Service()
|
||||
export default class SalesTransactionsLocking {
|
||||
@Inject()
|
||||
transactionLockingValidator: TransactionsLockingValidator;
|
||||
|
||||
/**
|
||||
* Validates the all and partial sales transactions locking.
|
||||
* @param {number} tenantId
|
||||
* @param {Date} transactionDate
|
||||
*/
|
||||
public validateTransactionsLocking = (
|
||||
tenantId: number,
|
||||
transactionDate: Date
|
||||
) => {
|
||||
// Validates the all transcation locking.
|
||||
this.transactionLockingValidator.validateTransactionsLocking(
|
||||
tenantId,
|
||||
transactionDate,
|
||||
TransactionsLockingGroup.All
|
||||
);
|
||||
// Validates the partial sales transcation locking.
|
||||
// this.transactionLockingValidator.validateTransactionsLocking(
|
||||
// tenantId,
|
||||
// transactionDate,
|
||||
// TransactionsLockingGroup.Sales
|
||||
// );
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user