Skip to content

Commit 43bf65c

Browse files
committed
fix(TaxForms): add more fields for tax treaty
1 parent 5ac5729 commit 43bf65c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/lib/tax-forms/w8-ben-e.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const W8BenEFieldsDefinition: Partial<Record<keyof W8BenETaxFormValues, P
6464
Other: 'topmostSubform[0].Page2[0].c2_5[5]',
6565
},
6666
},
67+
certifyForeignCorporation: 'topmostSubform[0].Page2[0].c2_6[0]',
6768
typeOfLimitationOnBenefitsProvisionsOther: 'topmostSubform[0].Page2[0].f2_10[0]',
6869
certifyBeneficialOwnerCountry: 'topmostSubform[0].Page2[0].c2_3[0]',
6970
taxpayerIdentificationNumberUS: 'topmostSubform[0].Page2[0].f2_1[0]',
@@ -106,6 +107,11 @@ export const W8BenEFieldsDefinition: Partial<Record<keyof W8BenETaxFormValues, P
106107
transform: (value: W8BenETaxFormValues['businessAddress']) =>
107108
[value?.structured?.city, value?.structured?.zone, value?.structured?.postalCode].filter(Boolean).join(', '),
108109
},
110+
{
111+
formPath: 'topmostSubform[0].Page2[0].f2_9[0]',
112+
if: (value, values) => values.certifyBeneficialOwnerCountry,
113+
transform: (value: W8BenETaxFormValues['businessAddress']) => getCountryName(value?.country),
114+
},
109115
],
110116
},
111117
businessMailingAddress: {

0 commit comments

Comments
 (0)