2025-07-29 05:25:05 +00:00
|
|
|
from odoo import models, fields, api
|
|
|
|
from odoo.exceptions import ValidationError
|
|
|
|
|
|
|
|
class EnrollmentFeeSummary(models.Model):
|
|
|
|
_name = 'school.enrollment.fee.summary'
|
|
|
|
_description = 'Fee Summary Line'
|
|
|
|
|
|
|
|
enrollment_id = fields.Many2one('school.enrollment', string="Enrollment")
|
2025-08-04 07:27:45 +00:00
|
|
|
student_ref = fields.Many2one('school.student', string="Student")
|
2025-07-29 05:25:05 +00:00
|
|
|
total_fees = fields.Float(string="Total Fees")
|
|
|
|
paid_fees = fields.Float(string="Paid Fees")
|
|
|
|
fee_slip_amount = fields.Float(string="Fee Slip Amount")
|
|
|
|
due_fees = fields.Float(string="Due Fees")
|
|
|
|
fee_element = fields.Char(string="Fee Element")
|
|
|
|
frequency = fields.Selection([
|
|
|
|
('monthly', 'Monthly'),
|
|
|
|
('quarterly', 'Quarterly'),
|
|
|
|
('yearly', 'Yearly')
|
|
|
|
], string="Fee Frequency")
|
|
|
|
amount_paid = fields.Float(string="Amount Paid")
|