Enhancement/11 move vat rates#12
Conversation
…without VAT_NUMBER_EXPRESSIONS
| 'EG': EgVatRules(), | ||
| 'CH': ChVatRules(), | ||
| 'CA': CaVatRules(), | ||
| 'NO': NoVatRules(), |
There was a problem hiding this comment.
I am not confortable with the NoVat naming.
Can we name the rules with the countries explicitely named: Norway, Canada, FranceDom, Egypt, Switzerland?
There was a problem hiding this comment.
@mostafa-hisham Please rename the shortnames to country:
- CaVatRules > CanadaVatRues
- NoVatRules > NorwayVatRules
So that we can avoid the misleading NoVatRules
| # French VAT zone: seller in France/territories selling to buyer in France/territories | ||
| # For B2B or consumers after 2015-01-01, charge buyer's country VAT | ||
| if seller_in_french_zone and buyer_in_french_zone: | ||
| if buyer.is_business or date >= JANUARY_1_2015: |
There was a problem hiding this comment.
I think we can remove this 2015 condition everywhere
nicomollet
left a comment
There was a problem hiding this comment.
Check comments:
- code consistency
- behavior of B2B exemptions for NON EU
| 'EG': EgVatRules(), | ||
| 'CH': ChVatRules(), | ||
| 'CA': CaVatRules(), | ||
| 'NO': NoVatRules(), |
There was a problem hiding this comment.
@mostafa-hisham Please rename the shortnames to country:
- CaVatRules > CanadaVatRues
- NoVatRules > NorwayVatRules
So that we can avoid the misleading NoVatRules
|
@nicomollet if we are ok with this PR we should release it |
|
@mostafa-hisham Please check this message from Mathieu:
https://group-onecom.slack.com/archives/C08EFCVF459/p1765807325784649 This issue will be closed: |
…yvat into enhancement/11-move-vat-rates
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ItemType.generic_physical_good: Decimal(25.5), | ||
| ItemType.generic_electronic_service: Decimal(25.5), | ||
| ItemType.generic_telecommunications_service: Decimal(25.5), | ||
| ItemType.generic_broadcasting_service: Decimal(25.5), | ||
| ItemType.prepaid_broadcasting_service: Decimal(25.5), | ||
| ItemType.ebook: Decimal(10), | ||
| ItemType.enewspaper: Decimal(24), | ||
| ItemType.enewspaper: Decimal(25.5), |
There was a problem hiding this comment.
VAT rate update for Finland. The test expectations show Finland's VAT rate increasing from 24% to 25.5%, which is reflected in the updated test on lines 100-106. However, ensure this VAT rate change (from 24% to 25.5%) is accurate and matches official Finnish tax authority announcements. The comment in vat_rules.py indicates "VAT rates updated July 1st 2025", so verify this is the correct effective date for Finland's rate change.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
QA on monies staging ✅ https://github.com/wp-media/monies/pull/230#issue-3733560193 |

Description
Fixes #11
Type of change
Detailed scenario
What was tested
unit tests
How to test
Technical description
Documentation
no
New dependencies
no
Risks
no
Mandatory Checklist
Code validation
Code style
Unticked items justification
If some mandatory items are not relevant, explain why in this section.
Additional Checks