Exemplo n.º 1
0
            public XElement GenerateModRq(bool?ClearExpenseLines = null)
            {
                XElement xElement = new XElement(nameof(Bill) + "Mod");

                xElement.Add(TxnID?.ToQBXML(nameof(TxnID)));
                xElement.Add(TimeCreated?.ToQBXML(nameof(TimeCreated)));
                xElement.Add(TimeModified?.ToQBXML(nameof(TimeModified)));
                xElement.Add(EditSequence?.ToQBXML(nameof(EditSequence)));
                xElement.Add(TxnNumber?.ToQBXML(nameof(TxnNumber)));
                xElement.Add(VendorRef?.ToQBXML(nameof(VendorRef)));
                xElement.Add(VendorAddress?.ToQBXML(nameof(VendorAddress)));
                xElement.Add(APAccountRef?.ToQBXML(nameof(APAccountRef)));
                xElement.Add(TxnDate?.ToQBXML(nameof(TxnDate)));
                xElement.Add(DueDate?.ToQBXML(nameof(DueDate)));
                xElement.Add(AmountDue?.ToQBXML(nameof(AmountDue)));
                xElement.Add(CurrencyRef?.ToQBXML(nameof(CurrencyRef)));
                xElement.Add(ExchangeRate?.ToQBXML(nameof(ExchangeRate)));
                xElement.Add(AmountDueInHomeCurrency?.ToQBXML(nameof(AmountDueInHomeCurrency)));
                xElement.Add(RefNumber?.ToQBXML(nameof(RefNumber)));
                xElement.Add(TermsRef?.ToQBXML(nameof(TermsRef)));
                xElement.Add(Memo?.ToQBXML(nameof(Memo)));
                xElement.Add(IsTaxIncluded?.ToQBXML(nameof(IsTaxIncluded)));
                xElement.Add(SalesTaxCodeRef?.ToQBXML(nameof(SalesTaxCodeRef)));
                xElement.Add(IsPaid?.ToQBXML(nameof(IsPaid)));
                xElement.Add(ExternalGUID?.ToQBXML(nameof(ExternalGUID)));
                xElement.Add(LinkedTxnList?.ToQBXML(nameof(LinkedTxnList)));
                xElement.Add(ExpenseLineList?.ToQBXML(nameof(ExpenseLineList)));
                xElement.Add(ItemLineList?.ToQBXML(nameof(ItemLineList)));
                xElement.Add(OpenAmount?.ToQBXML(nameof(OpenAmount)));
                xElement.Add(DataExtList?.ToQBXML(nameof(DataExtList)));

                return(xElement);
            }
Exemplo n.º 2
0
            public override XElement GenerateAddRq()
            {
                XElement xElement = new XElement(nameof(BillPaymentCheck) + "Add");

                xElement.Add(TxnID?.ToQBXML(nameof(TxnID)));
                xElement.Add(TimeCreated?.ToQBXML(nameof(TimeCreated)));
                xElement.Add(TimeModified?.ToQBXML(nameof(TimeModified)));
                xElement.Add(EditSequence?.ToQBXML(nameof(EditSequence)));
                xElement.Add(TxnNumber?.ToQBXML(nameof(TxnNumber)));
                xElement.Add(PayeeEntityRef?.ToQBXML(nameof(PayeeEntityRef)));
                xElement.Add(APAccountRef?.ToQBXML(nameof(APAccountRef)));
                xElement.Add(TxnDate?.ToQBXML(nameof(TxnDate)));
                xElement.Add(BankAccountRef?.ToQBXML(nameof(BankAccountRef)));
                xElement.Add(Amount?.ToQBXML(nameof(Amount)));
                xElement.Add(CurrencyRef?.ToQBXML(nameof(CurrencyRef)));
                xElement.Add(ExchangeRate?.ToQBXML(nameof(ExchangeRate)));
                xElement.Add(AmountInHomeCurrency?.ToQBXML(nameof(AmountInHomeCurrency)));
                xElement.Add(RefNumber?.ToQBXML(nameof(RefNumber)));
                xElement.Add(Memo?.ToQBXML(nameof(Memo)));
                xElement.Add(Address?.ToQBXML(nameof(Address)));
                xElement.Add(IsToBePrinted?.ToQBXML(nameof(IsToBePrinted)));
                xElement.Add(ExternalGUID?.ToQBXML(nameof(ExternalGUID)));
                xElement.Add(AppliedToTxnList?.ToQBXML(nameof(AppliedToTxnList)));
                xElement.Add(DataExtList?.ToQBXML(nameof(DataExtList)));

                return(xElement);
            }
Exemplo n.º 3
0
            public XElement GenerateModRq(bool?ClearExpenseLines = null)
            {
                XElement xElement = new XElement(nameof(BillPaymentCreditCard) + "Mod");

                xElement.Add(TxnID?.ToQBXML(nameof(TxnID)));
                xElement.Add(TimeCreated?.ToQBXML(nameof(TimeCreated)));
                xElement.Add(TimeModified?.ToQBXML(nameof(TimeModified)));
                xElement.Add(EditSequence?.ToQBXML(nameof(EditSequence)));
                xElement.Add(TxnNumber?.ToQBXML(nameof(TxnNumber)));
                xElement.Add(PayeeEntityRef?.ToQBXML(nameof(PayeeEntityRef)));
                xElement.Add(APAccountRef?.ToQBXML(nameof(APAccountRef)));
                xElement.Add(TxnDate?.ToQBXML(nameof(TxnDate)));
                xElement.Add(CreditCardAccountRef?.ToQBXML(nameof(CreditCardAccountRef)));
                xElement.Add(Amount?.ToQBXML(nameof(Amount)));
                xElement.Add(CurrencyRef?.ToQBXML(nameof(CurrencyRef)));
                xElement.Add(ExchangeRate?.ToQBXML(nameof(ExchangeRate)));
                xElement.Add(AmountInHomeCurrency?.ToQBXML(nameof(AmountInHomeCurrency)));
                xElement.Add(RefNumber?.ToQBXML(nameof(RefNumber)));
                xElement.Add(Memo?.ToQBXML(nameof(Memo)));
                xElement.Add(ExternalGUID?.ToQBXML(nameof(ExternalGUID)));
                xElement.Add(AppliedToTxnList?.ToQBXML(nameof(AppliedToTxnList)));
                xElement.Add(DataExtList?.ToQBXML(nameof(DataExtList)));

                return(xElement);
            }
Exemplo n.º 4
0
            public override XElement GenerateModRq()
            {
                XElement Mod = new XElement("CustomerMod");

                Mod.Add(ListID?.ToQBXML(nameof(ListID)));
                Mod.Add(EditSequence?.ToQBXML(nameof(EditSequence)));
                Mod.Add(Name?.ToQBXML(nameof(Name)));
                Mod.Add(IsActive.ToQBXML(nameof(IsActive)));
                Mod.Add(ClassRef?.ToQBXML(nameof(ClassRef)));
                Mod.Add(ParentRef?.ToQBXML(nameof(ParentRef)));
                Mod.Add(CompanyName?.ToQBXML(nameof(CompanyName)));
                Mod.Add(Salutation?.ToQBXML(nameof(Salutation)));
                Mod.Add(FirstName?.ToQBXML(nameof(FirstName)));
                Mod.Add(MiddleName?.ToQBXML(nameof(MiddleName)));
                Mod.Add(LastName?.ToQBXML(nameof(LastName)));
                Mod.Add(JobTitle?.ToQBXML(nameof(JobTitle)));
                Mod.Add(BillAddress?.ToQBXML(nameof(BillAddress)));
                Mod.Add(ShipAddress?.ToQBXML(nameof(ShipAddress)));
                Mod.Add(ShipToAddress?.ToQBXML(nameof(ShipToAddress)));
                Mod.Add(Phone?.ToQBXML(nameof(Phone)));
                Mod.Add(AltPhone?.ToQBXML(nameof(AltPhone)));
                Mod.Add(Fax?.ToQBXML(nameof(Fax)));
                Mod.Add(Email?.ToQBXML(nameof(Email)));
                Mod.Add(Cc?.ToQBXML(nameof(Cc)));
                Mod.Add(Contact?.ToQBXML(nameof(Contact)));
                Mod.Add(AltContact?.ToQBXML(nameof(AltContact)));
                Mod.Add(AdditionalContactRef?.ToQBXML(nameof(AdditionalContactRef)));
                // TODO: ContactsMod
                Mod.Add(CustomerTypeRef?.ToQBXML(nameof(CustomerTypeRef)));
                Mod.Add(TermsRef?.ToQBXML(nameof(TermsRef)));
                Mod.Add(SalesRepRef?.ToQBXML(nameof(SalesRepRef)));
                Mod.Add(SalesTaxCodeRef?.ToQBXML(nameof(SalesTaxCodeRef)));
                Mod.Add(ItemSalesTaxRef?.ToQBXML(nameof(ItemSalesTaxRef)));
                Mod.Add(ResaleNumber?.ToQBXML(nameof(ResaleNumber)));
                Mod.Add(AccountNumber?.ToQBXML(nameof(AccountNumber)));
                Mod.Add(CreditLimit?.ToQBXML(nameof(CreditLimit)));
                Mod.Add(PreferredPaymentMethodRef?.ToQBXML(nameof(PreferredPaymentMethodRef)));
                Mod.Add(CreditCardInfo?.ToQBXML(nameof(CreditCardInfo)));
                Mod.Add(JobStatus.ToQBXML(nameof(JobStatus)));
                Mod.Add(JobStartDate?.ToQBXML(nameof(JobStartDate)));
                Mod.Add(JobProjectedEndDate?.ToQBXML(nameof(JobProjectedEndDate)));
                Mod.Add(JobEndDate?.ToQBXML(nameof(JobEndDate)));
                Mod.Add(JobDesc?.ToQBXML(nameof(JobDesc)));
                Mod.Add(JobTypeRef?.ToQBXML(nameof(JobTypeRef)));
                Mod.Add(Notes?.ToQBXML(nameof(Notes)));
                // TODO: AdditionalNotesMod
                Mod.Add(PreferredDeliveryMethod.ToQBXML(nameof(PreferredDeliveryMethod)));
                Mod.Add(PriceLevelRef?.ToQBXML(nameof(PriceLevelRef)));
                Mod.Add(CurrencyRef?.ToQBXML(nameof(CurrencyRef)));

                XElement ModRq = new XElement("CustomerModRq");

                ModRq.Add(Mod);
                ModRq.Add(IncludeRetElement?.ToQBXML(nameof(IncludeRetElement)));

                return(ModRq);
            }
Exemplo n.º 5
0
            public XElement GenerateModRq(bool?ClearExpenseLines = null)
            {
                XElement xElement = new XElement(nameof(BillingRate) + "Mod");

                xElement.Add(ListID?.ToQBXML(nameof(ListID)));
                xElement.Add(TimeCreated?.ToQBXML(nameof(TimeCreated)));
                xElement.Add(TimeModified?.ToQBXML(nameof(TimeModified)));
                xElement.Add(EditSequence?.ToQBXML(nameof(EditSequence)));
                xElement.Add(Name?.ToQBXML(nameof(Name)));
                xElement.Add(BillingRateType.ToQBXML(nameof(BillingRateType)));
                xElement.Add(BillingRatePerItemList?.ToQBXML(nameof(BillingRatePerItem)));

                return(xElement);
            }
Exemplo n.º 6
0
            public override XElement GenerateAddRq()
            {
                XElement xElement = new XElement(nameof(BillingRate) + "Add");

                xElement.Add(ListID?.ToQBXML(nameof(ListID)));
                xElement.Add(TimeCreated?.ToQBXML(nameof(TimeCreated)));
                xElement.Add(TimeModified?.ToQBXML(nameof(TimeModified)));
                xElement.Add(EditSequence?.ToQBXML(nameof(EditSequence)));
                xElement.Add(Name?.ToQBXML(nameof(Name)));
                xElement.Add(BillingRateType.ToQBXML(nameof(BillingRateType)));
                xElement.Add(BillingRatePerItemList?.ToQBXML(nameof(BillingRatePerItem)));

                return(xElement);
            }
Exemplo n.º 7
0
            public XElement ToQBXML(string name)
            {
                XElement xElement = new XElement(name);

                xElement.Add(ListID.ToQBXML(nameof(ListID)));
                xElement.Add(TimeCreated.ToQBXML(nameof(TimeCreated)));
                xElement.Add(TimeModified.ToQBXML(nameof(TimeModified)));
                xElement.Add(EditSequence.ToQBXML(nameof(EditSequence)));
                xElement.Add(Contact.ToQBXML(nameof(Contact)));
                xElement.Add(Salutation.ToQBXML(nameof(Salutation)));
                xElement.Add(FirstName.ToQBXML(nameof(FirstName)));
                xElement.Add(MiddleName.ToQBXML(nameof(MiddleName)));
                xElement.Add(LastName.ToQBXML(nameof(LastName)));
                xElement.Add(JobTitle.ToQBXML(nameof(JobTitle)));
                xElement.Add(AdditionalContactRef?.ToQBXML(nameof(AdditionalContactRef)));
                return(xElement);
            }
Exemplo n.º 8
0
            public XElement GenerateModRq(bool?ForceUOMChange = null, bool?ApplyIncomeAccountRefToExistingTxns = null, bool?ApplyCOGSAccountRefToExistingTxns = null)
            {
                XElement Mod = new XElement(typeof(ItemInventory).Name + "Mod");

                Mod.Add(ListID?.ToQBXML(nameof(ListID)));
                Mod.Add(EditSequence?.ToQBXML(nameof(EditSequence)));
                Mod.Add(Name?.ToQBXML(nameof(Name)));
                Mod.Add(BarCode?.ToQBXML(nameof(BarCode)));
                Mod.Add(IsActive.ToQBXML(nameof(IsActive)));
                Mod.Add(ClassRef?.ToQBXML(nameof(ClassRef)));
                Mod.Add(ParentRef?.ToQBXML(nameof(ParentRef)));
                Mod.Add(ManufacturerPartNumber?.ToQBXML(nameof(ManufacturerPartNumber)));
                Mod.Add(UnitOfMeasureSetRef?.ToQBXML(nameof(UnitOfMeasureSetRef)));
                Mod.Add(ForceUOMChange?.ToQBXML(nameof(ForceUOMChange)));
                Mod.Add(SalesTaxCodeRef?.ToQBXML(nameof(SalesTaxCodeRef)));
                Mod.Add(SalesDesc?.ToQBXML(nameof(SalesDesc)));
                Mod.Add(SalesPrice?.ToQBXML(nameof(SalesPrice)));
                Mod.Add(IncomeAccountRef?.ToQBXML(nameof(IncomeAccountRef)));
                Mod.Add(ApplyIncomeAccountRefToExistingTxns?.ToQBXML(nameof(ApplyIncomeAccountRefToExistingTxns)));
                Mod.Add(PurchaseDesc?.ToQBXML(nameof(PurchaseDesc)));
                Mod.Add(PurchaseCost?.ToQBXML(nameof(PurchaseCost)));
                Mod.Add(COGSAccountRef?.ToQBXML(nameof(COGSAccountRef)));
                Mod.Add(ApplyCOGSAccountRefToExistingTxns?.ToQBXML(nameof(ApplyCOGSAccountRefToExistingTxns)));
                Mod.Add(PrefVendorRef?.ToQBXML(nameof(PrefVendorRef)));
                Mod.Add(AssetAccountRef?.ToQBXML(nameof(AssetAccountRef)));
                Mod.Add(ReorderPoint?.ToQBXML(nameof(ReorderPoint)));
                Mod.Add(Max?.ToQBXML(nameof(Max)));

                XElement ModRq = new XElement(typeof(ItemInventory).Name + "ModRq", Mod);

                foreach (var value in IncludeRetElement)
                {
                    ModRq.Add(value.ToQBXML(nameof(IncludeRetElement)));
                }
                return(ModRq);
            }
Exemplo n.º 9
0
 void Start()
 {
     Enable(on);
     sequence = new EditSequence();
 }