From e76a130a75a933d526212da02396541365b9c80e Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 2 Dec 2024 04:08:29 +0100 Subject: [PATCH] Extracted InvoiceDetails --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index bb90bc9..e132efe 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,7 @@ fun create() { } private fun createInvoice() = Invoice( - invoiceNumber = "RE-00001", - invoicingDate = LocalDate.now(), + details = InvoiceDetails("RE-00001", LocalDate.now()), supplier = Party("codinux GmbH & Co. KG", "Fun Street 1", null, "12345", "Glückstadt"), 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