public class Bill extends Object implements RelevantNullChecker
| Modifier and Type | Class and Description |
|---|---|
static class |
Bill.TypeEnum
Type of document
|
| Constructor and Description |
|---|
Bill() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allNull()
Checks whether this resource has at least a single property with non
null
value within its tree, among those that has been included to be checked. |
Bill |
approved(Boolean approved) |
Bill |
billNumber(String billNumber) |
Bill |
createdDate(Date createdDate) |
Bill |
currency(String currency) |
Bill |
dateOfIssue(Date dateOfIssue) |
Bill |
description(String description) |
boolean |
equals(Object o) |
String |
getBillNumber()
Bill (receipt) number, or in case of incoming invoice an invoice number
|
Date |
getCreatedDate()
A date when bill record has been created.
|
String |
getCurrency()
The currency alphabetic code based on the ISO 4217.
|
Date |
getDateOfIssue()
The date when the cash register document has been issued.
|
String |
getDescription()
Bill name
|
Long |
getId()
The unique bill identification.
|
List<BillItem> |
getItems()
Get items
|
Date |
getModificationDate()
The date of the last modification of the bill resource values.
|
List<Scan> |
getScans()
The list of scans associated with this bill.
|
Supplier |
getSupplier()
Get supplier
|
Double |
getTotalPrice()
The total price as a sum of all checked in bill items and its amount including target rounding mode.
|
Bill.TypeEnum |
getType()
Type of document
|
int |
hashCode() |
Bill |
id(Long id) |
Boolean |
isApproved()
The indication whether the bill has been approved to be sent to accountant or not.
|
Bill |
items(List<BillItem> items) |
Bill |
modificationDate(Date modificationDate) |
Bill |
scans(List<Scan> scans) |
void |
setApproved(Boolean approved) |
void |
setBillNumber(String billNumber) |
void |
setCreatedDate(Date createdDate) |
void |
setCurrency(String currency) |
void |
setDateOfIssue(Date dateOfIssue) |
void |
setDescription(String description) |
void |
setId(Long id) |
void |
setItems(List<BillItem> items) |
void |
setModificationDate(Date modificationDate) |
void |
setScans(List<Scan> scans) |
void |
setSupplier(Supplier supplier) |
boolean |
setSupplierIf(Supplier supplier) |
void |
setTotalPrice(Double totalPrice) |
void |
setType(Bill.TypeEnum type) |
Bill |
supplier(Supplier supplier) |
String |
toString() |
Bill |
totalPrice(Double totalPrice) |
Bill |
type(Bill.TypeEnum type) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallNull, setIfNotAllNullpublic Boolean isApproved()
public void setApproved(Boolean approved)
public String getBillNumber()
public void setBillNumber(String billNumber)
public Date getCreatedDate()
public void setCreatedDate(Date createdDate)
public Date getDateOfIssue()
public void setDateOfIssue(Date dateOfIssue)
public Long getId()
public void setId(Long id)
public String getDescription()
public void setDescription(String description)
public Date getModificationDate()
public void setModificationDate(Date modificationDate)
public Supplier getSupplier()
public void setSupplier(Supplier supplier)
public Double getTotalPrice()
public void setTotalPrice(Double totalPrice)
public Bill type(Bill.TypeEnum type)
public Bill.TypeEnum getType()
public void setType(Bill.TypeEnum type)
public String getCurrency()
public void setCurrency(String currency)
public boolean setSupplierIf(Supplier supplier)
public boolean allNull()
RelevantNullCheckernull
value within its tree, among those that has been included to be checked.allNull in interface RelevantNullCheckertrue if at least a single property of this resource has a non null value,
otherwise falseCopyright © 2020. All rights reserved.