Exemple #1
0
 public orderline(orderline ln)
 {
     //
     // TODO: Add constructor logic here
     //
     mLine             = ln.Line;
     mMasterLine       = ln.MasterLine;
     mMasterMultiplier = ln.MasterMultiplier;
     mPart             = ln.Part;
     mDescr            = ln.Descr;
     mProdGroup        = ln.ProdGroup;
     mProdGroupDesc    = ln.ProdGroupDesc;
     mSalesGroupDesc   = ln.SalesGroupDesc;
     mQty           = ln.Qty;                            // Quantity entered
     mBaseUnitPrice = ln.BaseUnitPrice;                  // as received from uniface validpart
     mBaseTaxPrice  = ln.BaseTaxPrice;                   // as received from uniface validpart
     mBaseNetPrice  = ln.BaseNetPrice;                   // as received from uniface validpart
     mDiscount      = ln.Discount;                       // Total discount on line
     //mDiscountType = ln.DiscountType;
     mCascadingDiscount = ln.CascadingDiscount;
     mDiscPercent       = ln.DiscPercent;        // Percentage entered (If by %)
     //mHeadDiscPercent = ln.HeadDiscPercent;
     mLineValue         = ln.LineValue;          // Current total line value after discount applied
     mLineNetValue      = ln.LineNetValue;       // Net value frigged for price change/discount
     mLineTaxValue      = ln.LineTaxValue;       // Tax value frigged for price change/discount
     mCurrentUnitPrice  = ln.CurrentUnitPrice;   // current unit price (incl Tax)
     mSupervisor        = ln.Supervisor;
     mReasonCode        = ln.ReasonCode;
     mOrigPrice         = ln.OrigPrice;
     mPriceModified     = ln.PriceModified;
     mReturn            = ln.Return;
     mVatExempt         = ln.VatExempt;
     mDiscNotAllowed    = ln.DiscNotAllowed;
     mMaxDiscount       = ln.MaxDiscount;
     mSaleType          = ln.mSaleType;
     mSaleTypeDesc      = ln.mSaleTypeDesc;
     mHeavyPostage      = ln.HeavyPostage;
     mHeavyPostageValue = ln.HeavyPostageValue;
     mLineMessage       = ln.LineMessage;
     mConsolidateGroup  = ln.ConsolidateGroup;
     mGiftLine          = ln.GiftLine;
     //mConsolidatePrice = ln.ConsolidatePrice;
     //mLineTransactRef = ln.LineTransactRef;
     mPartType = ln.PartType;
 }
Exemple #2
0
        public orderdata(orderdata ord)
        {
            int idx;

            //
            // TODO: Add constructor logic here
            //
            mOrderType          = ord.OrdType;
            mOrderNumber        = ord.OrderNumber;
            mOrderDate          = ord.OrderDate;
            mReturnOrderNumber  = ord.ReturnOrderNumber;
            mNumLines           = ord.NumLines;
            mTotVal             = ord.TotVal;
            mTotNetVal          = ord.TotNetVal;
            mTotTaxVal          = ord.TotTaxVal;
            mLineVal            = ord.LineVal;
            mCashVal            = ord.CashVal;
            mChangeVal          = ord.ChangeVal;
            mDarVouch1ChangeVal = ord.DarVouch1ChangeVal;
            mDarVouch2ChangeVal = ord.DarVouch2ChangeVal;
            mChequeVal          = ord.ChequeVal;
            mTransactRef        = ord.TransactRef;
            mDarVouch1Ref       = ord.DarVouch1Ref;
            mDarVouch2Ref       = ord.DarVouch2Ref;
            mCashTransactRef    = ord.CashTransactRef;
            mFinanceRef         = ord.FinanceRef;
            mCardVal            = ord.CardVal;
            mVoucherVal         = ord.VoucherVal;
            mDarVouch1Val       = ord.DarVouch1Val;
            mDarVouch2Val       = ord.DarVouch2Val;
            mDar1VoucherList    = ord.Dar1VoucherList;
            mDar2VoucherList    = ord.Dar2VoucherList;
            mAccountVal         = ord.AccountVal;
            mFinanceVal         = ord.FinanceVal;
            mAccountRef         = ord.AccountRef;
            mDepCashVal         = ord.DepCashVal;
            mDepChequeVal       = ord.DepChequeVal;
            mDepCardVal         = ord.DepCardVal;
            mTotCardVal         = ord.TotCardVal;
            mDiscountVal        = ord.DiscountVal;
            mDiscPercent        = ord.DiscPercent;
            mHeadDiscPercent    = ord.HeadDiscPercent;
            mDiscountReason     = ord.DiscountReason;
            mRemainderVal       = ord.RemainderVal;
            mOrdCarrier         = ord.OrdCarrier;
            mDelMethod          = ord.DelMethod;
            mTillOpened         = ord.TillOpened;
            mPriceSource        = ord.PriceSource;
            mSourceDescr        = ord.SourceDescr;
            mCollectionType     = ord.CollectionType;
            mSalesType          = ord.SalesType;
            mSalesTypeDesc      = ord.SalesTypeDesc;
            mSalesReference     = ord.SalesReference;
            mNewPoints          = ord.NewPoints;
            mNewPointsValue     = ord.NewPointsValue;
            mManualCC           = ord.ManualCC;
            mVouchers           = ord.Vouchers;
            mReason             = ord.Reason;

            mEReceipt        = ord.EReceipt;
            mEReceiptRequest = ord.EReceiptRequest;

            for (idx = 0; idx < 200; idx++)
            {
                if (idx < ord.NumLines)
                {
                    lns[idx] = new orderline(ord.lns[idx]);
                }
                else
                {
                    lns[idx] = new orderline();
                }
            }

            for (idx = 0; idx < 10; idx++)
            {
                cds[idx] = new cardpayment();
            }
        }
Exemple #3
0
        private void buildorder(OrderType typ)
        {
            int idx;

            //
            // TODO: Add constructor logic here
            //
            mOrderType          = typ;
            mOrderNumber        = "";
            mReturnOrderNumber  = "";
            mNumLines           = 0;
            mTotVal             = 0.0M;
            mTotNetVal          = 0.0M;
            mTotTaxVal          = 0.0M;
            mLineVal            = 0.0M;
            mCashVal            = 0.0M;
            mChangeVal          = 0.0M;
            mDarVouch1ChangeVal = 0.0M;
            mDarVouch2ChangeVal = 0.0M;
            mChequeVal          = 0.0M;
            mTransactRef        = "";
            mDarVouch1Ref       = "";
            mDarVouch2Ref       = "";
            mCashTransactRef    = "";
            mFinanceRef         = "";
            mCardVal            = 0.0M;
            mVoucherVal         = 0.0M;
            //mDarVouch2 = 0.0m;
            mAccountVal      = 0.0M;
            mFinanceVal      = 0.0M;
            mAccountRef      = "";
            mDepCashVal      = 0.0M;
            mDepChequeVal    = 0.0M;
            mDepCardVal      = 0.0M;
            mTotCardVal      = 0.0M;
            mDiscountVal     = 0.0M;
            mDiscPercent     = 0.0M;
            mHeadDiscPercent = 0.0M;
            mDiscountReason  = "";
            mRemainderVal    = 0.0M;
            mOrdCarrier      = "";
            mDelMethod       = "";
            mTillOpened      = false;
            mPriceSource     = "";
            mSourceDescr     = "";
            mCollectionType  = "Normal";
            mSalesType       = 0;
            mSalesTypeDesc   = "";
            mSalesReference  = "";
            mNewPoints       = 0;
            mNewPointsValue  = 0.00M;
            mManualCC        = false;
            mVouchers        = new System.Collections.SortedList();
            mReason          = "";

            //2017-07-04 SL 5.0.0.14 >>
            mEReceipt        = false;
            mEReceiptRequest = false;
            //2017-07-04 SL 5.0.0.14 ^^

            for (idx = 0; idx < 200; idx++)
            {
                lns[idx] = new orderline();
            }

            for (idx = 0; idx < 10; idx++)
            {
                cds[idx] = new cardpayment();
            }
        }