Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def send {
- require(!sent_?, "invoice already sent")
- require(readyToSend_?, "recipient and items must be specified before sending")
- val now = new LocalDate
- record(InvoiceSent(id, sentDate = now, dueDate = now.plusDays(14)))
- }
Add Comment
Please, Sign In to add comment