Ignore:
Timestamp:
20 Sep 2021, 21:41:15 (3 years ago)
Author:
Henrik Bettermann
Message:

Add 'Balance Brought Forward'.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
Files:
2 edited

Legend:

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

    r16628 r16631  
    288288                ticket.p_session in sessions:
    289289                sf_paid[ticket.p_session] += ticket.net_amt
    290         return sf_paid, total_sf
     290        brought_fwd = 0.0
     291        for key in self.context.keys():
     292            ticket = self.context[key]
     293            if ticket.p_state != 'paid' and\
     294               ticket.p_category == 'brought_fwd':
     295                  brought_fwd += ticket.amount_auth
     296        return sf_paid, total_sf, brought_fwd
    291297
    292298class StudentGetMatricNumberPage(UtilityView, grok.View):
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser_templates/paymentsmanagepage.pt

    r16623 r16631  
    6060        <td tal:content ="python: sfpm[1]">AMOUNT</td>
    6161        <td tal:content ="python: view.schoolfee_payments_made[1]-sfpm[1]">DUE</td>
     62       
    6263      </tr>
    6364    </tbody>
    6465  </table>
     66  <p>
     67  <strong>Balance Brought Forward:</strong> <span tal:content ="python: view.schoolfee_payments_made[2]">BROUGHTFORWARD</span>
     68  </p>
    6569
    6670</form>
Note: See TracChangeset for help on using the changeset viewer.