예제 #1
0
 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));
 }
예제 #2
0
        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;
        }
예제 #3
0
 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;
 }
예제 #4
0
 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);
 }