UNPKG

@rudymalhi/intacct-sdk

Version:

Sage Intacct SDK for JavaScript

38 lines 1.72 kB
"use strict"; /** * @module Intacct/SDK/Functions/AccountsReceivable */ Object.defineProperty(exports, "__esModule", { value: true }); const AbstractArAdjustmentLine_1 = require("./AbstractArAdjustmentLine"); class ArAdjustmentLineCreate extends AbstractArAdjustmentLine_1.default { writeXml(xml) { xml.writeStartElement("lineitem"); if (this.accountLabel != null) { xml.writeElement("accountlabel", this.accountLabel, true); } else { xml.writeElement("glaccountno", this.glAccountNumber, true); } xml.writeElement("offsetglaccountno", this.offsetGlAccountNumber); xml.writeElement("amount", this.transactionAmount); xml.writeElement("allocationid", this.allocationId); xml.writeElement("memo", this.memo); xml.writeElement("locationid", this.locationId); xml.writeElement("departmentid", this.departmentId); xml.writeElement("key", this.key); xml.writeElement("totalpaid", this.totalPaid); xml.writeElement("totaldue", this.totalDue); xml.writeCustomFieldsExplicit(this.customFields); xml.writeElement("projectid", this.projectId); xml.writeElement("customerid", this.customerId); xml.writeElement("vendorid", this.vendorId); xml.writeElement("employeeid", this.employeeId); xml.writeElement("itemid", this.itemId); xml.writeElement("classid", this.classId); xml.writeElement("contractid", this.contractId); xml.writeElement("warehouseid", this.warehouseId); xml.writeEndElement(); // lineitem } } exports.default = ArAdjustmentLineCreate; //# sourceMappingURL=ArAdjustmentLineCreate.js.map