- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 27 of file CartTaxable.java.
◆ CartTaxable()
org.turro.financials.cart.CartTaxable.CartTaxable |
( |
Double |
perCent, |
|
|
Double |
tax |
|
) |
| |
◆ add()
void org.turro.financials.cart.CartTaxable.add |
( |
Double |
taxValue, |
|
|
Double |
amount, |
|
|
Double |
taxable |
|
) |
| |
Definition at line 39 of file CartTaxable.java.
40 this.taxValue += taxValue;
41 this.amount += amount;
42 this.taxable += taxable;
◆ compareTo()
int org.turro.financials.cart.CartTaxable.compareTo |
( |
CartTaxable |
o | ) |
|
◆ equals()
boolean org.turro.financials.cart.CartTaxable.equals |
( |
Object |
obj | ) |
|
Definition at line 88 of file CartTaxable.java.
92 if (getClass() != obj.getClass()) {
96 if (this.perCent != other.perCent && (
this.perCent ==
null || !
this.perCent.equals(other.perCent))) {
CartTaxable(Double perCent, Double tax)
◆ getAmount()
Double org.turro.financials.cart.CartTaxable.getAmount |
( |
| ) |
|
◆ getDiscount()
Double org.turro.financials.cart.CartTaxable.getDiscount |
( |
| ) |
|
Definition at line 53 of file CartTaxable.java.
54 return new Round(amount - taxable).decimals(2).value();
◆ getTax()
Double org.turro.financials.cart.CartTaxable.getTax |
( |
| ) |
|
◆ getTaxable()
Double org.turro.financials.cart.CartTaxable.getTaxable |
( |
| ) |
|
◆ getTaxAmount()
Double org.turro.financials.cart.CartTaxable.getTaxAmount |
( |
| ) |
|
◆ getTotal()
Double org.turro.financials.cart.CartTaxable.getTotal |
( |
| ) |
|
◆ hashCode()
int org.turro.financials.cart.CartTaxable.hashCode |
( |
| ) |
|
Definition at line 81 of file CartTaxable.java.
83 hash = 23 * hash + (this.perCent !=
null ? this.perCent.hashCode() : 0);
◆ isEmpty()
boolean org.turro.financials.cart.CartTaxable.isEmpty |
( |
| ) |
|
Definition at line 76 of file CartTaxable.java.
77 return amount ==
null || amount == 0 || amount.isNaN();
◆ isPerCent()
boolean org.turro.financials.cart.CartTaxable.isPerCent |
( |
Double |
perCent | ) |
|
The documentation for this class was generated from the following file: