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
Multiple taxes support in ot modules #6432
base: master
Are you sure you want to change the base?
Multiple taxes support in ot modules #6432
Conversation
Created a new 'shipping tax groups' array in ot_shipping. Bug fix in ot group pricing.
Support for multiple taxes completed in all chardes and discount modules. Discount modules simplified by removing some options that lead to impossible cases.
Modified calculation for free shipping and include shipping options in ot_coupon. Code optimisation in ot_coupon and ot_gv.
Typos corrections in ot_group_pricing module. Added new file update information.
This is not a major issue, just makes the code slightly easier to read.
Looking at the test failure for Low Order Fee, it appears as though this new code is simply not charging any tax. The price mismatch is the amount of the tax: $43.49 instead of $46.01 ... the difference is $2.52 zencart/not_for_release/testFramework/FeatureStore/LowOrderFees/LowOrderFeeTest.php Lines 249 to 254 in dac1dbc
|
@piloujp Thanks for all your work on this. .... lots to review! |
... mainly because several new keys have been added to it
I really don't know, I get 46.01 in my test cart, which is the actual GitHub ZC with only this PR applied. |
I found the problem. It is because of the reversed calculation of taxes 'Credit Note' <=> 'Standard' between original code and new one. The problem is probably the same with other test failing. When test is using 'Standard' recalculation, I get the same results if I use 'Credit Note'. |
f30a541
to
8ae67a8
Compare
7efbbab
to
de8a46a
Compare
Updated tax default sort order. Corrected GV test.
eff9513
to
a0f3afc
Compare
a0f3afc
to
bc44cb4
Compare
Better that time is invested in progress than all the time I see invested/wasted in trying to polish an oSC t*rd that seems to be unfixable with all the price/discount/tax options available. Break plugins....listen to people complaining about what functionality they have lost....put it on a roadmap....ask people to take on those tasks. Organised progress. |
39a7bf3
to
198b150
Compare
…b.com/piloujp/zencart into Multiple-taxes-support-in-ot-_modules
…b.com/piloujp/zencart into Multiple-taxes-support-in-ot-_modules
I do not remember closing this PR. Perhaps it happened when merging with ZC new commits? |
Rewrite of Order Total modules, mainly discount modules, to support different modules options and multiple tax classes and rates.
Replace PR #6392
See issue #6425 for more details.
This PR needs PR #6411 and is complementary to PRs #6391 and #6393 and optionally #6394 .
All options concerning calculation have been tested thoroughly. Options for validation are partially tested.
It can't pass actual tests because there is a new array in 'order->info' and some options have been suppressed too.