Ignore:
Timestamp:
2 Nov 2019, 18:03:15 (5 years ago)
Author:
Henrik Bettermann
Message:

Fix indentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py

    r15732 r15744  
    122122                            ), None
    123123                    amount = getattr(certificate, 'school_fee_2', 0.0)
    124             if category == 'schoolfee40':
    125                 amount = 0.4*amount + 0.6*GATEWAY_AMT
    126             elif category == 'secondinstal':
    127                 amount = 0.6*amount + 0.4*GATEWAY_AMT
     124                if amount and category == 'schoolfee40':
     125                    amount = 0.4*amount + 0.6*GATEWAY_AMT
     126                elif amount and category == 'secondinstal':
     127                    amount = 0.6*amount + 0.4*GATEWAY_AMT
    128128        elif category == 'clearance':
    129129            try:
Note: See TracChangeset for help on using the changeset viewer.