From 24fcc3b19218e914520abe1a6c86db392c84f58c Mon Sep 17 00:00:00 2001 From: ARYAN-NIKNEZHAD Date: Wed, 30 Oct 2024 07:19:03 +0330 Subject: [PATCH] fix(resource): Update dehydrate method for contacts to get from customer Closes(#26) --- sage_invoice/resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sage_invoice/resource.py b/sage_invoice/resource.py index fd2b42d..9adbb28 100644 --- a/sage_invoice/resource.py +++ b/sage_invoice/resource.py @@ -292,4 +292,4 @@ def dehydrate_category(self, invoice): def dehydrate_contacts(self, invoice): """Export contacts JSON field.""" - return json.dumps(invoice.contacts) + return json.dumps(invoice.customer.contact)