public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("ccpayitem"); if (!string.IsNullOrWhiteSpace(AccountLabel)) { xml.WriteElement("accountlabel", AccountLabel, true); } else { xml.WriteElement("glaccountno", GlAccountNumber, true); } xml.WriteElement("description", Memo); xml.WriteElement("paymentamount", TransactionAmount, true); xml.WriteElement("departmentid", DepartmentId); xml.WriteElement("locationid", LocationId); xml.WriteElement("customerid", CustomerId); xml.WriteElement("vendorid", VendorId); xml.WriteElement("employeeid", EmployeeId); xml.WriteElement("projectid", ProjectId); xml.WriteElement("itemid", ItemId); xml.WriteElement("classid", ClassId); xml.WriteElement("contractid", ContractId); xml.WriteElement("warehouseid", WarehouseId); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteEndElement(); //ccpayitem }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("record_deposit"); xml.WriteElement("bankaccountid", BankAccountId, true); xml.WriteStartElement("depositdate"); xml.WriteDateSplitElements(DepositDate); xml.WriteEndElement(); //depositdate xml.WriteElement("depositid", DepositSlipId, true); xml.WriteStartElement("receiptkeys"); if (TransactionsKeysToDeposit.Count > 0) { foreach (int key in TransactionsKeysToDeposit) { xml.WriteElement("receiptkey", key, true); } } xml.WriteEndElement(); //receiptkeys xml.WriteElement("description", Description); xml.WriteElement("supdocid", AttachmentsId); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteEndElement(); //record_deposit xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("ictransitem"); xml.WriteElement("itemid", ItemId, true); xml.WriteElement("itemdesc", ItemDescription); xml.WriteElement("warehouseid", WarehouseId); xml.WriteElement("quantity", Quantity, true); xml.WriteElement("unit", Unit); xml.WriteElement("cost", Cost); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", DepartmentId); if (ItemDetails.Count > 0) { xml.WriteStartElement("itemdetails"); foreach (AbstractTransactionItemDetail itemDetail in ItemDetails) { itemDetail.WriteXml(ref xml); } xml.WriteEndElement(); //itemdetails } xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("projectid", ProjectId); xml.WriteElement("customerid", CustomerId); xml.WriteElement("vendorid", VendorId); xml.WriteElement("employeeid", EmployeeId); xml.WriteElement("classid", ClassId); xml.WriteElement("contractid", ContractId); xml.WriteEndElement(); //ictransitem }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("EEACCOUNTLABEL"); xml.WriteElement("ACCOUNTLABEL", ExpenseType, true); xml.WriteElement("DESCRIPTION", Description, true); xml.WriteElement("GLACCOUNTNO", GlAccountNo, true); xml.WriteElement("OFFSETGLACCOUNTNO", OffsetGlAccountNo); xml.WriteElement("ITEMID", ItemId); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteEndElement(); //EEACCOUNTLABEL xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("updatesotransitem"); xml.WriteAttribute("line_num", LineNo); xml.WriteElement("bundlenumber", BundleNumber); xml.WriteElement("itemid", ItemId, true); xml.WriteElement("itemdesc", ItemDescription); xml.WriteElement("taxable", Taxable); xml.WriteElement("warehouseid", WarehouseId); xml.WriteElement("quantity", Quantity, true); xml.WriteElement("unit", Unit); xml.WriteElement("discountpercent", DiscountPercent); xml.WriteElement("price", Price); xml.WriteElement("discsurchargememo", DiscountSurchargeMemo); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", DepartmentId); xml.WriteElement("memo", Memo); if (ItemDetails.Count > 0) { xml.WriteStartElement("itemdetails"); foreach (AbstractTransactionItemDetail ItemDetail in ItemDetails) { ItemDetail.WriteXml(ref xml); } xml.WriteEndElement(); //itemdetails } xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("revrectemplate", RevRecTemplate); if (RevRecStartDate.HasValue) { xml.WriteStartElement("revrecstartdate"); xml.WriteDateSplitElements(RevRecStartDate.Value); xml.WriteEndElement(); //revrecstartdate } if (RevRecEndDate.HasValue) { xml.WriteStartElement("revrecenddate"); xml.WriteDateSplitElements(RevRecEndDate.Value); xml.WriteEndElement(); //revrecenddate } xml.WriteElement("renewalmacro", RenewalMacro); xml.WriteElement("projectid", ProjectId); xml.WriteElement("customerid", CustomerId); xml.WriteElement("vendorid", VendorId); xml.WriteElement("employeeid", EmployeeId); xml.WriteElement("classid", ClassId); xml.WriteElement("contractid", ContractId); xml.WriteElement("fulfillmentstatus", FulfillmentStatus); xml.WriteElement("taskno", TaskNumber); xml.WriteElement("billingtemplate", BillingTemplate); xml.WriteEndElement(); //updatesotransitem }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("potransitem"); xml.WriteElement("itemid", ItemId, true); xml.WriteElement("itemdesc", ItemDescription); xml.WriteElement("taxable", Taxable); xml.WriteElement("warehouseid", WarehouseId); xml.WriteElement("quantity", Quantity, true); xml.WriteElement("unit", Unit); xml.WriteElement("linelevelsimpletaxtype", LineLevelSimpleTaxType); xml.WriteElement("price", Price); xml.WriteElement("sourcelinekey", SourceLineRecordNo); xml.WriteElement("overridetaxamount", OverrideTaxAmount); if (!string.IsNullOrWhiteSpace(LineDeliverToContactName)) { xml.WriteStartElement("deliverto"); xml.WriteElement("contactname", LineDeliverToContactName, true); xml.WriteEndElement(); //deliverto } xml.WriteElement("tax", Tax); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", DepartmentId); xml.WriteElement("memo", Memo); if (ItemDetails.Count > 0) { xml.WriteStartElement("itemdetails"); foreach (AbstractTransactionItemDetail itemDetail in ItemDetails) { itemDetail.WriteXml(ref xml); } xml.WriteEndElement(); //itemdetails } xml.WriteElement("form1099", Form1099); xml.WriteElement("form1099type", Form1099Type); xml.WriteElement("form1099box", Form1099Box); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("projectid", ProjectId); xml.WriteElement("customerid", CustomerId); xml.WriteElement("vendorid", VendorId); xml.WriteElement("employeeid", EmployeeId); xml.WriteElement("classid", ClassId); xml.WriteElement("contractid", ContractId); xml.WriteElement("billable", Billable); xml.WriteEndElement(); //potransitem }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create_aradjustment"); xml.WriteElement("customerid", CustomerId, true); xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(TransactionDate); xml.WriteEndElement(); //datecreated if (GlPostingDate.HasValue) { xml.WriteStartElement("dateposted"); xml.WriteDateSplitElements(GlPostingDate.Value); xml.WriteEndElement(); //dateposted } xml.WriteElement("batchkey", SummaryRecordNo); xml.WriteElement("adjustmentno", AdjustmentNumber); xml.WriteElement("action", Action); xml.WriteElement("invoiceno", InvoiceNumber); xml.WriteElement("description", Description); xml.WriteElement("externalid", ExternalId); WriteXmlMultiCurrencySection(ref xml); xml.WriteElement("nogl", DoNotPostToGL); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteStartElement("aradjustmentitems"); if (Lines.Count > 0) { foreach (ArAdjustmentLineCreate Line in Lines) { Line.WriteXml(ref xml); } } xml.WriteEndElement(); //aradjustmentitems xml.WriteEndElement(); //create_aradjustment xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("record_cctransaction"); xml.WriteElement("chargecardid", ChargeCardId, true); if (TransactionDate.HasValue) { xml.WriteStartElement("paymentdate"); xml.WriteDateSplitElements(TransactionDate.Value); xml.WriteEndElement(); //paymentdate } xml.WriteElement("referenceno", ReferenceNumber); xml.WriteElement("payee", Payee); xml.WriteElement("description", Description); xml.WriteElement("supdocid", AttachmentsId); xml.WriteElement("currency", TransactionCurrency); if (ExchangeRateValue.HasValue) { xml.WriteElement("exchrate", ExchangeRateValue); } else if (ExchangeRateDate.HasValue || !string.IsNullOrWhiteSpace(ExchangeRateType)) { if (ExchangeRateDate.HasValue) { xml.WriteStartElement("exchratedate"); xml.WriteDateSplitElements(ExchangeRateDate.Value); xml.WriteEndElement(); } xml.WriteElement("exchratetype", ExchangeRateType, true); } xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteStartElement("ccpayitems"); if (Lines.Count > 0) { foreach (ChargeCardTransactionLineCreate line in Lines) { line.WriteXml(ref xml); } } xml.WriteEndElement(); //ccpayitems xml.WriteEndElement(); //record_cctransaction xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("lineitem"); if (!string.IsNullOrWhiteSpace(AccountLabel)) { xml.WriteElement("accountlabel", AccountLabel, true); } else { xml.WriteElement("glaccountno", GlAccountNumber, true); } xml.WriteElement("offsetglaccountno", OffsetGlAccountNumber); xml.WriteElement("amount", TransactionAmount); xml.WriteElement("allocationid", AllocationId); xml.WriteElement("memo", Memo); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", DepartmentId); xml.WriteElement("key", Key); xml.WriteElement("totalpaid", TotalPaid); xml.WriteElement("totaldue", TotalDue); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("revrectemplate", RevRecTemplateId); xml.WriteElement("defrevaccount", DeferredRevGlAccountNo); if (RevRecStartDate.HasValue) { xml.WriteStartElement("revrecstartdate"); xml.WriteDateSplitElements(RevRecStartDate.Value); xml.WriteEndElement(); //revrecstartdate } if (RevRecEndDate.HasValue) { xml.WriteStartElement("revrecenddate"); xml.WriteDateSplitElements(RevRecEndDate.Value); xml.WriteEndElement(); //revrecenddate } 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.WriteEndElement(); //lineitem }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create_ictransaction"); xml.WriteElement("transactiontype", TransactionDefinition, true); xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(TransactionDate.Value, true); xml.WriteEndElement(); //datecreated xml.WriteElement("createdfrom", CreatedFrom); xml.WriteElement("documentno", DocumentNumber); xml.WriteElement("referenceno", ReferenceNumber); xml.WriteElement("message", Message); xml.WriteElement("externalid", ExternalId); xml.WriteElement("basecurr", BaseCurrency); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("state", State); xml.WriteStartElement("ictransitems"); if (Lines.Count > 0) { foreach (InventoryTransactionLineCreate line in Lines) { line.WriteXml(ref xml); } } xml.WriteEndElement(); //ictransitems if (Subtotals.Count > 0) { xml.WriteStartElement("subtotals"); foreach (TransactionSubtotalCreate subtotal in Subtotals) { subtotal.WriteXml(ref xml); } xml.WriteEndElement(); //subtotals } xml.WriteEndElement(); //create_ictransaction xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create_expensereport"); xml.WriteElement("employeeid", EmployeeId, true); xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(TransactionDate.Value); xml.WriteEndElement(); //datecreated if (GlPostingDate.HasValue) { xml.WriteStartElement("dateposted"); xml.WriteDateSplitElements(GlPostingDate.Value); xml.WriteEndElement(); //dateposted } xml.WriteElement("batchkey", SummaryRecordNo); xml.WriteElement("expensereportno", ExpenseReportNumber); xml.WriteElement("state", Action); xml.WriteElement("description", ReasonForExpense); xml.WriteElement("memo", Memo); xml.WriteElement("externalid", ExternalId); xml.WriteElement("basecurr", BaseCurrency); xml.WriteElement("currency", ReimbursementCurrency); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("supdocid", AttachmentsId); xml.WriteStartElement("expenses"); if (Lines.Count > 0) { foreach (ExpenseReportLineCreate line in Lines) { line.WriteXml(ref xml); } } xml.WriteEndElement(); //expenses xml.WriteEndElement(); //create_expensereport xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("potransitem"); xml.WriteElement("itemid", ItemId, true); xml.WriteElement("itemdesc", ItemDescription); xml.WriteElement("taxable", Taxable); xml.WriteElement("warehouseid", WarehouseId); xml.WriteElement("quantity", Quantity, true); xml.WriteElement("unit", Unit); xml.WriteElement("price", Price); xml.WriteElement("overridetaxamount", OverrideTaxAmount); xml.WriteElement("tax", Tax); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", DepartmentId); xml.WriteElement("memo", Memo); if (ItemDetails.Count > 0) { xml.WriteStartElement("itemdetails"); foreach (AbstractTransactionItemDetail itemDetail in ItemDetails) { itemDetail.WriteXml(ref xml); } xml.WriteEndElement(); //itemdetails } xml.WriteElement("form1099", Form1099); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("projectid", ProjectId); xml.WriteElement("customerid", CustomerId); xml.WriteElement("vendorid", VendorId); xml.WriteElement("employeeid", EmployeeId); xml.WriteElement("classid", ClassId); xml.WriteElement("contractid", ContractId); xml.WriteElement("billable", Billable); xml.WriteEndElement(); //potransitem }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("lineitem"); if (!string.IsNullOrWhiteSpace(AccountLabel)) { xml.WriteElement("accountlabel", AccountLabel, true); } else { xml.WriteElement("glaccountno", GlAccountNumber, true); } xml.WriteElement("offsetglaccountno", OffsetGlAccountNumber); xml.WriteElement("amount", TransactionAmount, true); xml.WriteElement("allocationid", AllocationId); xml.WriteElement("memo", Memo); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", DepartmentId); xml.WriteElement("item1099", Form1099); xml.WriteElement("key", Key); xml.WriteElement("totalpaid", TotalPaid); xml.WriteElement("totaldue", TotalDue); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("projectid", ProjectId); xml.WriteElement("taskid", TaskId); 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("billable", Billable); xml.WriteEndElement(); //lineitem }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("subtotal"); xml.WriteElement("description", Description, true); xml.WriteElement("total", Total); xml.WriteElement("absval", AbsoluteValue); xml.WriteElement("percentval", PercentageValue); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", DepartmentId); xml.WriteElement("projectid", ProjectId); xml.WriteElement("customerid", CustomerId); xml.WriteElement("vendorid", VendorId); xml.WriteElement("employeeid", EmployeeId); xml.WriteElement("classid", ClassId); xml.WriteElement("itemid", ItemId); xml.WriteElement("contractid", ContractId); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteEndElement(); //subtotal }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create_bill"); xml.WriteElement("vendorid", VendorId, true); xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(TransactionDate.Value); xml.WriteEndElement(); //datecreated if (GlPostingDate.HasValue) { xml.WriteStartElement("dateposted"); xml.WriteDateSplitElements(GlPostingDate.Value); xml.WriteEndElement(); //dateposted } if (DueDate.HasValue) { xml.WriteStartElement("datedue"); xml.WriteDateSplitElements(DueDate.Value); xml.WriteEndElement(); //datedue xml.WriteElement("termname", PaymentTerm); } else { xml.WriteElement("termname", PaymentTerm, true); } xml.WriteElement("action", Action); xml.WriteElement("batchkey", SummaryRecordNo); xml.WriteElement("billno", BillNumber); xml.WriteElement("ponumber", ReferenceNumber); xml.WriteElement("onhold", OnHold); xml.WriteElement("description", Description); xml.WriteElement("externalid", ExternalId); 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 } WriteXmlMultiCurrencySection(ref xml); xml.WriteElement("nogl", DoNotPostToGL); xml.WriteElement("supdocid", AttachmentsId); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteStartElement("billitems"); if (Lines.Count > 0) { foreach (BillLineCreate Line in Lines) { Line.WriteXml(ref xml); } } xml.WriteEndElement(); //billitems xml.WriteEndElement(); //create_bill xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update_potransaction"); if (!string.IsNullOrWhiteSpace(ExternalId)) { xml.WriteAttribute("key", ExternalId); xml.WriteAttribute("externalkey", true); } else { xml.WriteAttribute("key", DocumentId); } if (TransactionDate.HasValue) { xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(TransactionDate.Value); xml.WriteEndElement(); //datecreated } if (GlPostingDate.HasValue) { xml.WriteStartElement("dateposted"); xml.WriteDateSplitElements(GlPostingDate.Value); xml.WriteEndElement(); //dateposted } xml.WriteElement("referenceno", ReferenceNumber); xml.WriteElement("vendordocno", VendorDocNumber); xml.WriteElement("termname", PaymentTerm); if (DueDate.HasValue) { xml.WriteStartElement("datedue"); xml.WriteDateSplitElements(DueDate.Value); xml.WriteEndElement(); //datedue } xml.WriteElement("message", Message); xml.WriteElement("shippingmethod", ShippingMethod); if (!string.IsNullOrWhiteSpace(ReturnToContactName)) { xml.WriteStartElement("returnto"); xml.WriteElement("contactname", ReturnToContactName); xml.WriteEndElement(); //returnto } if (!string.IsNullOrWhiteSpace(PayToContactName)) { xml.WriteStartElement("payto"); xml.WriteElement("contactname", PayToContactName); xml.WriteEndElement(); //payto } if (!string.IsNullOrWhiteSpace(DeliverToContactName)) { xml.WriteStartElement("deliverto"); xml.WriteElement("contactname", DeliverToContactName, true); xml.WriteEndElement(); //deliverto } xml.WriteElement("supdocid", AttachmentsId); xml.WriteElement("externalid", ExternalId); xml.WriteElement("basecurr", BaseCurrency); xml.WriteElement("currency", TransactionCurrency); if (ExchangeRateDate.HasValue) { xml.WriteStartElement("exchratedate"); xml.WriteDateSplitElements(ExchangeRateDate.Value); xml.WriteEndElement(); //exchratedate } if (!string.IsNullOrWhiteSpace(ExchangeRateType)) { xml.WriteElement("exchratetype", ExchangeRateType); } else if (ExchangeRateValue.HasValue) { xml.WriteElement("exchrate", ExchangeRateValue); } else if (!string.IsNullOrWhiteSpace(BaseCurrency) || !string.IsNullOrWhiteSpace(TransactionCurrency)) { xml.WriteElement("exchratetype", ExchangeRateType, true); } xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("state", State); if (Lines.Count > 0) { xml.WriteStartElement("updatepotransitems"); foreach (AbstractPurchasingTransactionLine line in Lines) { line.WriteXml(ref xml); } xml.WriteEndElement(); //updatepotransitems } if (Subtotals.Count > 0) { xml.WriteStartElement("updatesubtotals"); foreach (TransactionSubtotalUpdate subtotal in Subtotals) { subtotal.WriteXml(ref xml); } xml.WriteEndElement(); //updatesubtotals } xml.WriteEndElement(); //update_potransaction xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("expenseadjustment"); if (!string.IsNullOrWhiteSpace(ExpenseType)) { xml.WriteElement("expensetype", ExpenseType, true); } else { xml.WriteElement("glaccountno", GlAccountNumber, true); } xml.WriteElement("amount", ReimbursementAmount, true); xml.WriteElement("currency", TransactionCurrency); xml.WriteElement("trx_amount", TransactionAmount); if (ExchangeRateDate.HasValue) { xml.WriteStartElement("exchratedate"); xml.WriteDateSplitElements(ExchangeRateDate.Value, true); xml.WriteEndElement(); //exchratedate } if (!string.IsNullOrWhiteSpace(ExchangeRateType)) { xml.WriteElement("exchratetype", ExchangeRateType); } else if (ExchangeRateValue.HasValue) { xml.WriteElement("exchrate", ExchangeRateValue.Value); } else if (!string.IsNullOrWhiteSpace(TransactionCurrency) || TransactionAmount.HasValue) { xml.WriteElement("exchratetype", ExchangeRateType, true); } if (ExpenseDate.HasValue) { xml.WriteStartElement("expensedate"); xml.WriteDateSplitElements(ExpenseDate.Value, true); xml.WriteEndElement(); //expensedate } xml.WriteElement("memo", Memo); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", 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("billable", Billable); xml.WriteElement("exppmttype", PaymentTypeName); xml.WriteElement("quantity", Quantity); xml.WriteElement("rate", UnitRate); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteEndElement(); //expenseadjustment }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("sotransitem"); xml.WriteElement("bundlenumber", BundleNumber); xml.WriteElement("itemid", ItemId, true); xml.WriteElement("itemdesc", ItemDescription); xml.WriteElement("taxable", Taxable); xml.WriteElement("warehouseid", WarehouseId); xml.WriteElement("quantity", Quantity, true); xml.WriteElement("unit", Unit); xml.WriteElement("linelevelsimpletaxtype", LineLevelSimpleTaxType); xml.WriteElement("discountpercent", DiscountPercent); xml.WriteElement("price", Price); xml.WriteElement("sourcelinekey", SourceLineRecordNo); xml.WriteElement("discsurchargememo", DiscountSurchargeMemo); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", DepartmentId); xml.WriteElement("memo", Memo); if (ItemDetails.Count > 0) { xml.WriteStartElement("itemdetails"); foreach (AbstractTransactionItemDetail itemDetail in ItemDetails) { itemDetail.WriteXml(ref xml); } xml.WriteEndElement(); //itemdetails } xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("revrectemplate", RevRecTemplate); if (RevRecStartDate.HasValue) { xml.WriteStartElement("revrecstartdate"); xml.WriteDateSplitElements(RevRecStartDate.Value); xml.WriteEndElement(); //revrecstartdate } if (RevRecEndDate.HasValue) { xml.WriteStartElement("revrecenddate"); xml.WriteDateSplitElements(RevRecEndDate.Value); xml.WriteEndElement(); //revrecenddate } xml.WriteElement("renewalmacro", RenewalMacro); xml.WriteElement("projectid", ProjectId); xml.WriteElement("customerid", CustomerId); xml.WriteElement("vendorid", VendorId); xml.WriteElement("employeeid", EmployeeId); xml.WriteElement("classid", ClassId); xml.WriteElement("contractid", ContractId); xml.WriteElement("fulfillmentstatus", FulfillmentStatus); xml.WriteElement("taskno", TaskNumber); xml.WriteElement("billingtemplate", BillingTemplate); xml.WriteElement("dropship", DropShip); if (!string.IsNullOrWhiteSpace(LineShipToContactName)) { xml.WriteStartElement("shipto"); xml.WriteElement("contactname", LineShipToContactName, true); xml.WriteEndElement(); //shipto } xml.WriteEndElement(); //sotransitem }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update_invoice"); if (!string.IsNullOrWhiteSpace(ExternalId)) { xml.WriteAttribute("key", ExternalId); xml.WriteAttribute("externalkey", true); } else { xml.WriteAttribute("key", RecordNo); } xml.WriteElement("customerid", CustomerId); if (TransactionDate.HasValue) { xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(TransactionDate.Value); xml.WriteEndElement(); //datecreated } if (GlPostingDate.HasValue) { xml.WriteStartElement("dateposted"); xml.WriteDateSplitElements(GlPostingDate.Value); xml.WriteEndElement(); //dateposted } if (DueDate.HasValue) { xml.WriteStartElement("datedue"); xml.WriteDateSplitElements(DueDate.Value); xml.WriteEndElement(); //datedue xml.WriteElement("termname", PaymentTerm); } else if (!string.IsNullOrWhiteSpace(PaymentTerm)) { xml.WriteElement("termname", PaymentTerm, true); } xml.WriteElement("action", Action); xml.WriteElement("invoiceno", InvoiceNumber); xml.WriteElement("ponumber", ReferenceNumber); xml.WriteElement("description", Description); if (!string.IsNullOrWhiteSpace(BillToContactName)) { xml.WriteStartElement("payto"); xml.WriteElement("contactname", BillToContactName); xml.WriteEndElement(); //payto } if (!string.IsNullOrWhiteSpace(ShipToContactName)) { xml.WriteStartElement("returnto"); xml.WriteElement("contactname", ShipToContactName); xml.WriteEndElement(); //returnto } WriteXmlMultiCurrencySection(ref xml); xml.WriteElement("supdocid", AttachmentsId); xml.WriteCustomFieldsExplicit(CustomFields); if (Lines.Count > 0) { xml.WriteStartElement("updateinvoiceitems"); foreach (AbstractInvoiceLine line in Lines) { line.WriteXml(ref xml); } xml.WriteEndElement(); //updateinvoiceitems } xml.WriteEndElement(); //update_invoice xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update_sotransaction"); if (!string.IsNullOrWhiteSpace(ExternalId)) { xml.WriteAttribute("key", ExternalId); xml.WriteAttribute("externalkey", true); } else { xml.WriteAttribute("key", TransactionId); } if (DisableValidation == true) { xml.WriteAttribute("disablevalidation", true); } if (TransactionDate.HasValue) { xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(TransactionDate.Value, true); xml.WriteEndElement(); //datecreated } if (GlPostingDate.HasValue) { xml.WriteStartElement("dateposted"); xml.WriteDateSplitElements(GlPostingDate.Value); xml.WriteEndElement(); //dateposted } xml.WriteElement("referenceno", ReferenceNumber); xml.WriteElement("termname", PaymentTerm); if (DueDate.HasValue) { xml.WriteStartElement("datedue"); xml.WriteDateSplitElements(DueDate.Value, true); xml.WriteEndElement(); //datedue } if (OriginalDocumentDate.HasValue) { xml.WriteStartElement("origdocdate"); xml.WriteDateSplitElements(OriginalDocumentDate.Value, true); xml.WriteEndElement(); //origdocdate } xml.WriteElement("message", Message); xml.WriteElement("shippingmethod", ShippingMethod); if (!string.IsNullOrWhiteSpace(ShipToContactName)) { xml.WriteStartElement("shipto"); xml.WriteElement("contactname", ShipToContactName, true); xml.WriteEndElement(); //shipto } if (!string.IsNullOrWhiteSpace(BillToContactName)) { xml.WriteStartElement("billto"); xml.WriteElement("contactname", BillToContactName, true); xml.WriteEndElement(); //billto } xml.WriteElement("supdocid", AttachmentsId); xml.WriteElement("basecurr", BaseCurrency); xml.WriteElement("currency", TransactionCurrency); if (ExchangeRateDate.HasValue) { xml.WriteStartElement("exchratedate"); xml.WriteDateSplitElements(ExchangeRateDate.Value); xml.WriteEndElement(); //exchratedate } if (!string.IsNullOrWhiteSpace(ExchangeRateType)) { xml.WriteElement("exchratetype", ExchangeRateType); } else if (ExchangeRateValue.HasValue) { xml.WriteElement("exchrate", ExchangeRateValue); } else if (!string.IsNullOrWhiteSpace(BaseCurrency) || !string.IsNullOrWhiteSpace(TransactionCurrency)) { xml.WriteElement("exchratetype", ExchangeRateType, true); } xml.WriteElement("vsoepricelist", VsoePriceList); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("state", State); xml.WriteElement("projectid", ProjectId); if (Lines.Count > 0) { xml.WriteStartElement("updatesotransitems"); foreach (AbstractOrderEntryTransactionLine line in Lines) { line.WriteXml(ref xml); } xml.WriteEndElement(); //updatesotransitems } if (Subtotals.Count > 0) { xml.WriteStartElement("updatesubtotals"); foreach (AbstractTransactionSubtotal subtotal in Subtotals) { subtotal.WriteXml(ref xml); } xml.WriteEndElement(); //updatesubtotals } xml.WriteEndElement(); //update_sotransaction xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("record_otherreceipt"); xml.WriteStartElement("paymentdate"); xml.WriteDateSplitElements(TransactionDate); xml.WriteEndElement(); //paymentdate xml.WriteElement("payee", Payer, true); xml.WriteStartElement("receiveddate"); xml.WriteDateSplitElements(ReceiptDate); xml.WriteEndElement(); //receiveddate xml.WriteElement("paymentmethod", PaymentMethod, true); if (!string.IsNullOrWhiteSpace(BankAccountId) || DepositDate.HasValue) { xml.WriteElement("bankaccountid", BankAccountId, true); if (DepositDate.HasValue) { xml.WriteStartElement("depositdate"); xml.WriteDateSplitElements(DepositDate.Value); xml.WriteEndElement(); //depositdate } } else { xml.WriteElement("undepglaccountno", UndepositedFundsGlAccountNo, true); } xml.WriteElement("refid", TransactionNo); xml.WriteElement("description", Description); xml.WriteElement("supdocid", AttachmentsId); xml.WriteElement("currency", TransactionCurrency); if (ExchangeRateValue.HasValue) { xml.WriteElement("exchrate", ExchangeRateValue); } else if (ExchangeRateDate.HasValue || !string.IsNullOrWhiteSpace(ExchangeRateType)) { if (ExchangeRateDate.HasValue) { xml.WriteStartElement("exchratedate"); xml.WriteDateSplitElements(ExchangeRateDate.Value); xml.WriteEndElement(); //exchratedate } xml.WriteElement("exchratetype", ExchangeRateType, true); } xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteStartElement("receiptitems"); if (Lines.Count > 0) { foreach (OtherReceiptLineCreate line in Lines) { line.WriteXml(ref xml); } } xml.WriteEndElement(); //receiptitems xml.WriteEndElement(); //record_otherreceipt xml.WriteEndElement(); //function }