imports/vx/both/code/util.js
/**
     * Format the report description including the next execution date.
     *
     * @param {string} reportType Report type.
     * @param {string} user User record.
     */
Format the report description including the next execution date.
@param {string} reportType Report type.
@param {string} user User record.
Format the report description including the next execution date . @param { string } reportType Report type . @param { string } user User record .
formatReportDescription(reportType, user) {
        let description = Util.i18n("codes.reportType." + reportType)
        let nextDate = Util.fetchReportPreferenceValue(user, reportType, "nextDate")
        if (nextDate) {
            let nextMoment = moment.tz(nextDate, user.profile.timezone)
            description += " " + Util.i18n("profile.format_next_date", { nextDate: nextMoment.format("D MMM YYYY h:mm A") } )
        }
        return description
    }
formatReportDescription ( reportType , user ) { let description = Util . i18n ( "codes.reportType." + reportType ) let nextDate = Util . fetchReportPreferenceValue ( user , reportType , "nextDate" ) if ( nextDate ) { let nextMoment = moment . tz ( nextDate , user . profile . timezone ) description += " " + Util . i18n ( "profile.format_next_date" , { nextDate : nextMoment . format ( "D MMM YYYY h:mm A" ) } ) } return description }
Format the report description including the next execution date.
Format the report description including the next execution date .