Last active
June 8, 2017 03:12
-
-
Save MarioAriasC/4b54ddf039b8306fefa089cb19513f6f 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
data class Item(val name: String, val price: Double, val discount: Double, val quantity: Double) | |
object ItemDao { | |
fun findItemsForInvoice(invoiceId: Int): List<Item> { | |
return listOf( | |
Item("Item A", 10.0, 0.0, 1.0), | |
Item("Item B", 100.0, 0.0, 1.0), | |
Item("Item C", 50.0, 10.0, 3.0), | |
Item("Item D", 45.0, 0.0, 1.5), | |
Item("Item E", 8.5, 5.0, 20.0), | |
Item("Item F", 5.0, 50.0, 1.0)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment