Modifier and Type | Field and Description |
---|---|
private long |
absoluteDiscount
Absolute discount.
|
private long |
brutto
Sale product price with tax.
|
private Date |
created
Created date.
|
private long |
delta
The amount of products.
|
private boolean |
deltaUnit |
private long |
discount
Sale product discount.
|
private long |
netto
Sale product price without tax.
|
private String |
productIdentifier
Product identifier.
|
private int |
relativeDiscount
Relative discount.
|
private long |
vanillaBrutto
Sum of brutto of all products.
|
private long |
vat
Value-added tax.
|
Constructor and Description |
---|
SaleProductInfo() |
@NotNull private String productIdentifier
@NotNull private boolean deltaUnit
@NotNull private long delta
@NotNull @Min(value=0L) private long absoluteDiscount
@NotNull @Min(value=0L) private int relativeDiscount
@NotNull @Min(value=0L) private long vat
@NotNull @Min(value=0L) private long netto
brutto
* 100000 / (10000 + TaxInfo.vat
))@NotNull @Min(value=0L) private long brutto
@NotNull @Min(value=0L) private long vanillaBrutto
@NotNull @Min(value=0L) private long discount
relativeDiscount
!= 0 ? vanillaBrutto
/ (1 + relativeDiscount
)
: absoluteDiscount
private Date created
Copyright © 2016. All rights reserved.