Skip to content

Instantly share code, notes, and snippets.

@MarioAriasC
Last active June 8, 2017 03:12
Show Gist options
  • Save MarioAriasC/4b54ddf039b8306fefa089cb19513f6f to your computer and use it in GitHub Desktop.
Save MarioAriasC/4b54ddf039b8306fefa089cb19513f6f to your computer and use it in GitHub Desktop.
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