1.0.3
This commit is contained in:
@@ -21,4 +21,5 @@ public class ReceiptItem
|
||||
public decimal UnitPrice { get; set; }
|
||||
public decimal TotalPrice { get; set; }
|
||||
public string TaxCategory { get; set; }
|
||||
public List<string> SubItems { get; set; }
|
||||
}
|
||||
|
||||
@@ -41,6 +41,15 @@ public class ReceiptConverter
|
||||
|
||||
string itemLine = quantityDesc + new string(' ', spacesNeeded) + prices;
|
||||
commands.Add(new PrintCommand(itemLine));
|
||||
|
||||
// SubItems
|
||||
if (item.SubItems != null)
|
||||
{
|
||||
foreach (var subItem in item.SubItems)
|
||||
{
|
||||
commands.Add(new PrintCommand($" - {subItem}"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
commands.Add(new PrintCommand(""));
|
||||
|
||||
Reference in New Issue
Block a user