UNPKG

@cityssm/mpac-yetf

Version:

Parses the MPAC Year-End Tax File (YETF) into a usable object.

20 lines (15 loc) 547 B
import type * as types from '../types.js' export function formatPC( recordPC: types.RawYetfRecordPC ): types.FormattedYetfRecordPC { const formattedYetfRecordPC = recordPC as types.FormattedYetfRecordPC formattedYetfRecordPC.realtyPortionFrenchPublicDollars = Number.parseInt( formattedYetfRecordPC.realtyPortionFrenchPublic, 10 ) formattedYetfRecordPC.realtyPortionFrenchSeparateDollars = Number.parseInt( formattedYetfRecordPC.realtyPortionFrenchSeparate, 10 ) return formattedYetfRecordPC }