@cityssm/mpac-yetf
Version:
Parses the MPAC Year-End Tax File (YETF) into a usable object.
20 lines (15 loc) • 544 B
text/typescript
import type * as types from '../types'
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
}