Example #1
0
        public void AddAllocation()
        {
            APAlloc apAlloc = new APAlloc()
            {
                Amount        = this.Alloc.Amount,
                HoldStatus    = this.Alloc.HoldStatus,
                IsSoftCost    = this.Alloc.IsSoftCost,
                Quantity      = this.Alloc.Quantity,
                Rate          = this.Alloc.Rate,
                MarkupAmount  = this.Alloc.MarkupAmount,
                MarkupPercent = this.Alloc.MarkupPercent,
                Explanation   = this.Alloc.Explanation,
                InvoiceDate   = this.Alloc.InvoiceDate,
                InvoiceID     = this.Alloc.InvoiceID,
                InvoiceNumber = this.Alloc.InvoiceNumber,
                MatterID      = this.Alloc.MatterID,
                GLID          = this.Alloc.GLID,
                ExplCodeID    = this.Alloc.ExplCodeID
            };

            apAlloc.Amount          = this.Alloc.Amount;
            apAlloc.BillTaxCategory = this.Alloc.BillTaxCategory;
            this.listAllocations.Add(apAlloc);
            this.Alloc.Clear();
        }
Example #2
0
        protected override void Initialize()
        {
            this.m_sTableName = "EntryPayable";
            List <CPostItem> postItems1 = this.PostItems;
            CPostItem        cpostItem1 = new CPostItem(CPostItem.DataType.LONG, "EntryPayableEntryID");
            CPostItem        cpostItem2 = cpostItem1;

            this.m_ID = cpostItem1;
            postItems1.Add(cpostItem2);
            List <CPostItem> postItems2 = this.PostItems;
            CPostItem        cpostItem3 = new CPostItem(CPostItem.DataType.LONG, "UserID");
            CPostItem        cpostItem4 = cpostItem3;

            this.m_UserID = cpostItem3;
            postItems2.Add(cpostItem4);
            List <CPostItem> postItems3 = this.PostItems;
            CPostItem        cpostItem5 = new CPostItem(CPostItem.DataType.LONG, "EntryPayableStatus");
            CPostItem        cpostItem6 = cpostItem5;

            this.m_Status = cpostItem5;
            postItems3.Add(cpostItem6);
            List <CPostItem> postItems4 = this.PostItems;
            CPostItem        cpostItem7 = new CPostItem(CPostItem.DataType.LONG, "EntryPayableVendorID");
            CPostItem        cpostItem8 = cpostItem7;

            this.m_VendorID = cpostItem7;
            postItems4.Add(cpostItem8);
            List <CPostItem> postItems5  = this.PostItems;
            CPostItem        cpostItem9  = new CPostItem(CPostItem.DataType.LONG, "EntryPayableInvoiceDate");
            CPostItem        cpostItem10 = cpostItem9;

            this.m_InvoiceDate = cpostItem9;
            postItems5.Add(cpostItem10);
            List <CPostItem> postItems6  = this.PostItems;
            CPostItem        cpostItem11 = new CPostItem(CPostItem.DataType.LONG, "EntryPayableDueDate");
            CPostItem        cpostItem12 = cpostItem11;

            this.m_DueDate = cpostItem11;
            postItems6.Add(cpostItem12);
            List <CPostItem> postItems7  = this.PostItems;
            CPostItem        cpostItem13 = new CPostItem(CPostItem.DataType.DOUBLE, "EntryPayableDiscount");
            CPostItem        cpostItem14 = cpostItem13;

            this.m_Discount = cpostItem13;
            postItems7.Add(cpostItem14);
            List <CPostItem> postItems8  = this.PostItems;
            CPostItem        cpostItem15 = new CPostItem(CPostItem.DataType.DOUBLE, "EntryPayableAmountPaid");
            CPostItem        cpostItem16 = cpostItem15;

            this.m_AmountPaid = cpostItem15;
            postItems8.Add(cpostItem16);
            List <CPostItem> postItems9  = this.PostItems;
            CPostItem        cpostItem17 = new CPostItem(CPostItem.DataType.DOUBLE, "EntryPayableFederalTax");
            CPostItem        cpostItem18 = cpostItem17;

            this.m_FederalTax = cpostItem17;
            postItems9.Add(cpostItem18);
            List <CPostItem> postItems10 = this.PostItems;
            CPostItem        cpostItem19 = new CPostItem(CPostItem.DataType.DOUBLE, "EntryPayableTotalBasePlusSalesTax");
            CPostItem        cpostItem20 = cpostItem19;

            this.m_TotalBasePlusSalesTax = cpostItem19;
            postItems10.Add(cpostItem20);
            List <CPostItem> postItems11 = this.PostItems;
            CPostItem        cpostItem21 = new CPostItem(CPostItem.DataType.LONG, "EntryPayableTaxRemitDate");
            CPostItem        cpostItem22 = cpostItem21;

            this.m_TaxRemitDate = cpostItem21;
            postItems11.Add(cpostItem22);
            List <CPostItem> postItems12 = this.PostItems;
            CPostItem        cpostItem23 = new CPostItem(CPostItem.DataType.LONG, "EntryPayablePayTaxCategory");
            CPostItem        cpostItem24 = cpostItem23;

            this.m_PayTaxCategory = cpostItem23;
            postItems12.Add(cpostItem24);
            List <CPostItem> postItems13 = this.PostItems;
            CPostItem        cpostItem25 = new CPostItem(CPostItem.DataType.STRING, "EntryPayableInvoiceNumber");
            CPostItem        cpostItem26 = cpostItem25;

            this.m_InvoiceNumber = cpostItem25;
            postItems13.Add(cpostItem26);
            List <CPostItem> postItems14 = this.PostItems;
            CPostItem        cpostItem27 = new CPostItem(CPostItem.DataType.STRING, "EntryPayableExplanation");
            CPostItem        cpostItem28 = cpostItem27;

            this.m_Explanation = cpostItem27;
            postItems14.Add(cpostItem28);
            List <CPostItem> postItems15 = this.PostItems;
            CPostItem        cpostItem29 = new CPostItem(CPostItem.DataType.STRING, "EntryPayableQuickBooksID");
            CPostItem        cpostItem30 = cpostItem29;

            this.m_QuickBooksID = cpostItem29;
            postItems15.Add(cpostItem30);
            List <CPostItem> postItems16 = this.PostItems;
            CPostItem        cpostItem31 = new CPostItem(CPostItem.DataType.LONG, "EntryPayableReverseID");
            CPostItem        cpostItem32 = cpostItem31;

            this.m_ReverseEntryID = cpostItem31;
            postItems16.Add(cpostItem32);
            this.m_ExternalID_1  = new CPostItem(CPostItem.DataType.STRING, "ExternalID_1");
            this.m_ExternalID_2  = new CPostItem(CPostItem.DataType.STRING, "ExternalID_2");
            this.Alloc           = new APAlloc();
            this.listAllocations = new List <APAlloc>();
        }