summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fracture/invoice.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/fracture/invoice.py b/fracture/invoice.py
index c03b597..e23d257 100644
--- a/fracture/invoice.py
+++ b/fracture/invoice.py
@@ -366,9 +366,11 @@ class Invoice:
"type": self.type,
"id": self.format_id(),
"date": self.date.strftime("%Y-%m-%d"),
- "customer_id": self.customer.id,
- "customer_name": self.customer.name,
- "customer_address": self.customer.address,
+ "customer": {
+ "id": self.customer.id,
+ "name": self.customer.name,
+ "address": self.customer.address,
+ },
"notes": self.notes,
}
def to_json(self):