Class CashSaleDetail
problem_domain

public class CashSaleDetail
The detail class holds the association-level information. That is, a Sale is more than a list of products sold. This class can serve to store quantity of a specific product.
Author:
TogetherSoft
Stereotype:
mi-detail
persistent
See Also:  Node Documentation

Field Summary
private SaleDetail
private ProductDesc
product
This is the item being scanned in/sold.
private int
qty
This indicates how many of this item are being purchased.
private int
UOM
This would allow you to use units like: each, pounds, case.
Constructor Summary
Method Summary
BigDecimal
void
int
void
setQty(int aQty)
boolean
Field Detail
qty
private int qty
This indicates how many of this item are being purchased.
rdbLogicalType:
INTEGER

UOM
private int UOM = 0
This would allow you to use units like: each, pounds, case. Of course, you would have to have the intelligence on the product pricing side as well. We won't be using this .
rdbLogicalType:
INTEGER

product
private ProductDesc product
This is the item being scanned in/sold. This object holds all the pertinent details.
clientCardinality:
0..*
supplierCardinality:
1

attribute1
private SaleDetail attribute1
Constructor Detail
CashSaleDetail
public CashSaleDetail(ProductDesc prod)
Method Detail
calcTotal
public BigDecimal calcTotal()

verifyAvailability
public boolean verifyAvailability()

deductQty
public void deductQty()

getQty
public int getQty()

setQty
public void setQty(int aQty)

getProductDesc
public ProductDesc getProductDesc()