UNPKG

@rudymalhi/intacct-sdk

Version:

Sage Intacct SDK for JavaScript

33 lines 1.5 kB
"use strict"; /** * @module Intacct/SDK/Functions/CashManagement */ Object.defineProperty(exports, "__esModule", { value: true }); const AbstractChargeCardTransactionLine_1 = require("./AbstractChargeCardTransactionLine"); class ChargeCardTransactionLineCreate extends AbstractChargeCardTransactionLine_1.default { writeXml(xml) { xml.writeStartElement("ccpayitem"); if (this.accountLabel != null) { xml.writeElement("accountlabel", this.accountLabel, true); } else { xml.writeElement("glaccountno", this.glAccountNumber, true); } xml.writeElement("description", this.memo); xml.writeElement("paymentamount", this.transactionAmount, true); xml.writeElement("departmentid", this.departmentId); xml.writeElement("locationid", this.locationId); xml.writeElement("customerid", this.customerId); xml.writeElement("vendorid", this.vendorId); xml.writeElement("employeeid", this.employeeId); xml.writeElement("projectid", this.projectId); xml.writeElement("itemid", this.itemId); xml.writeElement("classid", this.classId); xml.writeElement("contractid", this.contractId); xml.writeElement("warehouseid", this.warehouseId); xml.writeCustomFieldsExplicit(this.customFields); xml.writeEndElement(); // ccpayitem } } exports.default = ChargeCardTransactionLineCreate; //# sourceMappingURL=ChargeCardTransactionLineCreate.js.map