Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(InvoiceDetailView): correct attribute path for accessing customer… #24

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

MohmdFo
Copy link
Contributor

@MohmdFo MohmdFo commented Oct 29, 2024

… contact details in InvoiceDetailView

Fixed an error in get_context_data method within InvoiceDetailView in sage_invoice/views/invoice.py. The method previously attempted to access invoice.customer.contact["Contact Info"].get(...), but the contact attribute was incorrectly specified as contacts. Adjusted the attribute path to correctly access customer email and phone details, ensuring reliable data retrieval. Updated .gitignore to include paths related to invoice uploads for better file management. Bumped the project version in pyproject.toml to reflect these updates.

Closes #23

… contact details in InvoiceDetailView

Fixed an error in get_context_data method within InvoiceDetailView in sage_invoice/views/invoice.py. The method previously attempted to access invoice.customer.contact["Contact Info"].get(...), but the contact attribute was incorrectly specified as contacts. Adjusted the attribute path to correctly access customer email and phone details, ensuring reliable data retrieval.
Updated .gitignore to include paths related to invoice uploads for better file management.
Bumped the project version in pyproject.toml to reflect these updates.

Closes sageteamorg#23
@sepehr-akbarzadeh sepehr-akbarzadeh merged commit e756582 into sageteamorg:main Oct 29, 2024
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 'Invoice' object has no attribute 'contacts'
2 participants