Browse Source

cosmetic

master
Frederic 11 years ago
parent
commit
418f546e27
  1. 5
      cash/models.py

5
cash/models.py

@ -39,14 +39,13 @@ class Account(models.Model): @@ -39,14 +39,13 @@ class Account(models.Model):
amount = products[product]
logentry = SalesLogEntry(account=self, product=product,
count=amount, unit_price=product.price)
count=amount, unit_price=product.price)
logentry.save()
descr += '%dx %s\n' % (amount, product.name)
transaction = Transaction(account=self, subject=BUY_SUBJECT,
amount=total_value,
description=descr)
amount=total_value, description=descr)
transaction.save()
return True

Loading…
Cancel
Save