CostLineCostingCellDTO.java

package com.tradecloud.dto.document;

import com.tradecloud.domain.common.Currency;
import com.tradecloud.domain.document.invoice.CostLineCostingCell;

import java.math.BigDecimal;

/**
 * @author jonwork
 */
public class CostLineCostingCellDTO {

    private BigDecimal transactionAmount;
    private BigDecimal integratedVat;
    private BigDecimal roe;
    private Currency transactionCurrency;
    private boolean currencyEditable;

    private final CostLineCostingCell costLineCostingCell;

    private BigDecimal costingAmount;

    public CostLineCostingCellDTO(CostLineCostingCell costLineCostingCell) {
        this.costLineCostingCell = costLineCostingCell;
        this.transactionAmount = costLineCostingCell.getTransactionAmount();
        this.integratedVat = costLineCostingCell.getIntegratedVat();
        this.transactionCurrency = costLineCostingCell.getTransactionCurrency();
        this.roe = costLineCostingCell.getForwardRate();
    }

    public CostLineCostingCell getCostLineCostingCell() {
        return costLineCostingCell;
    }

    public BigDecimal getTransactionAmount() {
        return transactionAmount;
    }

    public void setTransactionAmount(BigDecimal transactionAmount) {
        this.transactionAmount = transactionAmount;
    }

    public BigDecimal getIntegratedVat() {
        return integratedVat;
    }

    public void setIntegratedVat(BigDecimal integratedVat) {
        this.integratedVat = integratedVat;
    }

    public Currency getTransactionCurrency() {
        return transactionCurrency;
    }

    public void setTransactionCurrency(Currency transactionCurrency) {
        this.transactionCurrency = transactionCurrency;
    }

    public boolean isCurrencyEditable() {
        return currencyEditable;
    }

    public void setCurrencyEditable(boolean currencyEditable) {
        this.currencyEditable = currencyEditable;
    }

    public BigDecimal getCostingAmount() {
        return costingAmount;
    }

    public void setCostingAmount(BigDecimal costingAmount) {
        this.costingAmount = costingAmount;
    }

    public BigDecimal getRoe() {
        return roe;
    }

    public void setRoe(BigDecimal roe) {
        this.roe = roe;
    }

}