@alexssmusica/emissao-nota-fiscal
Version:
Modulo que auxilia na geração de NFe e NFCe
24 lines (23 loc) • 587 B
JavaScript
;
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;