Enum Class ArticleCode
- All Implemented Interfaces:
Serializable
,Comparable<ArticleCode>
,Constable
,net.tangly.core.codes.Code
Defines the product categories we offer in our shop. Categories are handled differently in invoices and accounting. For example, expenses are added at the end of an invoice and
do not carry any VAT tax because VAT was already paid when buying the expense related item like a transportation ticket.
- work is a regular product code for services
- material is a regular product code for goods
- guaranty is a service performed under guaranty and should not be invoiced to the customer
- licenses is a bought software product invoiced to the customer
- expenses are travel expenses invoiced to the customer one to one without additional VAT
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptioncode()
boolean
enabled()
int
id()
static ArticleCode
Returns the enum constant of this class with the specified name.static ArticleCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
work
-
material
-
guaranty
-
licenses
-
expenses
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
id
public int id()- Specified by:
id
in interfacenet.tangly.core.codes.Code
-
code
- Specified by:
code
in interfacenet.tangly.core.codes.Code
-
enabled
public boolean enabled()- Specified by:
enabled
in interfacenet.tangly.core.codes.Code
-