Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.99k stars 2.5k forks source link

fix: Pay someone - Add receipt placeholder is shown when receipt is not allowed when paying someone #41635

Open Krishna2323 opened 2 weeks ago

Krishna2323 commented 2 weeks ago

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/41489 PROPOSAL: https://github.com/Expensify/App/issues/41489#issuecomment-2091075371

Tests

  1. Go to FAB > Pay someone > Enter amount > Select user > Submit
  2. Open the paid IOU request > Verify Add receipt placeholder is not shown
  3. Open any paid or approved IOU report in paid policy that doesn't have any receipt
  4. Verify Add receipt placeholder is not shown

Offline tests

  1. Go to FAB > Pay someone > Enter amount > Select user > Submit
  2. Open the paid IOU request > Verify Add receipt placeholder is not shown
  3. Open any paid or approved IOU report in paid policy that doesn't have any receipt
  4. Verify Add receipt placeholder is not shown

QA Steps

  1. Go to FAB > Pay someone > Enter amount > Select user > Submit
  2. Open the paid IOU request > Verify Add receipt placeholder is not shown
  3. Open any paid or approved IOU report in paid policy that doesn't have any receipt
  4. Verify Add receipt placeholder is not shown

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/85894871/ea6b8f43-eaca-4868-877e-0ec706ab30f3
Android: mWeb Chrome https://github.com/Expensify/App/assets/85894871/92d12840-8ff4-4264-9f53-655b8ef4f033
iOS: Native https://github.com/Expensify/App/assets/85894871/ea653103-ff13-4b2f-9e87-5f22769c4203
iOS: mWeb Safari https://github.com/Expensify/App/assets/85894871/8a4f6cb9-f164-4936-9cf2-b41fb96cce0b
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/85894871/2a57ce80-8299-4bc7-b971-89e91fb0f5b0
MacOS: Desktop https://github.com/Expensify/App/assets/85894871/bdb61057-c927-4a05-a54e-87e1c8cb868e
melvin-bot[bot] commented 2 weeks ago

@sobitneupane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

Krishna2323 commented 2 weeks ago

@JmillsExpensify, I made changes to hide the add receipt placeholder when the IOU is approved or settled. I believe this is the expected behavior, am I correct?

JmillsExpensify commented 2 weeks ago

@JmillsExpensify, I made changes to hide the add receipt placeholder when the IOU is approved or settled. I believe this is the expected behavior, am I correct?

Yes, that's correct. Thanks for confirming!

sobitneupane commented 1 week ago

@Krishna2323 We are showing 'Review Required' in those reports which are not in paid policy (for example: one-to-one chat). I belive we should not show it.

https://github.com/Expensify/App/assets/25876548/78b17001-a4ee-44a0-8557-e6206394de06

Krishna2323 commented 1 week ago

Sorry for delay, will be updating this today or tomorrow for sure.

Krishna2323 commented 1 week ago

@Krishna2323 We are showing 'Review Required' in those reports which are not in paid policy (for example: one-to-one chat). I belive we should not show it.

@sobitneupane, updated.