public class Header extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
Header() |
Modifier and Type | Method and Description |
---|---|
void |
addLanguage(com.neovisionaries.i18n.LanguageCode language)
Adds the language.
|
Header |
addNote(Note... additionalNote)
Adds a invoice header note.
|
DocumentCode |
getCode()
Gets UNCL 1001 Document Name Code.
|
ZfDate |
getContractualDueDate()
Gets contractual due date of the invoice.
|
java.lang.String |
getInvoiceNumber()
Gets the invoice number.
|
ZfDate |
getIssued()
Gets the invoice issue date time.
|
java.util.List<com.neovisionaries.i18n.LanguageCode> |
getLanguages()
Gets the languages.
|
java.lang.String |
getName()
Gets the free text invoice name.
|
java.util.List<Note> |
getNotes()
Gets the invoice header notes.
|
boolean |
isCopy()
Checks if is copy.
|
Header |
setCode(DocumentCode code)
Sets the UNCL 1001 Document Name Code.
|
Header |
setContractualDueDate(ZfDate contractualDueDate)
Sets contractual due date of the invoice.
|
void |
setCopy(boolean copy)
Sets the copy.
|
Header |
setInvoiceNumber(java.lang.String invoiceNumber)
Sets the invoice number.
|
Header |
setIssued(ZfDate issued)
Sets the invoice issue date time.
|
Header |
setName(java.lang.String name)
Adds a free text invoice name.
|
public Header()
public void addLanguage(com.neovisionaries.i18n.LanguageCode language)
Adds the language.
language
- the languagepublic Header addNote(Note... additionalNote)
Adds a invoice header note.
note content:
Invoice like agreed on the telephone with Mr.X.
-
note subject code as UNCL 4451:
AAK
additionalNote
- the additional note@Basic @NotNull public DocumentCode getCode()
Gets UNCL 1001 Document Name Code.
380, 381, 383, 389, 261
@Extended public ZfDate getContractualDueDate()
Gets contractual due date of the invoice.
Remark: Should only be used, if the contractual due date is different to the payment due date (e.g. with SEPA credit transfers).
@Basic @NotBlank public java.lang.String getInvoiceNumber()
Gets the invoice number.
2012-12345
@Basic @NotNull public ZfDate getIssued()
Gets the invoice issue date time.
@Extended public java.util.List<com.neovisionaries.i18n.LanguageCode> getLanguages()
Gets the languages.
@Basic @NotBlank public java.lang.String getName()
Gets the free text invoice name.
invoice, credit advice, debit note, pro forma invoice
@Basic public java.util.List<Note> getNotes()
Gets the invoice header notes.
note content:
Invoice like agreed on the telephone with Mr.X.
-
note subject code as UNCL 4451:
AAK
public Header setCode(DocumentCode code)
Sets the UNCL 1001 Document Name Code.
380, 381, 383, 389, 261
code
- the new document name codepublic Header setContractualDueDate(ZfDate contractualDueDate)
Sets contractual due date of the invoice.
Remark: Should only be used, if the contractual due date is different to the payment due date (e.g. with SEPA credit transfers).
contractualDueDate
- the contractual due datepublic void setCopy(boolean copy)
Sets the copy.
copy
- the new copypublic Header setInvoiceNumber(java.lang.String invoiceNumber)
Sets the invoice number.
2012-12345
invoiceNumber
- the invoice numberpublic Header setIssued(ZfDate issued)
Sets the invoice issue date time.
issued
- the new issue date timeCopyright © 2014-2018 Konik.io. All Rights Reserved.