pull/1/head
eric 2013-12-15 01:26:42 -05:00
parent 82443593ea
commit b331866c38
1 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,10 @@ class Transaction(models.Model):
self.date_executed = now() self.date_executed = now()
self.save() self.save()
def set_payment(self):
self.date_payment = now()
self.save()
def set_credit_approved(self, amount): def set_credit_approved(self, amount):
self.amount=amount self.amount=amount
self.host = PAYMENT_HOST_CREDIT self.host = PAYMENT_HOST_CREDIT