@teaploy/megaprint
Version:
Megaprint npm integration
21 lines (20 loc) • 633 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Tax = void 0;
class Tax {
constructor(shortName, codeTaxableUnit, amountTaxable, amountTax) {
this.shortName = shortName;
this.codeTaxableUnit = codeTaxableUnit;
this.amountTaxable = amountTaxable;
this.amountTax = amountTax;
}
toDte() {
return {
'dte:NombreCorto': this.shortName,
'dte:CodigoUnidadGravable': this.codeTaxableUnit,
'dte:MontoGravable': this.amountTaxable,
'dte:MontoImpuesto': this.amountTax,
};
}
}
exports.Tax = Tax;