Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-platform
Commits
c25a20c5
Commit
c25a20c5
authored
Dec 19, 2017
by
Albert St. Aubin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PR Updates
parent
5a54bcb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
lms/djangoapps/commerce/utils.py
+4
-5
No files found.
lms/djangoapps/commerce/utils.py
View file @
c25a20c5
...
@@ -174,11 +174,10 @@ def refund_entitlement(course_entitlement):
...
@@ -174,11 +174,10 @@ def refund_entitlement(course_entitlement):
refund_ids
,
refund_ids
,
)
)
_process_refund
(
return
_process_refund
(
refund_ids
=
refund_ids
,
refund_ids
=
refund_ids
,
api_client
=
api_client
,
api_client
=
api_client
,
course_product
=
course_entitlement
,
course_product
=
course_entitlement
is_entitlement
=
True
)
)
else
:
else
:
log
.
info
(
'No refund opened for user [
%
s], course entitlement [
%
s]'
,
enrollee
.
id
,
entitlement_uuid
)
log
.
info
(
'No refund opened for user [
%
s], course entitlement [
%
s]'
,
enrollee
.
id
,
entitlement_uuid
)
...
@@ -226,7 +225,7 @@ def refund_seat(course_enrollment):
...
@@ -226,7 +225,7 @@ def refund_seat(course_enrollment):
return
refund_ids
return
refund_ids
def
_process_refund
(
refund_ids
,
api_client
,
course_product
,
is_entitlement
=
False
):
def
_process_refund
(
refund_ids
,
api_client
,
course_product
):
"""
"""
Helper method to process a refund for a given course_product
Helper method to process a refund for a given course_product
...
@@ -263,7 +262,7 @@ def _process_refund(refund_ids, api_client, course_product, is_entitlement=False
...
@@ -263,7 +262,7 @@ def _process_refund(refund_ids, api_client, course_product, is_entitlement=False
# result in opening a refund request.
# result in opening a refund request.
msg
=
'Skipping refund support notification for non-verified mode for user [
%
s], course [
%
s], mode: [
%
s]'
msg
=
'Skipping refund support notification for non-verified mode for user [
%
s], course [
%
s], mode: [
%
s]'
course_identifier
=
course_product
.
course_id
course_identifier
=
course_product
.
course_id
if
is_entitlement
:
if
course_product
.
uuid
:
course_identifier
=
str
(
course_product
.
uuid
)
course_identifier
=
str
(
course_product
.
uuid
)
msg
=
(
'Skipping refund support notification for non-verified mode for user [
%
s], '
msg
=
(
'Skipping refund support notification for non-verified mode for user [
%
s], '
'course entitlement [
%
s], mode: [
%
s]'
)
'course entitlement [
%
s], mode: [
%
s]'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment