Skip to content

Commit

Permalink
changed year limit for test reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Hasjanov authored and Oleg Hasjanov committed Dec 25, 2023
1 parent 87e89c4 commit b7a1f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def vat_rate
# return Countries.vat_rate_from_alpha2_code(country_code) if country_code == 'EE'

if country_code == 'EE'
if created_at.year < 2024
if created_at.year < 2023
return BigDecimal(OLD_EST_RATE_VAT)
else
return BigDecimal(Setting.find_by(code: :estonian_vat_rate).retrieve, 2)
Expand Down

0 comments on commit b7a1f66

Please sign in to comment.