Skip to content

Commit

Permalink
Merge pull request #33246 from Expensify/vit-addSubmitsTo
Browse files Browse the repository at this point in the history
[NoQA] add submits to prop to Policy ts
  • Loading branch information
srikarparsi authored Dec 25, 2023
2 parents d180331 + dfe5f1c commit a091b83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types/onyx/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ type Policy = {
/** The scheduled submit frequency set up on the this policy */
autoReportingFrequency: ValueOf<typeof CONST.POLICY.AUTO_REPORTING_FREQUENCIES>;

/** The accountID of manager who the employee submits their expenses to on paid policies */
submitsTo?: number;

/** The employee list of the policy */
employeeList?: [];
};
Expand Down
1 change: 1 addition & 0 deletions tests/utils/LHNTestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ function getFakePolicy(id = 1, name = 'Workspace-Test-001') {
lastModified: 1697323926777105,
autoReporting: true,
autoReportingFrequency: 'immediate',
submitsTo: 123456,
defaultBillable: false,
disabledFields: {defaultBillable: true, reimbursable: false},
};
Expand Down
1 change: 1 addition & 0 deletions tests/utils/collections/policies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function createRandomPolicy(index: number): Policy {
autoReporting: randBoolean(),
isPolicyExpenseChatEnabled: randBoolean(),
autoReportingFrequency: rand(Object.values(CONST.POLICY.AUTO_REPORTING_FREQUENCIES)),
submitsTo: index,
outputCurrency: randCurrencyCode(),
role: rand(Object.values(CONST.POLICY.ROLE)),
owner: randEmail(),
Expand Down

0 comments on commit a091b83

Please sign in to comment.