public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("GLBATCH"); xml.WriteElement("JOURNAL", JournalSymbol, true); xml.WriteElement("BATCH_DATE", PostingDate, IaXmlWriter.IntacctDateFormat, true); xml.WriteElement("REVERSEDATE", ReverseDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("BATCH_TITLE", Description, true); xml.WriteElement("HISTORY_COMMENT", HistoryComment); xml.WriteElement("REFERENCENO", ReferenceNumber); xml.WriteElement("SUPDOCID", AttachmentsId); xml.WriteElement("STATE", Action); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteStartElement("ENTRIES"); if (Lines.Count > 0) { foreach (StatisticalJournalEntryLineCreate Line in Lines) { Line.WriteXml(ref xml); } } xml.WriteEndElement(); //ENTRIES xml.WriteEndElement(); //GLBATCH xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("TIMESHEETENTRY"); xml.WriteElement("ENTRYDATE", EntryDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("QTY", Quantity, true); xml.WriteElement("DESCRIPTION", Description); xml.WriteElement("NOTES", Notes); xml.WriteElement("TASKKEY", TaskRecordNo); xml.WriteElement("TIMETYPE", TimeTypeName); xml.WriteElement("BILLABLE", Billable); xml.WriteElement("EXTBILLRATE", OverrideBillingRate); xml.WriteElement("EXTCOSTRATE", OverrideLaborCostRate); xml.WriteElement("DEPARTMENTID", DepartmentId); xml.WriteElement("LOCATIONID", LocationId); xml.WriteElement("PROJECTID", ProjectId); xml.WriteElement("CUSTOMERID", CustomerId); xml.WriteElement("VENDORID", VendorId); xml.WriteElement("ITEMID", ItemId); xml.WriteElement("CLASSID", ClassId); xml.WriteElement("CONTRACTID", ContractId); xml.WriteElement("WAREHOUSEID", WarehouseId); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //TIMESHEETENTRY }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update"); xml.WriteStartElement("CLASS"); xml.WriteElement("CLASSID", ClassId, true); xml.WriteElement("NAME", ClassName); xml.WriteElement("DESCRIPTION", Description); xml.WriteElement("PARENTID", ParentClassId); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //CLASS xml.WriteEndElement(); //update xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("TIMESHEET"); xml.WriteElement("EMPLOYEEID", EmployeeId, true); xml.WriteElement("BEGINDATE", BeginDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("DESCRIPTION", Description); xml.WriteElement("SUPDOCID", AttachmentsId); xml.WriteElement("STATE", Action); xml.WriteStartElement("TIMESHEETENTRIES"); if (Entries.Count > 0) { foreach (TimesheetEntryCreate entry in Entries) { entry.WriteXml(ref xml); } } xml.WriteEndElement(); //TIMESHEETENTRIES xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //TIMESHEET xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("USERINFO"); xml.WriteElement("LOGINID", UserId, true); xml.WriteElement("USERTYPE", UserType, true); xml.WriteStartElement("CONTACTINFO"); xml.WriteElement("LASTNAME", LastName); xml.WriteElement("FIRSTNAME", FirstName); xml.WriteElement("EMAIL1", PrimaryEmailAddress); xml.WriteElement("CONTACTNAME", ContactName); xml.WriteEndElement(); //CONTACTINFO xml.WriteElement("DESCRIPTION", UserName); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteElement("LOGINDISABLED", WebServicesOnly); xml.WriteElement("SSO_ENABLED", SsoEnabled); xml.WriteElement("SSO_FEDERATED_ID", SsoFederatedId); if (RestrictedEntities.Count > 0) { foreach (string restrictedEntity in RestrictedEntities) { xml.WriteStartElement("USERLOCATIONS"); xml.WriteElement("LOCATIONID", restrictedEntity); xml.WriteEndElement(); //USERLOCATIONS } } if (RestrictedDepartments.Count > 0) { foreach (string restrictedDepartment in RestrictedDepartments) { xml.WriteStartElement("USERDEPARTMENTS"); xml.WriteElement("DEPARTMENTID", restrictedDepartment); xml.WriteEndElement(); //USERDEPARTMENTS } } xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //USERINFO xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update"); xml.WriteStartElement("DEPARTMENT"); xml.WriteElement("DEPARTMENTID", DepartmentId, true); xml.WriteElement("TITLE", DepartmentName); xml.WriteElement("PARENTID", ParentDepartmentId); xml.WriteElement("SUPERVISORID", ManagerEmployeeId); xml.WriteElement("CUSTTITLE", DepartmentTitle); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //DEPARTMENT xml.WriteEndElement(); //update xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update"); xml.WriteStartElement("WAREHOUSE"); xml.WriteElement("RECORDNO", RecordNo); xml.WriteElement("WAREHOUSEID", WarehouseId); xml.WriteElement("NAME", WarehouseName); if (!string.IsNullOrWhiteSpace(LocationId)) { xml.WriteStartElement("LOC"); xml.WriteElement("LOCATIONID", LocationId); xml.WriteEndElement(); // LOC } xml.WriteElement("MANAGERID", ManagerEmployeeId); xml.WriteElement("PARENTID", ParentWarehouseId); if (!string.IsNullOrWhiteSpace(WarehouseContactName)) { xml.WriteStartElement("CONTACTINFO"); xml.WriteElement("CONTACTNAME", WarehouseContactName); xml.WriteEndElement(); //CONTACTINFO } if (!string.IsNullOrWhiteSpace(ShipToContactName)) { xml.WriteStartElement("SHIPTO"); xml.WriteElement("CONTACTNAME", ShipToContactName); xml.WriteEndElement(); //SHIPTO } xml.WriteElement("USEDINGL", UsedInGeneralLedger); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //WAREHOUSE xml.WriteEndElement(); //update xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update"); xml.WriteStartElement("CONTRACTDETAIL"); xml.WriteElement("RECORDNO", RecordNo, true); xml.WriteElement("ITEMID", ItemId); xml.WriteElement("BEGINDATE", BeginDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("ENDDATE", EndDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("ITEMDESC", ItemDescription); xml.WriteElement("RENEWAL", Renewal); xml.WriteElement("EXCH_RATE_DATE", ExchangeRateDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("EXCHANGE_RATE", ExchangeRateValue); xml.WriteElement("BILLINGMETHOD", BillingMethod); xml.WriteElement("BILLINGOPTIONS", FixedPriceFrequency); xml.WriteElement("QUANTITY", FixedPriceQuantity); xml.WriteElement("PRICE", FixedPriceRate); xml.WriteElement("MULTIPLIER", FixedPriceMultiplier); xml.WriteElement("DISCOUNTPERCENT", FixedPriceDiscountPercent); xml.WriteElement("BILLINGTEMPLATE", BillingTemplate); xml.WriteElement("BILLINGSTARTDATE", BillingStartDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("BILLINGENDDATE", BillingEndDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("FLATAMOUNT", FlatFixedAmount); xml.WriteElement("REVENUETEMPLATENAME", Revenue1Template); xml.WriteElement("REVENUESTARTDATE", Revenue1StartDate); xml.WriteElement("REVENUEENDDATE", Revenue1EndDate); xml.WriteElement("REVENUE2TEMPLATENAME", Revenue2Template); xml.WriteElement("REVENUE2STARTDATE", Revenue2StartDate); xml.WriteElement("REVENUE2ENDDATE", Revenue2EndDate); xml.WriteElement("SHIPTOCONTACTNAME", ShipToContactName); xml.WriteElement("LOCATIONID", LocationId); xml.WriteElement("DEPARTMENTID", DepartmentId); xml.WriteElement("PROJECTID", ProjectId); xml.WriteElement("VENDORID", VendorId); xml.WriteElement("EMPLOYEEID", EmployeeId); xml.WriteElement("CLASSID", ClassId); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //CONTRACTDETAIL xml.WriteEndElement(); //update xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("CONTRACT"); xml.WriteElement("CONTRACTID", ContractId); xml.WriteElement("CUSTOMERID", CustomerId, true); xml.WriteElement("NAME", ContractName, true); xml.WriteElement("BILLTOCONTACTNAME", BillToContactName); xml.WriteElement("DESCRIPTION", Description); xml.WriteElement("SHIPTOCONTACTNAME", ShipToContactName); xml.WriteElement("BEGINDATE", BeginDate, IaXmlWriter.IntacctDateFormat, true); xml.WriteElement("ENDDATE", EndDate, IaXmlWriter.IntacctDateFormat, true); xml.WriteElement("BILLINGFREQUENCY", BillingFrequency, true); xml.WriteElement("TERMNAME", PaymentTerm, true); xml.WriteElement("PRCLIST", BillingPriceList); xml.WriteElement("MEAPRCLIST", FairValuePriceList); xml.WriteElement("SUPDOCID", AttachmentsId); xml.WriteElement("LOCATIONID", LocationId); xml.WriteElement("DEPARTMENTID", DepartmentId); xml.WriteElement("PROJECTID", ProjectId); xml.WriteElement("VENDORID", VendorId); xml.WriteElement("EMPLOYEEID", EmployeeId); xml.WriteElement("CLASSID", ClassId); xml.WriteElement("CURRENCY", TransactionCurrency); xml.WriteElement("EXCHRATETYPE", ExchangeRateType); xml.WriteElement("RENEWAL", Renewal); if (Renewal == true) { xml.WriteElement("RENEWALMACRO", RenewalTemplate); xml.WriteElement("RENEWTERMLENGTH", RenewalTermLength); xml.WriteElement("RENEWTERMPERIOD", RenewalTermPeriod); } xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //CONTRACT xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("GLENTRY"); xml.WriteElement("DOCUMENT", DocumentNumber); xml.WriteElement("ACCOUNTNO", StatAccountNumber, true); if (Amount < 0) { xml.WriteElement("TR_TYPE", "-1"); // Decrease xml.WriteElement("TRX_AMOUNT", Math.Abs(Amount.Value), true); } else { xml.WriteElement("TR_TYPE", "1"); // Increase xml.WriteElement("TRX_AMOUNT", Amount, true); } if (!string.IsNullOrWhiteSpace(AllocationId)) { xml.WriteElement("ALLOCATION", AllocationId); if (AllocationId == CustomAllocationId) { foreach (CustomAllocationSplit split in CustomAllocationSplits) { split.WriteXml(ref xml); } } } else { xml.WriteElement("LOCATION", LocationId); xml.WriteElement("DEPARTMENT", DepartmentId); xml.WriteElement("PROJECTID", ProjectId); xml.WriteElement("CUSTOMERID", CustomerId); xml.WriteElement("VENDORID", VendorId); xml.WriteElement("EMPLOYEEID", EmployeeId); xml.WriteElement("ITEMID", ItemId); xml.WriteElement("CLASSID", ClassId); xml.WriteElement("CONTRACTID", ContractId); xml.WriteElement("WAREHOUSEID", WarehouseId); } xml.WriteElement("DESCRIPTION", Memo); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //GLENTRY }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("LOCATION"); xml.WriteElement("LOCATIONID", LocationId, true); xml.WriteElement("NAME", LocationName, true); xml.WriteElement("PARENTID", ParentLocationId); xml.WriteElement("SUPERVISORID", ManagerEmployeeId); if (!string.IsNullOrWhiteSpace(LocationContactName)) { xml.WriteStartElement("CONTACTINFO"); xml.WriteElement("CONTACTNAME", LocationContactName); xml.WriteEndElement(); //CONTACTINFO } if (!string.IsNullOrWhiteSpace(ShipToContactName)) { xml.WriteStartElement("SHIPTO"); xml.WriteElement("CONTACTNAME", ShipToContactName); xml.WriteEndElement(); //SHIPTO } xml.WriteElement("STARTDATE", StartDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("ENDDATE", EndDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("CUSTTITLE", LocationTitle); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //LOCATION xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("GLACCOUNT"); xml.WriteElement("ACCOUNTNO", AccountNo, true); xml.WriteElement("TITLE", Title, true); xml.WriteElement("ACCOUNTTYPE", AccountType, true); xml.WriteElement("NORMALBALANCE", NormalBalance, true); xml.WriteElement("CLOSINGTYPE", ClosingType, true); xml.WriteElement("CLOSINGACCOUNTNO", CloseIntoGlAccountNo); xml.WriteElement("CATEGORY", SystemCategory); xml.WriteElement("TAXCODE", TaxReturnCode); xml.WriteElement("MRCCODE", M3ReturnCode); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteElement("TAXABLE", Taxable); xml.WriteElement("REQUIREDEPT", RequireDepartment); xml.WriteElement("REQUIRELOC", RequireLocation); xml.WriteElement("REQUIREPROJECT", RequireProject); xml.WriteElement("REQUIRECUSTOMER", RequireCustomer); xml.WriteElement("REQUIREVENDOR", RequireVendor); xml.WriteElement("REQUIREEMPLOYEE", RequireEmployee); xml.WriteElement("REQUIREITEM", RequireItem); xml.WriteElement("REQUIRECLASS", RequireClass); xml.WriteElement("REQUIRECONTRACT", RequireContract); xml.WriteElement("REQUIREWAREHOUSE", RequireWarehouse); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //GLACCOUNT xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update"); xml.WriteStartElement("STATACCOUNT"); xml.WriteElement("ACCOUNTNO", AccountNo, true); xml.WriteElement("TITLE", Title); xml.WriteElement("ACCOUNTTYPE", ReportType); xml.WriteElement("CATEGORY", SystemCategory); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteElement("REQUIREDEPT", RequireDepartment); xml.WriteElement("REQUIRELOC", RequireLocation); xml.WriteElement("REQUIREPROJECT", RequireProject); xml.WriteElement("REQUIRECUSTOMER", RequireCustomer); xml.WriteElement("REQUIREVENDOR", RequireVendor); xml.WriteElement("REQUIREEMPLOYEE", RequireEmployee); xml.WriteElement("REQUIREITEM", RequireItem); xml.WriteElement("REQUIRECLASS", RequireClass); xml.WriteElement("REQUIRECONTRACT", RequireContract); xml.WriteElement("REQUIREWAREHOUSE", RequireWarehouse); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //STATACCOUNT xml.WriteEndElement(); //update xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update"); xml.WriteStartElement("TASK"); xml.WriteElement("RECORDNO", RecordNo, true); xml.WriteElement("NAME", TaskName); xml.WriteElement("PROJECTID", ProjectId); xml.WriteElement("PBEGINDATE", PlannedBeginDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("PENDDATE", PlannedEndDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("CLASSID", ClassId); xml.WriteElement("ITEMID", ItemId); xml.WriteElement("BILLABLE", Billable); xml.WriteElement("DESCRIPTION", Description); xml.WriteElement("ISMILESTONE", Milestone); xml.WriteElement("UTILIZED", Utilized); xml.WriteElement("PRIORITY", Priority); xml.WriteElement("TASKNO", WbsCode); xml.WriteElement("TASKSTATUS", TaskStatus); xml.WriteElement("TIMETYPENAME", TimeType); xml.WriteElement("PARENTKEY", ParentTaskRecordNo); xml.WriteElement("SUPDOCID", AttachmentsId); // xml.WriteElement("OBSPERCENTCOMPLETE", ObservedPercentCompleted); xml.WriteElement("BUDGETQTY", PlannedDuration); xml.WriteElement("ESTQTY", EstimatedDuration); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //TASK xml.WriteEndElement(); //update xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("GLENTRY"); xml.WriteElement("DOCUMENT", DocumentNumber); xml.WriteElement("ACCOUNTNO", GlAccountNumber, true); if (TransactionAmount < 0) { xml.WriteElement("TR_TYPE", "-1"); // Credit xml.WriteElement("TRX_AMOUNT", Math.Abs(TransactionAmount.Value), true); } else { xml.WriteElement("TR_TYPE", "1"); // Debit xml.WriteElement("TRX_AMOUNT", TransactionAmount, true); } xml.WriteElement("CURRENCY", TransactionCurrency); if (ExchangeRateDate.HasValue) { xml.WriteElement("EXCH_RATE_DATE", ExchangeRateDate, IaXmlWriter.IntacctDateFormat); } if (!String.IsNullOrWhiteSpace(ExchangeRateType)) { xml.WriteElement("EXCH_RATE_TYPE_ID", ExchangeRateType); } else if (ExchangeRateValue.HasValue) { xml.WriteElement("EXCHANGE_RATE", ExchangeRateValue); } else if (!String.IsNullOrWhiteSpace(TransactionCurrency)) { xml.WriteElement("EXCH_RATE_TYPE_ID", ExchangeRateType, true); } if (!String.IsNullOrWhiteSpace(AllocationId)) { xml.WriteElement("ALLOCATION", AllocationId); if (AllocationId == CustomAllocationId) { foreach (CustomAllocationSplit Split in CustomAllocationSplits) { Split.WriteXml(ref xml); } } } else { xml.WriteElement("LOCATION", LocationId); xml.WriteElement("DEPARTMENT", DepartmentId); xml.WriteElement("PROJECTID", ProjectId); xml.WriteElement("CUSTOMERID", CustomerId); xml.WriteElement("VENDORID", VendorId); xml.WriteElement("EMPLOYEEID", EmployeeId); xml.WriteElement("ITEMID", ItemId); xml.WriteElement("CLASSID", ClassId); xml.WriteElement("CONTRACTID", ContractId); xml.WriteElement("WAREHOUSEID", WarehouseId); } xml.WriteElement("DESCRIPTION", Memo); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //GLENTRY }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update"); xml.WriteStartElement("EMPLOYEE"); xml.WriteElement("EMPLOYEEID", EmployeeId, true); if (!string.IsNullOrWhiteSpace(ContactName)) { xml.WriteStartElement("PERSONALINFO"); xml.WriteElement("CONTACTNAME", ContactName, true); xml.WriteEndElement(); //PERSONALINFO } xml.WriteElement("STARTDATE", StartDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("TITLE", Title); xml.WriteElement("SSN", Ssn); xml.WriteElement("EMPLOYEETYPE", EmployeeType); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteElement("BIRTHDATE", BirthDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("ENDDATE", EndDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("TERMINATIONTYPE", TerminationType); xml.WriteElement("SUPERVISORID", ManagerEmployeeId); xml.WriteElement("GENDER", Gender); xml.WriteElement("DEPARTMENTID", DepartmentId); xml.WriteElement("LOCATIONID", LocationId); xml.WriteElement("CLASSID", ClassId); xml.WriteElement("CURRENCY", DefaultCurrency); xml.WriteElement("EARNINGTYPENAME", EarningTypeName); xml.WriteElement("POSTACTUALCOST", PostActualCost); xml.WriteElement("NAME1099", Form1099Name); xml.WriteElement("FORM1099TYPE", Form1099Type); xml.WriteElement("FORM1099BOX", Form1099Box); xml.WriteElement("SUPDOCFOLDERNAME", AttachmentFolderName); xml.WriteElement("PAYMETHODKEY", PreferredPaymentMethod); xml.WriteElement("MERGEPAYMENTREQ", MergePaymentRequests); xml.WriteElement("PAYMENTNOTIFY", SendAutomaticPaymentNotification); xml.WriteElement("ACHENABLED", AchEnabled); xml.WriteElement("ACHBANKROUTINGNUMBER", AchBankRoutingNo); xml.WriteElement("ACHACCOUNTNUMBER", AchBankAccountNo); xml.WriteElement("ACHACCOUNTTYPE", AchBankAccountType); xml.WriteElement("ACHREMITTANCETYPE", AchBankAccountClass); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //EMPLOYEE xml.WriteEndElement(); //update xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update"); xml.WriteStartElement("VENDOR"); xml.WriteElement("VENDORID", VendorId, true); xml.WriteElement("NAME", VendorName); xml.WriteStartElement("DISPLAYCONTACT"); xml.WriteElement("PRINTAS", PrintAs); xml.WriteElement("COMPANYNAME", CompanyName); xml.WriteElement("TAXABLE", Taxable); // TAXID passed in with VENDOR element below xml.WriteElement("TAXGROUP", ContactTaxGroupName); xml.WriteElement("PREFIX", Prefix); xml.WriteElement("FIRSTNAME", FirstName); xml.WriteElement("LASTNAME", LastName); xml.WriteElement("INITIAL", MiddleName); xml.WriteElement("PHONE1", PrimaryPhoneNo); xml.WriteElement("PHONE2", SecondaryPhoneNo); xml.WriteElement("CELLPHONE", CellularPhoneNo); xml.WriteElement("PAGER", PagerNo); xml.WriteElement("FAX", FaxNo); xml.WriteElement("EMAIL1", PrimaryEmailAddress); xml.WriteElement("EMAIL2", SecondaryEmailAddress); xml.WriteElement("URL1", PrimaryUrl); xml.WriteElement("URL2", SecondaryUrl); WriteXmlMailAddress(ref xml); xml.WriteEndElement(); //DISPLAYCONTACT xml.WriteElement("ONETIME", OneTime); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteElement("HIDEDISPLAYCONTACT", ExcludedFromContactList); xml.WriteElement("VENDTYPE", VendorTypeId); xml.WriteElement("PARENTID", ParentVendorId); xml.WriteElement("GLGROUP", GlGroupName); xml.WriteElement("TAXID", TaxId); xml.WriteElement("NAME1099", Form1099Name); xml.WriteElement("FORM1099TYPE", Form1099Type); xml.WriteElement("FORM1099BOX", Form1099Box); xml.WriteElement("SUPDOCID", AttachmentsId); xml.WriteElement("APACCOUNT", DefaultExpenseGlAccountNo); xml.WriteElement("CREDITLIMIT", CreditLimit); xml.WriteElement("ONHOLD", OnHold); xml.WriteElement("DONOTCUTCHECK", DoNotPay); xml.WriteElement("COMMENTS", Comments); xml.WriteElement("CURRENCY", DefaultCurrency); if (!string.IsNullOrWhiteSpace(PrimaryContactName)) { xml.WriteStartElement("CONTACTINFO"); xml.WriteElement("CONTACTNAME", PrimaryContactName); xml.WriteEndElement(); //CONTACTINFO } if (!string.IsNullOrWhiteSpace(PayToContactName)) { xml.WriteStartElement("PAYTO"); xml.WriteElement("CONTACTNAME", PayToContactName); xml.WriteEndElement(); //PAYTO } if (!string.IsNullOrWhiteSpace(ReturnToContactName)) { xml.WriteStartElement("RETURNTO"); xml.WriteElement("CONTACTNAME", ReturnToContactName); xml.WriteEndElement(); //RETURNTO } xml.WriteElement("PAYMETHODKEY", PreferredPaymentMethod); xml.WriteElement("MERGEPAYMENTREQ", MergePaymentRequests); xml.WriteElement("PAYMENTNOTIFY", SendAutomaticPaymentNotification); xml.WriteElement("BILLINGTYPE", VendorBillingType); // TODO: Default bill payment date xml.WriteElement("PAYMENTPRIORITY", PaymentPriority); xml.WriteElement("TERMNAME", PaymentTerm); xml.WriteElement("DISPLAYTERMDISCOUNT", TermDiscountDisplayedOnCheckStub); xml.WriteElement("ACHENABLED", AchEnabled); xml.WriteElement("ACHBANKROUTINGNUMBER", AchBankRoutingNo); xml.WriteElement("ACHACCOUNTNUMBER", AchBankAccountNo); xml.WriteElement("ACHACCOUNTTYPE", AchBankAccountType); xml.WriteElement("ACHREMITTANCETYPE", AchBankAccountClass); // TODO: Check delivery and ACH payment services fields xml.WriteElement("VENDORACCOUNTNO", VendorAccountNo); xml.WriteElement("DISPLAYACCTNOCHECK", LocationAssignedAccountNoDisplayedOnCheckStub); // TODO: Location assigned account numbers xml.WriteElement("OBJECTRESTRICTION", RestrictionType); if (RestrictedLocations.Count > 0) { xml.WriteElement("RESTRICTEDLOCATIONS", string.Join(IaXmlWriter.IntacctMultiSelectGlue, RestrictedLocations)); } if (RestrictedDepartments.Count > 0) { xml.WriteElement("RESTRICTEDDEPARTMENTS", string.Join(IaXmlWriter.IntacctMultiSelectGlue, RestrictedDepartments)); } xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //VENDOR xml.WriteEndElement(); //update xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("CUSTOMER"); xml.WriteElement("CUSTOMERID", CustomerId); xml.WriteElement("NAME", CustomerName, true); xml.WriteStartElement("DISPLAYCONTACT"); // CONTACTNAME is auto created as '[CustomerName](C[CustomerID])' xml.WriteElement("PRINTAS", string.IsNullOrWhiteSpace(PrintAs) ? CustomerName : PrintAs, true); xml.WriteElement("COMPANYNAME", CompanyName); xml.WriteElement("TAXABLE", Taxable); // TAXID passed in with element below xml.WriteElement("TAXGROUP", ContactTaxGroupName); xml.WriteElement("PREFIX", Prefix); xml.WriteElement("FIRSTNAME", FirstName); xml.WriteElement("LASTNAME", LastName); xml.WriteElement("INITIAL", MiddleName); xml.WriteElement("PHONE1", PrimaryPhoneNo); xml.WriteElement("PHONE2", SecondaryPhoneNo); xml.WriteElement("CELLPHONE", CellularPhoneNo); xml.WriteElement("PAGER", PagerNo); xml.WriteElement("FAX", FaxNo); xml.WriteElement("EMAIL1", PrimaryEmailAddress); xml.WriteElement("EMAIL2", SecondaryEmailAddress); xml.WriteElement("URL1", PrimaryUrl); xml.WriteElement("URL2", SecondaryUrl); WriteXmlMailAddress(ref xml); xml.WriteEndElement(); //DISPLAYCONTACT xml.WriteElement("ONETIME", OneTime); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteElement("HIDEDISPLAYCONTACT", ExcludedFromContactList); xml.WriteElement("CUSTTYPE", CustomerTypeId); xml.WriteElement("CUSTREPID", SalesRepEmployeeId); xml.WriteElement("PARENTID", ParentCustomerId); xml.WriteElement("GLGROUP", GlGroupName); xml.WriteElement("TERRITORYID", TerritoryId); xml.WriteElement("SUPDOCID", AttachmentsId); xml.WriteElement("TERMNAME", PaymentTerm); xml.WriteElement("OFFSETGLACCOUNTNO", OffsetArGlAccountNo); xml.WriteElement("ARACCOUNT", DefaultRevenueGlAccountNo); xml.WriteElement("SHIPPINGMETHOD", ShippingMethod); xml.WriteElement("RESALENO", ResaleNumber); xml.WriteElement("TAXID", TaxId); xml.WriteElement("CREDITLIMIT", CreditLimit); xml.WriteElement("ONHOLD", OnHold); xml.WriteElement("DELIVERYOPTIONS", DeliveryMethod); xml.WriteElement("CUSTMESSAGEID", DefaultInvoiceMessage); xml.WriteElement("COMMENTS", Comments); xml.WriteElement("CURRENCY", DefaultCurrency); xml.WriteElement("ARINVOICEPRINTTEMPLATEID", PrintOptionArInvoiceTemplateName); xml.WriteElement("OEQUOTEPRINTTEMPLATEID", PrintOptionOeQuoteTemplateName); xml.WriteElement("OEORDERPRINTTEMPLATEID", PrintOptionOeOrderTemplateName); xml.WriteElement("OELISTPRINTTEMPLATEID", PrintOptionOeListTemplateName); xml.WriteElement("OEINVOICEPRINTTEMPLATEID", PrintOptionOeInvoiceTemplateName); xml.WriteElement("OEADJPRINTTEMPLATEID", PrintOptionOeAdjustmentTemplateName); xml.WriteElement("OEOTHERPRINTTEMPLATEID", PrintOptionOeOtherTemplateName); if (!string.IsNullOrWhiteSpace(PrimaryContactName)) { xml.WriteStartElement("CONTACTINFO"); xml.WriteElement("CONTACTNAME", PrimaryContactName); xml.WriteEndElement(); //CONTACTINFO } if (!string.IsNullOrWhiteSpace(BillToContactName)) { xml.WriteStartElement("BILLTO"); xml.WriteElement("CONTACTNAME", BillToContactName); xml.WriteEndElement(); //BILLTO } if (!string.IsNullOrWhiteSpace(ShipToContactName)) { xml.WriteStartElement("SHIPTO"); xml.WriteElement("CONTACTNAME", ShipToContactName); xml.WriteEndElement(); //SHIPTO } xml.WriteElement("OBJECTRESTRICTION", RestrictionType); if (RestrictedLocations.Count > 0) { xml.WriteElement("RESTRICTEDLOCATIONS", string.Join(IaXmlWriter.IntacctMultiSelectGlue, RestrictedLocations)); } if (RestrictedDepartments.Count > 0) { xml.WriteElement("RESTRICTEDDEPARTMENTS", string.Join(IaXmlWriter.IntacctMultiSelectGlue, RestrictedDepartments)); } // TODO salesforce tab xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //CUSTOMER xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("ITEM"); xml.WriteElement("ITEMID", ItemId, true); xml.WriteElement("NAME", ItemName, true); xml.WriteElement("ITEMTYPE", ItemType, true); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteElement("PRODUCTLINEID", ProductLineId); xml.WriteElement("COST_METHOD", CostMethod); xml.WriteElement("EXTENDED_DESCRIPTION", ExtendedDescription); xml.WriteElement("PODESCRIPTION", PurchasingDescription); xml.WriteElement("SODESCRIPTION", SalesDescription); xml.WriteElement("UOMGRP", UnitOfMeasure); xml.WriteElement("NOTE", Note); xml.WriteElement("SHIP_WEIGHT", ShippingWeight); xml.WriteElement("GLGROUP", ItemGlGroupName); xml.WriteElement("STANDARD_COST", StandardCost); xml.WriteElement("BASEPRICE", BasePrice); xml.WriteElement("TAXABLE", Taxable); xml.WriteElement("TAXGROUP", ItemTaxGroupName); xml.WriteElement("DEFAULTREVRECTEMPLKEY", DefaultRevRecTemplateId); xml.WriteElement("INCOMEACCTKEY", RevenueGlAccountNo); xml.WriteElement("INVACCTKEY", InventoryGlAccountNo); xml.WriteElement("EXPENSEACCTKEY", ExpenseGlAccountNo); xml.WriteElement("COGSACCTKEY", CogsGlAccountNo); xml.WriteElement("OFFSETOEGLACCOUNTKEY", ArGlAccountNo); xml.WriteElement("OFFSETPOGLACCOUNTKEY", ApGlAccountNo); xml.WriteElement("DEFERREDREVACCTKEY", DeferredRevGlAccountNo); xml.WriteElement("VSOECATEGORY", VsoeCategory); xml.WriteElement("VSOEDLVRSTATUS", VsoeDefaultDeliveryStatus); xml.WriteElement("VSOEREVDEFSTATUS", VsoeDefaultDeferralStatus); xml.WriteElement("REVPOSTING", KitRevenuePosting); xml.WriteElement("REVPRINTING", KitPrintFormat); xml.WriteElement("SUBSTITUTEID", SubstituteItemId); xml.WriteElement("ENABLE_SERIALNO", SerialTrackingEnabled); xml.WriteElement("SERIAL_MASKKEY", SerialNumberMask); xml.WriteElement("ENABLE_LOT_CATEGORY", LotTrackingEnabled); xml.WriteElement("LOT_CATEGORYKEY", LotCategory); xml.WriteElement("ENABLE_BINS", BinTrackingEnabled); xml.WriteElement("ENABLE_EXPIRATION", ExpTrackingEnabled); xml.WriteElement("UPC", Upc); xml.WriteElement("INV_PRECISION", UnitCostPrecisionInventory); xml.WriteElement("SO_PRECISION", UnitCostPrecisionSales); xml.WriteElement("PO_PRECISION", UnitCostPrecisionPurchasing); xml.WriteElement("HASSTARTENDDATES", ItemStartEndDateEnabled); xml.WriteElement("TERMPERIOD", PeriodsMeasuredIn); xml.WriteElement("TOTALPERIODS", NumberOfPeriods); xml.WriteElement("COMPUTEFORSHORTTERM", ProratePriceAllowed); xml.WriteElement("RENEWALMACROID", DefaultRenewalMacroId); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //ITEM xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update"); xml.WriteStartElement("PROJECT"); xml.WriteElement("PROJECTID", ProjectId, true); xml.WriteElement("NAME", ProjectName); xml.WriteElement("PROJECTCATEGORY", ProjectCategory); xml.WriteElement("DESCRIPTION", Description); xml.WriteElement("PARENTID", ParentProjectId); xml.WriteElement("INVOICEWITHPARENT", InvoiceWithParent); xml.WriteElement("PROJECTTYPE", ProjectType); xml.WriteElement("PROJECTSTATUS", ProjectStatus); xml.WriteElement("CUSTOMERID", CustomerId); xml.WriteElement("MANAGERID", ProjectManagerEmployeeId); xml.WriteElement("CUSTUSERID", ExternalUserId); xml.WriteElement("SALESCONTACTID", SalesContactEmployeeId); xml.WriteElement("DOCNUMBER", ReferenceNo); xml.WriteElement("USERRESTRICTIONS", UserRestrictions); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } if (!string.IsNullOrWhiteSpace(PrimaryContactName)) { xml.WriteStartElement("CONTACTINFO"); xml.WriteElement("CONTACTNAME", PrimaryContactName); xml.WriteEndElement(); //CONTACTINFO } if (!string.IsNullOrWhiteSpace(BillToContactName)) { xml.WriteStartElement("BILLTO"); xml.WriteElement("CONTACTNAME", BillToContactName); xml.WriteEndElement(); //BILLTO } if (!string.IsNullOrWhiteSpace(ShipToContactName)) { xml.WriteStartElement("SHIPTO"); xml.WriteElement("CONTACTNAME", ShipToContactName); xml.WriteEndElement(); //SHIPTO } xml.WriteElement("TERMNAME", PaymentTerms); xml.WriteElement("BILLINGTYPE", BillingType); xml.WriteElement("BEGINDATE", BeginDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("ENDDATE", EndDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("DEPARTMENTID", DepartmentId); xml.WriteElement("LOCATIONID", LocationId); xml.WriteElement("CLASSID", ClassId); xml.WriteElement("SUPDOCID", AttachmentsId); xml.WriteElement("BILLABLEEXPDEFAULT", BillableEmployeeExpense); xml.WriteElement("BILLABLEAPPODEFAULT", BillableApPurchasing); xml.WriteElement("OBSPERCENTCOMPLETE", ObservedPercentComplete); xml.WriteElement("CURRENCY", Currency); xml.WriteElement("SONUMBER", SalesOrderNo); xml.WriteElement("PONUMBER", PurchaseOrderNo); xml.WriteElement("POAMOUNT", PurchaseOrderAmount); xml.WriteElement("PQNUMBER", PurchaseQuoteNo); xml.WriteElement("CONTRACTAMOUNT", ContractAmount); xml.WriteElement("BILLINGPRICING", LaborPricingOption); xml.WriteElement("BILLINGRATE", LaborPricingDefaultRate); xml.WriteElement("EXPENSEPRICING", ExpensePricingOption); xml.WriteElement("EXPENSERATE", ExpensePricingDefaultRate); xml.WriteElement("POAPPRICING", ApPurchasingPricingOption); xml.WriteElement("POAPRATE", ApPurchasingPricingDefaultRate); xml.WriteElement("BUDGETAMOUNT", BudgetedBillingAmount); xml.WriteElement("BUDGETEDCOST", BudgetedCost); xml.WriteElement("BUDGETQTY", BudgetedDuration); xml.WriteElement("BUDGETID", GlBudgetId); xml.WriteElement("INVOICEMESSAGE", InvoiceMessage); xml.WriteElement("INVOICECURRENCY", InvoiceCurrency); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //PROJECT xml.WriteEndElement(); //update xml.WriteEndElement(); //function }