public XElement ToQBXML(string name) { XElement xElement = new XElement(name); xElement.Add(ItemRef.ToQBXML(nameof(ItemRef))); xElement.Add(CustomRate.ToQBXML(nameof(CustomRate))); xElement.Add(CustomRatePercent.ToQBXML(nameof(CustomRatePercent))); return(xElement); }
public XElement ToQBXML(string name, BaseRef OverrideItemAccountRef = null) { XElement xElement = new XElement(name); xElement.Add(TxnLineID.ToQBXML(nameof(TxnLineID))); xElement.Add(ItemRef.ToQBXML(nameof(ItemRef))); xElement.Add(InventorySiteRef.ToQBXML(nameof(InventorySiteRef))); xElement.Add(InventorySiteLocationRef.ToQBXML(nameof(InventorySiteLocationRef))); xElement.Add(SerialNumber.ToQBXML(nameof(SerialNumber))); xElement.Add(LotNumber.ToQBXML(nameof(LotNumber))); xElement.Add(Desc.ToQBXML(nameof(Desc))); xElement.Add(UnitOfMeasure.ToQBXML(nameof(UnitOfMeasure))); xElement.Add(OverrideUOMSetRef.ToQBXML(nameof(OverrideUOMSetRef))); xElement.Add(Cost.ToQBXML(nameof(Cost))); xElement.Add(Amount.ToQBXML(nameof(Amount))); xElement.Add(CustomerRef.ToQBXML(nameof(CustomerRef))); xElement.Add(ClassRef.ToQBXML(nameof(ClassRef))); xElement.Add(BillableStatus.ToQBXML(nameof(BillableStatus))); xElement.Add(OverrideItemAccountRef.ToQBXML(nameof(OverrideItemAccountRef))); xElement.Add(SalesRepRef.ToQBXML(nameof(SalesRepRef))); return(xElement); }
public virtual XElement GenerateModRq(BaseRef OverrideItemAccountRef = null) { XElement xElement = new XElement(nameof(ItemLine) + "Mod"); xElement.Add(TxnLineID.ToQBXML(nameof(TxnLineID))); xElement.Add(ItemRef.ToQBXML(nameof(ItemRef))); xElement.Add(InventorySiteRef.ToQBXML(nameof(InventorySiteRef))); xElement.Add(InventorySiteLocationRef.ToQBXML(nameof(InventorySiteLocationRef))); xElement.Add(SerialNumber.ToQBXML(nameof(SerialNumber))); xElement.Add(LotNumber.ToQBXML(nameof(LotNumber))); xElement.Add(Desc.ToQBXML(nameof(Desc))); xElement.Add(Quantity.ToQBXML(nameof(Quantity))); xElement.Add(UnitOfMeasure.ToQBXML(nameof(UnitOfMeasure))); xElement.Add(OverrideUOMSetRef.ToQBXML(nameof(OverrideUOMSetRef))); xElement.Add(Cost.ToQBXML(nameof(Cost))); xElement.Add(Amount.ToQBXML(nameof(Amount))); xElement.Add(CustomerRef.ToQBXML(nameof(CustomerRef))); xElement.Add(ClassRef.ToQBXML(nameof(ClassRef))); xElement.Add(BillableStatus.ToQBXML(nameof(BillableStatus))); xElement.Add(OverrideItemAccountRef.ToQBXML(nameof(OverrideItemAccountRef))); xElement.Add(SalesRepRef.ToQBXML(nameof(SalesRepRef))); return(xElement); }