public int AmountDesiredOfInventoryType(string type) { if (RequestedItems.ContainsKey(type) == false) { return(0); } Inventory inventory = DeliveredItems.ContainsKey(type) ? DeliveredItems[type] : null; return(RequestedItems[type].AmountDesired(inventory)); }
public int AmountDesiredOfInventoryType(string type) { RequestedItem requestedItem; if (RequestedItems.TryGetValue(type, out requestedItem) == false) { return(0); } Inventory inventory; if (DeliveredItems.TryGetValue(type, out inventory) == false) { inventory = null; } return(requestedItem.AmountDesired(inventory)); }
public void resetValueofVariables() { SelectedAdditionalFee = null; SelectedAvailedItem = null; SelectedAvailedServices = null; SelectedCustomerSupplier = null; SelectedEmployeeContractor = null; SelectedEmpPosition = null; SelectedJobTitle = null; SelectedPaymentH_ = null; SelectedPhase = null; SelectedPhaseGroup = null; SelectedPhasesPerService = null; SelectedProduct = null; SelectedProductCategory = null; SelectedProvince = null; SelectedPurchaseOrder = null; SelectedRegion = null; SelectedRequestedItem = null; SelectedSalesInvoice = null; SelectedSalesQuote = null; SelectedService = null; SelectedServiceSchedule_ = null; SelectedShipVia = null; SelectedUnit = null; isContractor = false; isEdit = false; isNewPurchaseOrder = false; isEditPurchaseOrder = false; isViewPurchaseOrder = false; isNewSalesQuote = false; isEditSalesQuote = false; isViewSalesQuote = false; isNewSchedule = false; isEditSchedule = false; isViewSchedule = false; isNewRecord = false; isNewSupplier = false; isNewTrans = false; isPaymentInvoice = false; isNewSched = false; isView = false; VatableSale = 0; VatExemptedSales = 0; TotalSalesWithOutDp = 0; ZeroRatedSales = 0; VatAmount = 0; TotalSales = 0; TotalSalesNoVat = 0; TotalDue = 0; TotalDueNoVat = 0; DiscountAmount = 0; WithHoldingTax = 0; Balance = 0; Downpayment = 0; DecimalTextBox = 0; IntegerTextBox = 0; StringTextBox = ""; DatePickerBox = DateTime.Now; RequestedItems.Clear(); }
public bool Remove(OrderItem item) { return(RequestedItems.Remove(item)); }
IEnumerator IEnumerable.GetEnumerator() { return(RequestedItems.GetEnumerator()); }
public IEnumerator <OrderItem> GetEnumerator() { return(RequestedItems.GetEnumerator()); }
public void CopyTo(OrderItem[] array, int arrayIndex) { RequestedItems.CopyTo(array, arrayIndex); }
public bool Contains(OrderItem item) { return(RequestedItems.Contains(item)); }
public void Clear() { RequestedItems.Clear(); }
public void Add(OrderItem item) { RequestedItems.Add(item); }