public XElement GenerateAddRq() { XElement Add = new XElement(nameof(ExpenseLine) + "Add"); Add.Add(AccountRef.ToQBXML(nameof(AccountRef))); Add.Add(Amount.ToQBXML(nameof(Amount))); Add.Add(Memo.ToQBXML(nameof(Memo))); Add.Add(CustomerRef.ToQBXML(nameof(CustomerRef))); Add.Add(ClassRef.ToQBXML(nameof(ClassRef))); Add.Add(BillableStatus.ToQBXML(nameof(BillableStatus))); Add.Add(SalesRepRef.ToQBXML(nameof(SalesRepRef))); Add.Add(DataExt.ToQBXML(nameof(DataExt))); return(Add); }
public XElement GenerateModRq() { XElement Mod = new XElement(nameof(ExpenseLine) + "Mod"); Mod.Add(TxnLineID.ToQBXML(nameof(TxnLineID))); Mod.Add(AccountRef.ToQBXML(nameof(AccountRef))); Mod.Add(Amount.ToQBXML(nameof(Amount))); Mod.Add(Memo.ToQBXML(nameof(Memo))); Mod.Add(CustomerRef.ToQBXML(nameof(CustomerRef))); Mod.Add(ClassRef.ToQBXML(nameof(ClassRef))); Mod.Add(BillableStatus.ToQBXML(nameof(BillableStatus))); Mod.Add(SalesRepRef.ToQBXML(nameof(SalesRepRef))); return(Mod); }
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); }