Skip to content

Commit

Permalink
Merge pull request #27 from ARYAN-NIKNEZHAD/bug/export-admin-invoice
Browse files Browse the repository at this point in the history
fix(resource): Update dehydrate method for contacts to get from customer
  • Loading branch information
sepehr-akbarzadeh authored Dec 5, 2024
2 parents 8ced905 + 24fcc3b commit 0bcae33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sage_invoice/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 0bcae33

Please sign in to comment.