Skip to content

Commit

Permalink
VAT 7% added
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaudin committed Jan 9, 2012
1 parent 6b89761 commit c750293
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions autoentrepreneur/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ class SubscriptionTest(TestCase):
def setUp(self):
Subscription.objects.all().delete()
today = datetime.date.today()

limit_defined = SalesLimit.objects.filter(year=today.year).count()
if not limit_defined:
sale_limits = SalesLimit.objects.filter(year=2011)
for sl in sale_limits:
SalesLimit.objects.create(year=today.year,
activity=sl.activity,
limit=sl.limit,
limit2=sl.limit2)

# generate limit for next year
sale_limits = SalesLimit.objects.filter(year=today.year)
for sl in sale_limits:
Expand Down
2 changes: 2 additions & 0 deletions project/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,11 @@ def update_project_state(sender, instance, created, **kwargs):
(ROW_CATEGORY_PRODUCT, _('Product')))

VAT_RATES_19_6 = Decimal('19.6')
VAT_RATES_7 = Decimal('7')
VAT_RATES_5_5 = Decimal('5.5')
VAT_RATES_2_1 = Decimal('2.1')
VAT_RATES = ((VAT_RATES_19_6, _('%s%%') % (localize(VAT_RATES_19_6))),
(VAT_RATES_7, _('%s%%') % (localize(VAT_RATES_7))),
(VAT_RATES_5_5, _('%s%%') % (localize(VAT_RATES_5_5))),
(VAT_RATES_2_1, _('%s%%') % (localize(VAT_RATES_2_1))),)

Expand Down

0 comments on commit c750293

Please sign in to comment.