mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat(server): wip tax rates service
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { ServiceError } from '@/exceptions';
|
||||
import TaxRate from '@/models/TaxRate';
|
||||
import { Service } from 'typedi';
|
||||
|
||||
@Service()
|
||||
export class CommandTaxRatesValidators {
|
||||
/**
|
||||
*
|
||||
* @param {} taxRate
|
||||
*/
|
||||
public validateTaxRateExistance(taxRate: TaxRate | undefined | null) {
|
||||
if (!taxRate) {
|
||||
throw new ServiceError(ERRORS.TAX_RATE_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user