Merge branch 'jkace' of github.com:Gluejar/regluit into payment

pull/1/head
Raymond Yee 2012-01-05 15:21:45 -05:00
commit 7012039aef
1 changed files with 3 additions and 3 deletions

View File

@ -158,11 +158,11 @@ class PaymentManager( object ):
t.save() t.save()
# Check the amount # Check the amount
if t.amount != D(p.amount): if t.max_amount != D(p.amount):
#append_element(doc, tran, "amount_ours", str(t.amount)) #append_element(doc, tran, "amount_ours", str(t.amount))
#append_element(doc, tran, "amount_theirs", str(p.amount)) #append_element(doc, tran, "amount_theirs", str(p.amount))
preapproval_status["amount"] = {'ours':t.amount, 'theirs':p.amount} preapproval_status["amount"] = {'ours':t.max_amount, 'theirs':p.amount}
t.amount = p.amount t.max_amount = p.amount
t.save() t.save()
# append only if there was a change in status # append only if there was a change in status