/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FenixEdu Academic is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with FenixEdu Academic. If not, see <http://www.gnu.org/licenses/>. */ package org.fenixedu.academic.dto.accounting; import java.io.Serializable; import org.fenixedu.academic.domain.accounting.EntryType; import org.fenixedu.academic.domain.accounting.Event; import org.fenixedu.academic.util.LabelFormatter; import org.fenixedu.academic.util.Money; public class EntryDTO implements Serializable { private boolean selected; private EntryType entryType; private Event event; private Money totalAmount; private Money payedAmount; private Money amountToPay; private LabelFormatter description; private Money debtAmount; public EntryDTO(EntryType entryType, Event event, Money totalAmount, Money payedAmount, Money amountToPay, LabelFormatter description, Money debtAmount) { setEntryType(entryType); setEvent(event); setTotalAmount(totalAmount); setPayedAmount(payedAmount); setAmountToPay(amountToPay); setDescription(description); setDebtAmount(debtAmount); } public EntryDTO(EntryType entryType, Event event, Money amountToPay) { setEntryType(entryType); setEvent(event); setAmountToPay(amountToPay); } public Money getTotalAmount() { return totalAmount; } public void setTotalAmount(Money totalAmount) { this.totalAmount = totalAmount; } public Money getPayedAmount() { return payedAmount; } public void setPayedAmount(Money payedAmount) { this.payedAmount = payedAmount; } public EntryType getEntryType() { return entryType; } public void setEntryType(EntryType entryType) { this.entryType = entryType; } public boolean isSelected() { return selected; } public void setSelected(boolean selected) { this.selected = selected; } public Money getAmountToPay() { return amountToPay; } public void setAmountToPay(Money amountToPay) { this.amountToPay = amountToPay; } public Event getEvent() { return this.event; } public void setEvent(Event event) { this.event = event; } public LabelFormatter getDescription() { return description; } public void setDescription(LabelFormatter description) { this.description = description; } public void setDebtAmount(Money debtAmount) { this.debtAmount = debtAmount; } public Money getDebtAmount() { return this.debtAmount; } }