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
}
![](https://secure.gravatar.com/avatar/9f8525e564bd8e82eaaf5bb61e5f9a98?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)