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("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("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 }