Extracted InvoiceDetails

This commit is contained in:
dankito 2024-12-02 04:08:29 +01:00
parent d8f707e5eb
commit e76a130a75
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ fun create() {
} }
private fun createInvoice() = Invoice( private fun createInvoice() = Invoice(
invoiceNumber = "RE-00001", details = InvoiceDetails("RE-00001", LocalDate.now()),
invoicingDate = LocalDate.now(),
supplier = Party("codinux GmbH & Co. KG", "Fun Street 1", null, "12345", "Glückstadt"), supplier = Party("codinux GmbH & Co. KG", "Fun Street 1", null, "12345", "Glückstadt"),
customer = Party("Abzock GmbH", "Ausbeutstr.", null, "12345", "Abzockhausen"), customer = Party("Abzock GmbH", "Ausbeutstr.", null, "12345", "Abzockhausen"),
items = listOf(InvoiceItem("Erbrachte Dienstleistungen", BigDecimal(170), "HUR", BigDecimal(105), BigDecimal(19))) // HUR = EN code for hour items = listOf(InvoiceItem("Erbrachte Dienstleistungen", BigDecimal(170), "HUR", BigDecimal(105), BigDecimal(19))) // HUR = EN code for hour