Skip to content

Commit

Permalink
fix: send course prices with tax inclusive
Browse files Browse the repository at this point in the history
GN-1223
  • Loading branch information
igobranco committed Oct 11, 2023
1 parent 6e95be1 commit 8d0429b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ecommerce/courses/publishers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@ def serialize_seat_for_commerce_api(self, seat):
if enrollment_code:
bulk_sku = enrollment_code.stockrecords.first().partner_sku

# Begin custom NAU code
from oscar.core.loading import get_class
price = int(get_class('partner.strategy', 'Selector')().strategy().fetch_for_product(seat).price.incl_tax)
return {
'name': mode_for_product(seat),
'currency': stock_record.price_currency,
'price': int(stock_record.price_excl_tax),
# 'price': int(stock_record.price_excl_tax),
'price': price,
'sku': stock_record.partner_sku,
'bulk_sku': bulk_sku,
'expires': self.get_seat_expiration(seat),
}
# End custom NAU code

def publish(self, course):
""" Publish course commerce data to LMS.
Expand Down

0 comments on commit 8d0429b

Please sign in to comment.