Beispiel #1
0
        static void Main(string[] args)
        {
            Dictionary <string, double> articlesPrice = new Dictionary <string, double>();

            articlesPrice.Add("ball", 15.50);
            articlesPrice.Add("new year tree", 3500.00);
            articlesPrice.Add("doll Santa Claus", 500.00);

            Invoice order = new Invoice(1, "Customer", "Provider");

            order.Article  = "new year tree";
            order.Quantity = 5;

            order.CountOrder(order.Quantity, articlesPrice, out double sum, out double withTax);
            Console.WriteLine("Счет №{0}\nДля: {1}\tОт: {2}\nТовар: {3}\t{4} шт.\nСумма товара: {5}\n" +
                              "Сумма к оплате с НДС: {6}", order.account, order.customer, order.provider, order.Article, order.Quantity, sum, withTax);
            Console.ReadLine();
        }