public App_RepairPart(JT_ServiceEquipmentParts part, App_RepairItem TODO) { // stub to stop errors _ciOptions = App.Database.GetCIOptions(); quantityFormatString = String.Concat("{0:F", _ciOptions.NumberOfDecimalPlacesInQty, "}"); umFormatString = string.Concat("{0:F", _ciOptions.NumberOfDecimalPlacesInUM, "}"); costFormatString = string.Concat("{0:F", _ciOptions.NumberOfDecimalPlacesInCost, "}"); priceFormatString = string.Concat("{0:F", _ciOptions.NumberOfDecimalPlacesInPrice, "}"); }
public App_RepairPart(JT_ServiceEquipmentParts part, App_WorkTicket workTicket, CI_Item item) { _ciOptions = App.Database.GetCIOptions(); quantityFormatString = String.Concat("{0:F", _ciOptions.NumberOfDecimalPlacesInQty, "}"); umFormatString = string.Concat("{0:F", _ciOptions.NumberOfDecimalPlacesInUM, "}"); costFormatString = string.Concat("{0:F", _ciOptions.NumberOfDecimalPlacesInCost, "}"); priceFormatString = string.Concat("{0:F", _ciOptions.NumberOfDecimalPlacesInPrice, "}"); _workTicket = workTicket; _id = 0; _parentItemCode = workTicket.DtlRepairItemCode; _partItemCode = part.ItemCode; _partItemCodeDescription = item.ItemCodeDesc; _warehouse = item.DefaultWarehouseCode; _problemCode = part.ProblemCode; _quantity = part.Quantity; // dch rkl 12/02/2016 Get Item Unit Cost based on JT_Options.DefaultPartsCost _unitCost = GetItemUnitCost(item.LastTotalUnitCost, item.AverageUnitCost, item.StandardUnitCost); //_unitCost = (double)item.StandardUnitCost; _unitPrice = (double)item.StandardUnitPrice; // dch rkl 02/03/2017 Use the sales unit of measure instead of the standard unit of measure //_unitOfMeasure = item.StandardUnitOfMeasure; _unitOfMeasure = item.SalesUnitOfMeasure; _comment = ""; _isChargeable = part.IsChargeable; _isPrintable = part.IsPrintable; _isPurchased = part.IsPurchased; _isOverhead = part.IsOverhead; // dch rkl 11/23/2016 Add Item Type _itemType = item.ItemType; // dch rkl 12/05/2016 Add Item Valuation _valuation = item.Valuation; // dch rkl 11/30/2016 add quantity required _quantityReqd = 0; // dch rkl 12/05/2016 add qty shipped _quantityShipped = 0; // dch rkl 01/13/2017 Add Extended Description _itemCodeDesc = ""; // dch rkl 01/23/2017 Sales Order Line Key _soLineKey = ""; }
public App_RepairPart(JT_ServiceEquipmentParts part, App_RepairItem puke) { // puke...stub to stop errors }