UNPKG

@alexssmusica/emissao-nota-fiscal

Version:
24 lines (23 loc) 587 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCobr = void 0; function getCobr(cobr) { if (cobr === undefined) { return undefined; } const listDup = cobr.dup.map((element) => ({ nDup: element.nDup, dVenc: element.dVenc, vDup: element.vDup })); return { fat: { nFat: cobr.fat.nFat, vOrig: cobr.fat.vOrig, vDesc: cobr.fat.vDesc, vLiq: cobr.fat.vLiq }, dup: listDup }; } exports.getCobr = getCobr;