FiddlersCode / leopold

A virtual agent for my violin playing!
1 stars 0 forks source link

Build Invoice Generator #84

Closed FiddlersCode closed 4 years ago

FiddlersCode commented 4 years ago

Acceptance Criteria:

Given a date to generate the invoice And information about the gigs being billed Then a PDF invoice should be generated

Given a date to generate the invoice And incomplete information being passed to the InvoiceGenerator The InvoiceGenerator should indicate which information is missing.

Template information:

Required Information:

  1. Line items:
    • Date(s) of gig(s)
    • Fee per gig
    • Notes (optional)
  2. Due date (defaults to one month after date of invoice)
  3. Name and address of payer
  4. Total owed

Testing strategy: https://spin.atomicobject.com/2018/02/07/pdf-snapshot-testing-node/ https://itnext.io/compare-pdf-standalone-pdf-file-comparison-node-module-33222cace70f https://www.npmjs.com/package/compare-pdf