- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 31 of file CartItem.java.
◆ compareTo()
int org.turro.financials.cart.CartItem.compareTo |
( |
CartItem |
o | ) |
|
Definition at line 154 of file CartItem.java.
155 int result = CompareUtil.compare(
getOrder(), o.getOrder());
157 result = CompareUtil.compare(
isValid(), o.isValid());
160 result = CompareUtil.compare(
getProduct().getId(), o.getProduct().
getId());
◆ getAmount()
double org.turro.financials.cart.CartItem.getAmount |
( |
| ) |
|
◆ getConcept()
String org.turro.financials.cart.CartItem.getConcept |
( |
| ) |
|
◆ getOrder()
int org.turro.financials.cart.CartItem.getOrder |
( |
| ) |
|
◆ getPrice()
double org.turro.financials.cart.CartItem.getPrice |
( |
| ) |
|
◆ getProduct()
Product org.turro.financials.cart.CartItem.getProduct |
( |
| ) |
|
Definition at line 140 of file CartItem.java.
142 if(product ==
null || productId != product.
getId()) {
143 product =
new FinancialsPU().find(Product.class, productId);
◆ getProductId()
long org.turro.financials.cart.CartItem.getProductId |
( |
| ) |
|
◆ getQuantity()
double org.turro.financials.cart.CartItem.getQuantity |
( |
| ) |
|
◆ getTax()
double org.turro.financials.cart.CartItem.getTax |
( |
| ) |
|
◆ getTaxable()
Double org.turro.financials.cart.CartItem.getTaxable |
( |
| ) |
|
Definition at line 105 of file CartItem.java.
106 return new Round(price * quantity).decimals(2).value();
◆ getTaxAmount()
double org.turro.financials.cart.CartItem.getTaxAmount |
( |
| ) |
|
◆ isDeliveryItem()
boolean org.turro.financials.cart.CartItem.isDeliveryItem |
( |
| ) |
|
◆ isNeedsConcept()
boolean org.turro.financials.cart.CartItem.isNeedsConcept |
( |
| ) |
|
◆ isNeedsDelivery()
boolean org.turro.financials.cart.CartItem.isNeedsDelivery |
( |
| ) |
|
◆ isValid()
boolean org.turro.financials.cart.CartItem.isValid |
( |
| ) |
|
◆ makeValid()
void org.turro.financials.cart.CartItem.makeValid |
( |
| ) |
|
◆ setConcept()
void org.turro.financials.cart.CartItem.setConcept |
( |
String |
concept | ) |
|
◆ setDeliveryItem()
void org.turro.financials.cart.CartItem.setDeliveryItem |
( |
boolean |
deliveryItem | ) |
|
Definition at line 95 of file CartItem.java.
96 this.deliveryItem = deliveryItem;
◆ setOrder()
void org.turro.financials.cart.CartItem.setOrder |
( |
int |
order | ) |
|
◆ setPrice()
void org.turro.financials.cart.CartItem.setPrice |
( |
double |
price | ) |
|
◆ setProductId()
void org.turro.financials.cart.CartItem.setProductId |
( |
long |
productId | ) |
|
Definition at line 51 of file CartItem.java.
52 this.productId = productId;
◆ setQuantity()
void org.turro.financials.cart.CartItem.setQuantity |
( |
double |
quantity | ) |
|
Definition at line 59 of file CartItem.java.
60 this.quantity = Math.round(quantity);
◆ setTax()
void org.turro.financials.cart.CartItem.setTax |
( |
double |
tax | ) |
|
The documentation for this class was generated from the following file: