Exemple #1
0
        public void SetIsPaidByCreditCardToSaleProduct(bool isPaidByCreditCard, SaleProduct saleProduct)
        {
            saleProduct.IsPaidByCreditCard = isPaidByCreditCard;
            saleProduct.IsPrivate          = (isPaidByCreditCard == true) ? false : saleProduct.IsPrivate;
            saleProduct.IsForGuest         = false;
            dataAccess.EditSaleProduct(saleToday.Id, saleProduct);

            OnPropertyChanged("Sales");
            OnPropertyChanged("SaleToday");
        }