Interface InvoicesPort
- All Superinterfaces:
net.tangly.core.domain.Port<InvoicesRealm>
- All Known Implementing Classes:
InvoicesAdapter
Defines the import port for the bounded domain invoices. It is the primary port in the DDD terminology.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from interface net.tangly.core.domain.Port
PATTERN
-
Method Summary
Modifier and TypeMethodDescriptionvoid
exportInvoiceDocument
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Invoice invoice, boolean withQrCode, boolean withEN16931, boolean pdfa, boolean overwrite, Collection<net.tangly.core.Tag> tags) Exports an invoice to a file.void
exportInvoiceDocuments
(@NotNull net.tangly.core.domain.DomainAudit audit, boolean withQrCode, boolean withEN16931, boolean pdfa, boolean overwrite, LocalDate from, LocalDate to, Collection<net.tangly.core.Tag> tags) Exports all selected invoices as artifact to a file.invoiceViewFor
(@NotNull String id) Methods inherited from interface net.tangly.core.domain.Port
clearEntities, exportEntities, importConfiguration, importEntities, realm
-
Field Details
-
INVOICE
- See Also:
-
INVOICE_PATH
- See Also:
-
ARTICLES_TSV
- See Also:
-
JSON_EXT
- See Also:
-
-
Method Details
-
exportInvoiceDocument
void exportInvoiceDocument(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Invoice invoice, boolean withQrCode, boolean withEN16931, boolean pdfa, boolean overwrite, Collection<net.tangly.core.Tag> tags) Exports an invoice to a file. The method is responsible for infering the uri to the generated invoice document.implNote The asciidoc document is deleted upon creation of the pdf document.
- Parameters:
invoice
- invoice to be exportedwithQrCode
- flag if the Swiss QR cde should be added to the invoice documentwithEN16931
- flag if the EN16931 digital invoice should be added to the invoice documentpdfa
- flag if the pdf document should be generated in pdfa formatoverwrite
- flag if an existing document should be overwritten- See Also:
-
exportInvoiceDocuments
void exportInvoiceDocuments(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, boolean withQrCode, boolean withEN16931, boolean pdfa, boolean overwrite, LocalDate from, LocalDate to, Collection<net.tangly.core.Tag> tags) Exports all selected invoices as artifact to a file. The method is responsible for infering the uri to the generated invoice document.implNote The asciidoc document is deleted upon creation of the pdf document.
- Parameters:
withQrCode
- flag if the Swiss QR cde should be added to the invoice documentwithEN16931
- flag if the EN16931 digital invoice should be added to the invoice documentpdfa
- flag if the pdf document should be generated in pdfa formatoverwrite
- flag if an existing document should be overwrittenfrom
- optional start of the relevant time interval for the invoiced dateto
- optional end of the relevant time interval for the invoiced date
-
invoiceViewFor
-