-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNonFiscalReceipt.cs
More file actions
35 lines (28 loc) · 809 Bytes
/
NonFiscalReceipt.cs
File metadata and controls
35 lines (28 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
namespace ICLPrinterServer
{
public class NonFiscalReceipt
{
public string [] Header { get; set; }
public int Number { get; set; }
public DateTime TimeStamp { get; set; }
private List<FiscalReceiptLine> lines;
public List<FiscalReceiptLine> Lines
{
get => lines ?? (lines = new List<FiscalReceiptLine> ());
set => lines = value;
}
public NonFiscalReceipt ()
{
TimeStamp = DateTime.Now;
}
public void PrintHeader ()
{
Console.ForegroundColor = ConsoleColor.DarkGray;
foreach (var str in Header)
Console.WriteLine (str);
Console.WriteLine ();
}
}
}