Last active
February 4, 2022 13:41
-
-
Save ngallazzi/042267383e9170a2fe15a47431098913 to your computer and use it in GitHub Desktop.
Mastering refactoring - change function declaration, start code
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
private fun printInvoiceSheet(invoice: Invoice) { | |
printDetails(invoice) | |
printInvoiceItemsSection(invoice.items, 22.0) | |
} | |
private fun printDetails(invoice: Invoice) { | |
val invoiceHeader = "INVOICE N° ${invoice.number}, ${invoice.date}\n\n" | |
binding.tvInvoicePreview.text = invoiceHeader | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment