-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
feat: added ability to use custom html format for process statement of accounts #45746
base: version-14-hotfix
Are you sure you want to change the base?
feat: added ability to use custom html format for process statement of accounts #45746
Conversation
…of accounts documents.
|
||
process_soa_html = frappe.get_hooks("process_soa_html") | ||
# fetching custom print format of Process Statement of Accounts | ||
if process_soa_html.get(doc.report): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when not set, frappe.get_hooks
returns an empty list. Using get
on list will throw error. You'll have to handle non-existing hook case as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ruthra-kumar
Thankyou for pointing that out.
I have updated the code to check for non-existing hook as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please review my code? |
Added code to process_statement_of_accounts.py.
The added code accepts the path to a custom html format of General Ledger and Accounts Receivable through a hook.
This path to custom html format is then used to build pdf to either download or send email.