Ejemplo n.º 1
0
 private void UpdateSalesTransactionLines(SalesTransaction salesTransaction)
 {
     DisplayedSalesTransactionLines.Clear();
     foreach (var line in salesTransaction.SalesTransactionLines.ToList())
     {
         DisplayedSalesTransactionLines.Add(new SalesTransactionLineVM {
             Model = line
         });
     }
 }
Ejemplo n.º 2
0
        private void ResetTransaction()
        {
            DisplayedSalesReturnTransactionLines.Clear();
            DisplayedSalesTransactionLines.Clear();

            Model      = new SalesReturnTransaction();
            NotEditing = true;

            SetNewSalesReturnTransactionID();
            SalesReturnTransactionDate     = UtilityMethods.GetCurrentDate().Date;
            SalesReturnTransactionNetTotal = 0;

            SelectedSalesTransactionID       = null;
            SelectedSalesTransactionCustomer = null;
            SelectedSalesTransactionLine     = null;

            NewEntryVM.SalesReturnNewEntryProduct  = null;
            NewEntryVM.SalesReturnNewEntryQuantity = 0;
            NewEntryVM.SalesReturnNewEntryPrice    = 0;
        }