UNPKG

@tomei/finance

Version:

NestJS package for finance module

52 lines 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Tax = void 0; const general_1 = require("@tomei/general"); class Tax extends general_1.ObjectBase { get TaxCode() { return this.ObjectId; } set TaxCode(code) { this._TaxCode = code; this.ObjectId = code; } constructor(taxAttr) { super(); this.ObjectId = 'New'; this._TaxRate = 0; this.ObjectType = 'Tax'; if (taxAttr) { this.TaxCode = taxAttr.TaxCode; this._Description = taxAttr.Description; this._CompanyId = taxAttr.CompanyId; this._TaxRate = taxAttr.TaxRate; this._CreatedById = taxAttr.CreatedById; this._CreatedAt = taxAttr.CreatedAt; this._UpdatedById = taxAttr.UpdatedById; this._UpdatedAt = taxAttr.UpdatedAt; } } get Description() { return this._Description; } get CompanyId() { return this._CompanyId; } get TaxRate() { return this._TaxRate; } get CreatedById() { return this._CreatedById; } get CreatedAt() { return this._CreatedAt; } get UpdatedById() { return this._UpdatedById; } get UpdatedAt() { return this._UpdatedAt; } } exports.Tax = Tax; //# sourceMappingURL=tax.js.map