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:
Musician's name and address
Bank details
Date of issue (defaults to current day)
Required Information:
Line items:
Date(s) of gig(s)
Fee per gig
Notes (optional)
Due date (defaults to one month after date of invoice)
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:
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