Guest User

Untitled

a guest
Jul 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def send {
  2. require(!sent_?, "invoice already sent")
  3. require(readyToSend_?, "recipient and items must be specified before sending")
  4. val now = new LocalDate
  5. record(InvoiceSent(id, sentDate = now, dueDate = now.plusDays(14)))
  6. }
Add Comment
Please, Sign In to add comment