-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adapt article & group sorted order PDF (solves #49) #87
base: master
Are you sure you want to change the base?
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
I don't think this would make the fork "bigger" as it only affects files already affected by the fork. |
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. |
Since there weren't any "ready for PR" issues left which I could work on (realistically), I worked on #49.
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).