Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1761 - [Bug] Dismissing a payment and resending it doesn't clear it as being sent #1772

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

SebinSong
Copy link
Collaborator

closes #1761

Currently RecordPayment.vue always creates new payment item regardless of whether it's an existing payment item with the status as PAYMENT_NOT_RECEIVED or a todo payment that hasn't been payed yet. Apparently this leads to duplicated payment items here and there in the UI. So I made a fix where the component checks if the payment item is PAYMENT_NOT_RECEIVED or not and then prevents it from creating a new payment item in group state if it is.
Hope it sounds good.

@SebinSong SebinSong self-assigned this Oct 18, 2023
@SebinSong SebinSong requested a review from taoeffect October 18, 2023 04:17
@@ -131,16 +131,16 @@ export default ({
]),
paymentsList () {
return this.todoItems.map(item => {
return item.status === PAYMENT_NOT_RECEIVED // if not received item, re-format the obj
Copy link
Collaborator Author

@SebinSong SebinSong Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out it had always been resolved as false here, even when it's actually in the PAYMENT_NOT_RECEIVED'status. So made a correction to this logic as well while working on the task.

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @SebinSong!

Looks like it's working and addressed the issue! 🙂 👍

@taoeffect taoeffect merged commit e12a939 into master Oct 18, 2023
3 checks passed
@taoeffect taoeffect deleted the sebin/task/1761-error-regarding-dismissing-payment branch October 18, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Dismissing a payment and resending it doesn't clear it as being sent
2 participants