ExpenseLine - ExpenseLine (GlideRecord source, Number amount, String description)

Constructor for ExpenseLine object.

Table 1. Parameters
Name Type Description
source GlideRecord GlideRecord identifying the source of the expense
amount Number Decimal number identifying the amount of the expense
description String (Optional) Description of the expense.
Table 2. Returns
Type Description
ExpenseLine object The ExpenseLine object just instantiated.

//get some random CI to be used as an expense source
        var ci = new GlideRecord("cmdb_ci_server");
        ci.query();
        ci.next();
        
        //create expense line
        var exp = new ExpenseLine(ci, 234.56, "Test expense line");