Commit 68a6286
Add itemized receipt changelog support and fix manual approval threshold bug
- Add UPDATE_MAX_EXPENSE_AMOUNT_NO_ITEMIZED_RECEIPT action type to CONST.ts
- Add oldMaxExpenseAmountNoItemizedReceipt and newMaxExpenseAmountNoItemizedReceipt fields to OriginalMessage.ts
- Add getPolicyChangeLogMaxExpenseAmountNoItemizedReceiptMessage function in ReportActionsUtils.ts
- Add dispatch branches in PolicyChangeLogContent.tsx, ContextMenuActions.tsx, ReportNameUtils.ts, and SidebarUtils.ts
- Add English, Spanish, and other language translations for set/changed/removed itemized receipt required amount
- Fix getUpdatedManualApprovalThresholdMessage: check typeof newLimit instead of checking oldLimit twice
- Add unit tests for the new itemized receipt message function
Co-authored-by: Daniel Gale-Rosen <dangrous@users.noreply.github.com>
Co-authored-by: thelullabyy <thelullabyy@users.noreply.github.com>1 parent da7adae commit 68a6286
18 files changed
Lines changed: 129 additions & 3 deletions
File tree
- src
- CONST
- languages
- libs
- pages/inbox/report
- ContextMenu
- actionContents
- types/onyx
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
| 1585 | + | |
1585 | 1586 | | |
1586 | 1587 | | |
1587 | 1588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7313 | 7313 | | |
7314 | 7314 | | |
7315 | 7315 | | |
7316 | | - | |
| 7316 | + | |
| 7317 | + | |
| 7318 | + | |
| 7319 | + | |
7317 | 7320 | | |
7318 | 7321 | | |
7319 | 7322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7437 | 7437 | | |
7438 | 7438 | | |
7439 | 7439 | | |
| 7440 | + | |
| 7441 | + | |
| 7442 | + | |
7440 | 7443 | | |
7441 | 7444 | | |
7442 | 7445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7001 | 7001 | | |
7002 | 7002 | | |
7003 | 7003 | | |
| 7004 | + | |
| 7005 | + | |
| 7006 | + | |
7004 | 7007 | | |
7005 | 7008 | | |
7006 | 7009 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7335 | 7335 | | |
7336 | 7336 | | |
7337 | 7337 | | |
| 7338 | + | |
| 7339 | + | |
| 7340 | + | |
7338 | 7341 | | |
7339 | 7342 | | |
7340 | 7343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7300 | 7300 | | |
7301 | 7301 | | |
7302 | 7302 | | |
| 7303 | + | |
| 7304 | + | |
| 7305 | + | |
| 7306 | + | |
7303 | 7307 | | |
7304 | 7308 | | |
7305 | 7309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7213 | 7213 | | |
7214 | 7214 | | |
7215 | 7215 | | |
| 7216 | + | |
| 7217 | + | |
| 7218 | + | |
7216 | 7219 | | |
7217 | 7220 | | |
7218 | 7221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7278 | 7278 | | |
7279 | 7279 | | |
7280 | 7280 | | |
| 7281 | + | |
| 7282 | + | |
| 7283 | + | |
| 7284 | + | |
7281 | 7285 | | |
7282 | 7286 | | |
7283 | 7287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7268 | 7268 | | |
7269 | 7269 | | |
7270 | 7270 | | |
| 7271 | + | |
| 7272 | + | |
| 7273 | + | |
7271 | 7274 | | |
7272 | 7275 | | |
7273 | 7276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7270 | 7270 | | |
7271 | 7271 | | |
7272 | 7272 | | |
| 7273 | + | |
| 7274 | + | |
| 7275 | + | |
7273 | 7276 | | |
7274 | 7277 | | |
7275 | 7278 | | |
| |||
0 commit comments