UNPKG

@oracle/suitecloud-unit-testing

Version:

<p align="left"><a href="#"><img width="250" src="resources/netsuite_logo_simplified.png"></a></p>

69 lines (65 loc) 2.71 kB
define([], function () { /** * @protected * @constructor */ function MergeElementsTask() { /** * An array containing the record internal IDs of the revenue elements to process. * It is mandatory to specify a value for this field. * @name MergeElementsTask#elements * @type {Array<number> | Array<string>} */ this.elements = undefined; /** * The date on the new revenue arrangement. * Initial Value: today * @name MergeElementsTask#revenueArrangementDate * @type {date} */ this.revenueArrangementDate = undefined; /** * * When the accounting preference Enable Advanced Cost Amortization is on, this is the Contract cost acquisition expense account on the merged arrangement. * Initial Value: the account specified by the "Contract Acquisition Expense Account" accounting preference * @name MergeElementsTask#contractAcquisitionExpenseAccount * @type {number | string} */ this.contractAcquisitionExpenseAccount = undefined; /** * When Advanced Cost Amortization is enabled, holds the Contract Acquisition Deferred Expense Account to use when creating the new revenue arrangement. * Initial Value: the account specified by the "Contract Acquisition Deferred Expense Account" accounting preference * @name MergeElementsTask#contractAcquisitionDeferredExpenseAccount * @type {number | string} */ this.contractAcquisitionDeferredExpenseAccount = undefined; /** * When Advanced Cost Amortization is enabled, holds the Contract Cost Accrual date to use when creating the new revenue arrangement. * Initial Value: today * @name MergeElementsTask#contractCostAccrualDate * @type {date} */ this.contractCostAccrualDate = undefined; /** * Submits the task and returns an unique ID. * * @governance 20 units * * @returns {String} taskId * @throws {SuiteScriptError} FAILED_TO_SUBMIT_JOB_REQUEST_1 when task cannot be submitted for some reason */ this.submit = function () { }; /** * Returns the object type name (task.MergeElementsTask). * * @returns {string} */ this.toString = function () { }; /** * JSON.stringify() implementation. * * @returns {Object} */ this.toJSON = function () { }; } return new MergeElementsTask(); });