Adapt article & group sorted order PDF (solves #49)#87
Open
twothreenine wants to merge 52 commits intomasterfrom
Open
Adapt article & group sorted order PDF (solves #49)#87twothreenine wants to merge 52 commits intomasterfrom
twothreenine wants to merge 52 commits intomasterfrom
Conversation
…on chain instead of a conversion table
- made article model spec work again - removed some more dead shared db code
This also fixes several actual bugs (partially caused by the rabase) detected by the specs
…onvertability (#70) * On #42: Fax pdf/csv: Decimals dependant on supplier_order_unit's si convertability * Solve #42: Improve fax PDF, CSV, text - outsource format_units_to_order to OrderHelper - fax text: include unit, adjust column width - fax PDF & text: only include order number if any present * On #42: - Adapted order_txt to generalized creating the text table and added spec - Code style fixes for order_fax * On #42 Fixes error dad0bb9#r143648091 --------- Co-authored-by: twothreenine <leonard_ostler@yahoo.de>
Closes #16 Merged the hackathon and small seeds and updated the articles to handle the new unit system. Dropped the .nl and .de seed files, because I think it's unnecessary work to further maintain them.
* Fixes #66 * Fixes broken integration tests * chore: refactor extract articles_helper article_version test setup function * chore: make helper functions private * On #66 Fixes https://github.com/foodcoopsat/foodsoft_hackathon/pull/74/files/b078cfaa87d334dba8eaafff5b2be152f293c448#r1670426999 --------- Co-authored-by: Philipp Rothmann <philipprothmann@posteo.de>
- rearrange CSV columns as I suggested in #47 - add locales for column headings according to my suggestions in #50 (to do: adjust terms across menus -- post-merge?) - update documentation of CSV layout (#46) TO DO: any adaptations for rearranged tables necessary which I've overlooked? (for example sync feature)
Pull Request Test Coverage Report for Build 10178232479Details
💛 - Coveralls |
9594c1c to
a8d87d7
Compare
Contributor
Author
|
I don't think this would make the fork "bigger" as it only affects files already affected by the fork. |
Contributor
Yeah, but it affects more considerably more lines in those files. Also none of this is unit tested and thus neither is you new "total" logic (which btw. has nothing to do with the units fork). As for the change itself: It looks good to me in general. I'm just not sure, if everyone would agree with the visible changes in the pdf. Cons I see (admittedly minor):
Long story short: I'm not saying that in total this PR wouldn't be an improvement, I just think it should rather be done and discussed upstream. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since there weren't any "ready for PR" issues left which I could work on (realistically), I worked on foodcoops/foodsoft#1099.
I also adapted the PDF sorted by groups to show the ordered amount in group order unit and the received amount in billing unit.
Matrix PDF remains to be adapted.
If you think this isn't ready to be merged, we can also keep it as a draft and later merge it on upstream (in order to focus on the PR).