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

fix: settle bills on correct cash point #469

Merged

Conversation

amosmachora
Copy link
Collaborator

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide.
  • I checked for feature overlap with existing widgets.

Summary

This PR adds a way to settle a bill at the correct cash point. Previously it was assumed that where you create the bill is where it's settled.

Screenshots

An example of settling a bill at a 'non-default' payment point.

image

None.

Related Issue

None.

Other

None.

@@ -51,7 +52,7 @@ export const createPaymentPayload = (
updatedLineItems.filter((item) => item.paymentStatus === 'PENDING').length === 0 ? 'PAID' : 'PENDING';

const processedPayment = {
cashPoint: bill.cashPointUuid,
cashPoint: timesheet.cashPoint.uuid,
Copy link
Contributor

Choose a reason for hiding this comment

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

is it safe to just check for NULLs?

@ojwanganto
Copy link
Contributor

@makombe @Omoshlawi @donaldkibet - please help with reviews

donaldkibet
donaldkibet previously approved these changes Nov 14, 2024
Copy link
Contributor

@donaldkibet donaldkibet left a comment

Choose a reason for hiding this comment

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

Thanks @amosmachora LGTM if we could address @ojwanganto feedback its good to go

@donaldkibet donaldkibet force-pushed the fix/settle-on-correct-cashpoint branch from eb4d339 to bcad399 Compare November 15, 2024 08:57
@donaldkibet donaldkibet merged commit a657c13 into palladiumkenya:main Nov 15, 2024
4 checks passed
@amosmachora
Copy link
Collaborator Author

@donaldkibet there was a conflict on this branch I do not know if you addressed it before the merge.

@amosmachora amosmachora deleted the fix/settle-on-correct-cashpoint branch November 21, 2024 09:34
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.

3 participants