TELFORMA_MEDIA_DOWNLOAD = False
ORAL_OPTION_PRICE = 250
+FASICLE_OPTION_PRICE = 110
# use to share correction doc / media accross different training
CORRECTIONS_COURSE_TYPE_ID = 2
if oral_1:
substract += settings.ORAL_OPTION_PRICE
+ if student.fascicule:
+ substract += settings.FASICLE_OPTION_PRICE
items.append({ 'label': label,
'unit_price': student.total_fees - substract - student.total_discount,
'unit_price': settings.ORAL_OPTION_PRICE,
'amount': 1,
'discount': 0, }, )
+
+ if student.fascicule:
+ items.append({ 'label': "<b>Envoi des fascicules</b>",
+ 'unit_price': settings.FASICLE_OPTION_PRICE,
+ 'amount': 1,
+ 'discount': 0, }, )
for item in items:
item['total'] = item['unit_price'] * item['amount']
if item['discount']: