Skip to content
Snippets Groups Projects
Unverified Commit 797e93e8 authored by Diane Kaplan's avatar Diane Kaplan Committed by GitHub
Browse files

REV-2260: fix decimal display issue for enterprise learners

parent 4a912266
No related branches found
No related tags found
No related merge requests found
......@@ -115,4 +115,11 @@ def get_course_final_price(user, sku, course_price):
user.username,
price_details.get('total_incl_tax')
)
return price_details.get('total_incl_tax', course_price)
result = price_details.get('total_incl_tax', course_price)
# When ecommerce price has zero cents, 'result' gets 149.0
# As per REV-2260: if zero cents, then only show dollars
if int(result) == result:
result = int(result)
return result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment