Created
February 4, 2022 14:48
-
-
Save ngallazzi/bdaff772699d153551335a18af94f591 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 enrichInvoice(invoice: Invoice, author: String, timeStamp: LocalDateTime): Invoice { | |
return invoice.copy(printingAuthor = author, printTimeStamp = timeStamp) | |
} | |
fun main() { | |
var invoice = Utils.getRandomInvoice(this, resources.configuration.locale) | |
invoice = controller.enrichInvoice(invoice,"Nicola", LocalDateTime.now()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment