UNPKG

@rudymalhi/intacct-sdk

Version:

Sage Intacct SDK for JavaScript

31 lines 1.25 kB
"use strict"; /** * @module Intacct/SDK/Functions/Company */ Object.defineProperty(exports, "__esModule", { value: true }); const AbstractDepartment_1 = require("./AbstractDepartment"); class DepartmentUpdate extends AbstractDepartment_1.default { writeXml(xml) { xml.writeStartElement("function"); xml.writeAttribute("controlid", this.controlId, true); xml.writeStartElement("update"); xml.writeStartElement("DEPARTMENT"); xml.writeElement("DEPARTMENTID", this.departmentId, true); xml.writeElement("TITLE", this.departmentName); xml.writeElement("PARENTID", this.parentDepartmentId); xml.writeElement("SUPERVISORID", this.managerEmployeeId); xml.writeElement("CUSTTITLE", this.departmentTitle); if (this.active === true) { xml.writeElement("STATUS", "active"); } else if (this.active === false) { xml.writeElement("STATUS", "inactive"); } xml.writeCustomFieldsImplicit(this.customFields); xml.writeEndElement(); // DEPARTMENT xml.writeEndElement(); // update xml.writeEndElement(); // function } } exports.default = DepartmentUpdate; //# sourceMappingURL=DepartmentUpdate.js.map