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

feat(cash): /references finds payment uuid by ref #129

Merged

Conversation

jniles
Copy link
Contributor

@jniles jniles commented Feb 23, 2016

This commit adds an API route to find a payment UUID by the human
readable reference. Use it like this:

  1. GET /cash/references/:reference - returns the uuid of a cash
    payment matching the reference if it exists. Otherwise, returns a 404
    NOT FOUND error.

There are accompanying integration tests to demonstrate functionality.

This commit adds an API route to find a payment UUID by the human
readable reference.  Use it like this:
 1. `GET /cash/references/:reference` - returns the uuid of a cash
 payment matching the reference if it exists.  Otherwise, returns a 404
 NOT FOUND error.

There are accompanying integration tests to demonstrate functionality.

/**
* retrieves cash payment uuids from a reference string (e.g. HBB123)
* GET /cash/references/:reference
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use jsdoc for comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is jsdoc syntax. The @description is optional if the first line is the description (src). Can you be more specific about what you'd like to see?

Copy link
Contributor

Choose a reason for hiding this comment

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

@method or @function , @name, @param , @description, @example are missed.

@DedrickEnc
Copy link
Contributor

@jniles
Using the jsdoc is not a big deal, I can merge it when ever. it looks good for me

@jniles
Copy link
Contributor Author

jniles commented Feb 23, 2016

Okay. I'm happy to add whatever comments you think are necessary. Otherwise, you can merge it.

DedrickEnc added a commit that referenced this pull request Feb 23, 2016
feat(cash): /references finds payment uuid by ref
@DedrickEnc DedrickEnc merged commit 717b333 into IMA-WorldHealth:master Feb 23, 2016
@jniles jniles deleted the api-cash-payments-reference branch February 23, 2016 15:33
jniles referenced this pull request in jniles/bhima Jan 21, 2017
This commit fixes the patient activity report so that it uses proper
identifiers.  Note: there are some improvements that can be made to
better MySQL performance - moving the LEFT JOIN out of the UNION and
using the cached ids in the document_map.

Closes #129.
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.

None yet

2 participants