WarehouseInventory.java

/*
 *        @ Copyright 2001 FA Software;
 *        All right reserved. No part of this program may be reproduced or
 *        transmitted in any form or by any means, electronic or
 *        mechanical, including photocopying, recording, or by any
 *        information storage or retrieval system without written
 *        permission from FA Software, except for inclusion of brief
 *        quotations in a review.
 */
package com.mycim.valueobject.asm;

import java.io.Serializable;

public class WarehouseInventory implements Serializable {

    // --------------------------------------------------------- Instance Variables
    private Long itemRrn;

    private Long warehouseRrn;

    private String warehouseId;

    private Double openingBalance;

    private Double receiptQty;

    private Double issueQty;

    private Double adjustQty;

    private Double quantityOfWarning;

    private String warningAlarmId;

    private Double quanity;

    public WarehouseInventory() {
    }

    // --------------------------------------------------------- Properties

    public Long getItemRrn() {
        return this.itemRrn;
    }

    public void setItemRrn(Long itemRrn) {
        this.itemRrn = itemRrn;
    }

    public Long getWarehouseRrn() {
        return this.warehouseRrn;
    }

    public void setWarehouseRrn(Long warehouseRrn) {
        this.warehouseRrn = warehouseRrn;
    }

    public String getWarehouseId() {
        return this.warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Double getOpeningBalance() {
        return this.openingBalance;
    }

    public void setOpeningBalance(Double openingBalance) {
        this.openingBalance = openingBalance;
    }

    public Double getQuanity() {

        double _double = receiptQty.doubleValue() + adjustQty.doubleValue() - issueQty.doubleValue();

        return new Double(_double);
    }

    public void setQuanity(Double quanity) {
        this.quanity = quanity;
    }

    public Double getReceiptQty() {
        return this.receiptQty;
    }

    public void setReceiptQty(Double receiptQty) {
        this.receiptQty = receiptQty;
    }

    public Double getIssueQty() {
        return this.issueQty;
    }

    public void setIssueQty(Double issueQty) {
        this.issueQty = issueQty;
    }

    public Double getAdjustQty() {
        return this.adjustQty;
    }

    public void setAdjustQty(Double adjustQty) {
        this.adjustQty = adjustQty;
    }

    public Double getQuantityOfWarning() {
        return this.quantityOfWarning;
    }

    public void setQuantityOfWarning(Double quantityOfWarning) {
        this.quantityOfWarning = quantityOfWarning;
    }

    public String getWarningAlarmId() {
        return this.warningAlarmId;
    }

    public void setWarningAlarmId(String warningAlarmId) {
        this.warningAlarmId = warningAlarmId;
    }

}

/*
 * Modification Log Log No : Name : Modified Date: Description :
 */