private bool IsSalesReturnLineAbleToCombineWithNewEntry(SalesReturnTransactionLineVM salesReturnTransactionLine) { return(salesReturnTransactionLine.Item.ID.Equals(_parentVM.SelectedSalesTransactionLine.Item.ID) && salesReturnTransactionLine.Warehouse.ID.Equals(_parentVM.SelectedSalesTransactionLine.Warehouse.ID) && salesReturnTransactionLine.SalesPrice.Equals(_parentVM.SelectedSalesTransactionLine.SalesPrice) && salesReturnTransactionLine.Discount.Equals(_parentVM.SelectedSalesTransactionLine.Discount) && salesReturnTransactionLine.ReturnPrice.Equals(_salesReturnNewEntryPrice)); }
private void CombineSalesReturnLineWithNewEntry(SalesReturnTransactionLineVM salesReturnTransactionLine) { var salesReturnNewEntryQuantity = _salesReturnNewEntryQuantity; salesReturnTransactionLine.Quantity += salesReturnNewEntryQuantity; salesReturnTransactionLine.Total += salesReturnNewEntryQuantity * _salesReturnNewEntryPrice; salesReturnTransactionLine.CostOfGoodsSold = SalesReturnTransactionLineHelper.GetSalesReturnTransactionLineCOGS(salesReturnTransactionLine.Model); _parentVM.SalesReturnTransactionNetTotal += salesReturnNewEntryQuantity * salesReturnTransactionLine.Model.SalesPrice; }
private void CombineSalesReturnLineWithNewEntry(SalesReturnTransactionLineVM salesReturnTransactionLine) { var salesReturnNewEntryQuantity = _salesReturnNewEntryQuantity; salesReturnTransactionLine.Quantity += salesReturnNewEntryQuantity; salesReturnTransactionLine.Total += salesReturnNewEntryQuantity*_salesReturnNewEntryPrice; salesReturnTransactionLine.CostOfGoodsSold = SalesReturnTransactionLineHelper.GetSalesReturnTransactionLineCOGS(salesReturnTransactionLine.Model); _parentVM.SalesReturnTransactionNetTotal += salesReturnNewEntryQuantity* salesReturnTransactionLine.Model.SalesPrice; }
private bool IsSalesReturnLineAbleToCombineWithNewEntry(SalesReturnTransactionLineVM salesReturnTransactionLine) { return salesReturnTransactionLine.Item.ID.Equals(_parentVM.SelectedSalesTransactionLine.Item.ID) && salesReturnTransactionLine.Warehouse.ID.Equals(_parentVM.SelectedSalesTransactionLine.Warehouse.ID) && salesReturnTransactionLine.SalesPrice.Equals(_parentVM.SelectedSalesTransactionLine.SalesPrice) && salesReturnTransactionLine.Discount.Equals(_parentVM.SelectedSalesTransactionLine.Discount) && salesReturnTransactionLine.ReturnPrice.Equals(_salesReturnNewEntryPrice); }