mirror of
https://github.com/nikdoof/pacmanager.git
synced 2025-12-13 07:32:15 +00:00
Fix fees total
This commit is contained in:
@@ -17,7 +17,7 @@ class Command(BaseCommand):
|
||||
for total in MonthTotal.objects.filter(charged=False):
|
||||
if datetime.datetime(total.year, total.month, calendar.monthrange(total.year, total.month)[1], 23, 59, 59, tzinfo=utc) < now():
|
||||
print "Charging %s - %s/%s" % (total.corporation, total.year, total.month)
|
||||
total.corporation.balance -= Decimal(str(self.object.fees_due))
|
||||
total.corporation.balance -= Decimal(str(total.fees_due))
|
||||
total.charged = True
|
||||
|
||||
total.save()
|
||||
|
||||
Reference in New Issue
Block a user