Skip to content

Commit

Permalink
chore: improve asset depr posting failure msg (#34661)
Browse files Browse the repository at this point in the history
* chore: improve asset depr posting error msg

* chore: add period

* chore: improve msg
  • Loading branch information
anandbaburajan committed Mar 30, 2023
1 parent a7a45fb commit d999dea
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions erpnext/assets/doctype/asset/depreciation.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,16 @@ def notify_depr_entry_posting_error(failed_asset_names):
asset_links = get_comma_separated_asset_links(failed_asset_names)

message = (
_("Hi,")
+ "<br>"
+ _("The following assets have failed to post depreciation entries: {0}").format(asset_links)
_("Hello,")
+ "<br><br>"
+ _("The following assets have failed to automatically post depreciation entries: {0}").format(
asset_links
)
+ "."
+ "<br><br>"
+ _(
"Please raise a support ticket and share this email, or forward this email to your development team so that they can find the issue in the developer console by manually creating the depreciation entry via the asset's depreciation schedule table."
)
)

frappe.sendmail(recipients=recipients, subject=subject, message=message)
Expand Down

0 comments on commit d999dea

Please sign in to comment.