Skip to content

Instantly share code, notes, and snippets.

@ngallazzi
Created February 4, 2022 14:48
Show Gist options
  • Save ngallazzi/bdaff772699d153551335a18af94f591 to your computer and use it in GitHub Desktop.
Save ngallazzi/bdaff772699d153551335a18af94f591 to your computer and use it in GitHub Desktop.
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