forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[master] PROD-30: some enhancements to run custom tasks + template (2…
…600hz#6070) * move triggrable macros to core If other apps want to start their own tasks module and bind to triggerable they need access to these macros * add new type kazoo_month to indicate `{year, month}` term * adding description to ledgers summary for view For generating invoice we just only need description, date, account, and amount. So we can add this to view and instead of reading the whole doc just using view to retrieve the ledgers * add render options to kz_template * better logging in kz_template Logging template warnings and errors were sometimes crashes/no_working_properly silently. Also it seems line calculation was off by 1. * update summary_by_account to use add period start and doc id to compound key So we can properly using start/end key in couchdb without worrying about repeating start keys. * add from_list_recursive/2 so we don't convert list to binary from_list_recursive tends to convert a list if all lists' elements are ascii or printable. Empty list is consider as printable too. This will cause list values in objects like `[{<<"key">>, []}]` be convert to binary which should not be! This commit adds options to hint the from_list_recursive that the object doesn't have any string (prinatable chars) in list and list should be considered as list! * add node name to lager log file
- Loading branch information
Showing
11 changed files
with
282 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.