Generate JSON attachment to invoice e-mail
When generating an invoice e-mail, allow for an attachment of a JSON data set for an invoice.
Example JSON:
{
"from": { "name": "John Fitzpatrick", "address": "1101 N. Calvert St.", "city": "Baltimore, MD 21202", "country": "U.S.A" },
"invoice number": "INV-000023",
"balance due": 4173,
"bill to": { "company name": "Precision Solutions", "address": "16504 Levade Drive", "city": "Leesburg, VA 20176", "country": "U.S.A." },
"invoice date": "16 Apr 2015",
"terms": "Net 15",
"due date": "01 May 2015".
"items": [
{ "Task": "QBase / OMB 2013-2014 / 53.50H",
"Description": "Professional services for programming and testing.",
"Hours": 78,
"Rate": 53.5,
"Amount": 4173,
}
]
"subtotal": 4173,
"total": 4173,
"balance due": 4173
}