Skip to content

Commit

Permalink
Fixed string for transactionId
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Mar 29, 2013
1 parent 735c4db commit 6811800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shop/payment/backends/prepayment.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def advance_payment_view(self, request):
"""
order = self.shop.get_order(request)
amount = self.shop.get_order_total(order)
transaction_id = _('Transaction %s-%s') % (date.today().strftime('%Y'), order.id)
transaction_id = date.today().strftime('%Y') + '%06d' % order.id
self._create_confirmed_order(order, transaction_id)
context = RequestContext(request, {'order': order, 'amount': amount,
'transaction_id': transaction_id, 'next_url': self.shop.get_finished_url()})
Expand Down

0 comments on commit 6811800

Please sign in to comment.