Ejemplo n.º 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));
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }