public partsearch() { int idx; // // TODO: Add constructor logic here // for (idx = 0; idx < 202; idx++) { lns[idx] = new partdata(); } }
public int applypricebreakchange(partdata newpartdata, decimal vat_rate) { mCurrentUnitPrice = newpartdata.Price; mLineValue = newpartdata.Price * mQty; mLineNetValue = newpartdata.NetPrice * mQty; mDiscount = 0; // cancel any previous discount on line //if (mBaseUnitPrice > 0) //{ // mLineNetValue = Decimal.Round((mLineValue * mBaseNetPrice / mBaseUnitPrice),2); //} //else //{ // mLineNetValue = Decimal.Round((mLineValue * 100.0M / (100.0M + vat_rate)),2); //} mLineTaxValue = mLineValue - mLineNetValue; mBaseUnitPrice = newpartdata.Price; mBaseNetPrice = newpartdata.NetPrice; mBaseTaxPrice = BaseUnitPrice - mBaseNetPrice; return(0); }
public menuitem() { // // TODO: Add constructor logic here // menuCaption = ""; menuFont = ""; menuFontSize = 10; menuFontBold = false; menuFontItalic = false; menuFontColour = ""; menuBackColour = ""; menuId = ""; menuPart = ""; menuSubGroup = ""; menuImage = ""; menuButton = null; partinfo = new partdata(); stdColour = System.Drawing.Color.White; }
//2016-09-08 SL - 5.000 - V3 to V5 Upgrade ^^ public void copypartdata(partdata src) { this.mDescription = src.Description; this.mFullDescription = src.FullDescription; this.mDiscNotAllowed = src.DiscNotAllowed; this.mDiscRequired = src.DiscRequired; this.mHeadDiscRequired = src.HeadDiscRequired; this.mFromDate = src.FromDate; this.mMaxDiscAllowed = src.MaxDiscAllowed; this.mMedical = src.Medical; this.mNetPrice = src.NetPrice; this.mNotes = src.Notes; this.mOfferData = src.OfferData; this.mPartNumber = src.PartNumber; this.mPrice = src.Price; this.mProdGroup = src.ProdGroup; this.mProdGroupDesc = src.ProdGroupDesc; this.mSalesGroupDesc = src.SalesGroupDesc; this.mQty = src.Qty; this.mScript = src.Script; this.mSelect = src.Select; this.mStock = src.Stock; this.mTaxValue = src.TaxValue; this.mTaxRate = src.TaxRate; this.mToDate = src.ToDate; this.mDiscount = src.Discount; //this.mHeadDiscount = src.HeadDiscount; this.mSaleType = src.mSaleType; this.mSaleTypeDesc = src.mSaleTypeDesc; this.mSerialNumber = src.mSerialNumber; this.mLineMessage = src.mLineMessage; this.mComponentData = src.mComponentData; this.mAlternativeParts = src.mAlternativeParts; this.mObsoleteCode = src.ObsoleteCode; this.mConsolidateGroup = src.ConsolidateGroup; this.mPartType = src.PartType; }
public partdata(partdata src) { this.copypartdata(src); }