Has anyone created a journal using a map reduce script before?
Or should this only be created using another script type such as a userevent script?
The use case is that the amounts for the journal are based on the results of a saved search.
The balancing amount needs to be calculated as the difference between the debits and credits returned from the saved search
b
battk
05/16/2024, 9:23 PM
journal entries can be created from a map/reduce scripts
battk
05/16/2024, 9:23 PM
amounts can be calculated from saved searches\
battk
05/16/2024, 9:24 PM
although usually plural if using map/reduce script, map/reduce scripts are designed to do things in bulk
e
Edgar Valdes
05/16/2024, 11:10 PM
If you are creating a single journal, maybe a scheduled script would fit better. Run the search in the script, do your logic, create the je.