Class CashSaleDetail
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 |
|
Field Summary |
|
|
|
productThis is the item being scanned in/sold. |
|
qtyThis indicates how many of this item are being purchased. |
|
UOMThis would allow you to use units like: each, pounds, case. |
Field Detail
qty
private int qty
This indicates how many of this item are being purchased.
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 .
product
This is the item being scanned in/sold. This object holds all the pertinent details.
clientCardinality: |
0..* |
supplierCardinality: |
1 |
attribute1
Constructor Detail
CashSaleDetail
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