Skip to content

Commit

Permalink
ps: fix a bug in the report
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayndwiga committed Nov 23, 2017
1 parent 343caaa commit 8a0447d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parkstay/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def booking_bpoint_settlement_report(_date):
if booking:
b_name = u'{} {}'.format(booking.details.get('first_name',''),booking.details.get('last_name',''))
created = timezone.localtime(b.created, pytz.timezone('Australia/Perth'))
writer.writerow([created.strftime('%d/%m/%Y %H:%M:%S'),b.created.strftime('%d/%m/%Y'),booking.confirmation_number,b_name.encode('utf-8'),str(b.action),b.amount,invoice.reference])
writer.writerow([created.strftime('%d/%m/%Y %H:%M:%S'),b.created.strftime('%d/%m/%Y'),booking.confirmation_number,b_name.encode('utf-8'),str(b.type),b.amount,invoice.reference])
else:
writer.writerow([b.created.strftime('%d/%m/%Y %H:%M:%S'),b.created.strftime('%d/%m/%Y'),'','',str(b.type),b.amount,invoice.reference])
except Invoice.DoesNotExist:
Expand Down

0 comments on commit 8a0447d

Please sign in to comment.