We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f2d88f commit f4df3aeCopy full SHA for f4df3ae
1 file changed
bases/rsptx/admin_server_api/routers/instructor.py
@@ -27,6 +27,7 @@
27
create_course,
28
create_course_attribute,
29
create_instructor_course_entry,
30
+ create_invoice_request,
31
create_membership,
32
create_user_course_entry,
33
delete_course_completely,
@@ -1223,6 +1224,11 @@ async def post_create_course_page(
1223
1224
course_validator = CoursesValidator(**course_data)
1225
new_course = await create_course(course_validator)
1226
1227
+ # if invoice is true then we need to create an invoice for the course
1228
+ if invoice == "true":
1229
+ res = await create_invoice_request(
1230
+ user.username, projectname, 0.0, user.email
1231
+ )
1232
# Copy attributes from base course
1233
bc = await fetch_course(coursetype)
1234
attrs = await fetch_all_course_attributes(bc.id)
0 commit comments