-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Add the distribution ID in the "receipt" (i.e. distribution printout) #4999
Comments
@cielf 👋 I've been working a solution this weekend. I think I'll be able to put up the fix soon, just working through some issues generating the test pdfs correctly. Any chance I could be assigned this? |
Yup! Done. Good to see you back. |
@cielf thanks, glad to be contributing again. I've run into a bit of a snag with tests. I'm not sure what the maintainers would like to see here. I see that not too long ago there were some tests added to do some pdf comparisons which is pretty cool. By adding the requirement of rendering the distribution id, as it stands, it would mean that every variation would need to be accounted for in Right now there are 11 calls of the |
I'm going to pass that question over to @dorner. |
Unfortunately you can't use the ID directly in the PDF, because the ID will be different depending on the order of the specs passing. Here's my recommendation: Add the value |
@dorner Thanks for your help. I think I understand the gist of what you're saying, but I'm struggling a little with the mechanics.
Assuming all that is correct, I wasn't sure how to go about finding and replacing. Would I need to convert the the string |
hmm... maybe? I'd try without it and if it doesn't work, you can convert the string. I'm not 100% sure either of those will work though... You might need to hardcode the distribution ID when you generate them (e.g. set |
Summary
Add the distribution ID to the distribution printout
Why
It serves the same purpose as an invoice number -- will help the banks with their off-line record keeping of pickups.
Details
##To see a distribution printout,
sign in as [email protected]
Click Distributions
Then click "print" beside a distribution. This displays a pdf
##Change required:
Insert the field just above "Comments", on the left side of that pdf, with the heading "Distribution ID", (and show the distribution id there).
Criteria for completion
The text was updated successfully, but these errors were encountered: