Last active
February 4, 2022 14:46
-
-
Save ngallazzi/bdf0d903f5f9d50b176f61d1cf1ceccf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun addAuthor(invoice: Invoice, author: String): Invoice { | |
return invoice.copy(printingAuthor = author) | |
} | |
fun addPrintTimeStamp(invoice: Invoice, timeStamp: LocalDateTime): Invoice { | |
return invoice.copy(printTimeStamp = timeStamp) | |
} | |
fun main() { | |
var invoice = Utils.getRandomInvoice(this, resources.configuration.locale) | |
invoice = controller.addAuthor(invoice, "Nicola") | |
invoice = controller.addPrintTimeStamp(invoice, LocalDateTime.now()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment