diff --git a/apps/web-client-tpos-net/src/WebClientTpos.Client/Services/ReceiptPrintService.cs b/apps/web-client-tpos-net/src/WebClientTpos.Client/Services/ReceiptPrintService.cs index 79bba90d..a345f581 100644 --- a/apps/web-client-tpos-net/src/WebClientTpos.Client/Services/ReceiptPrintService.cs +++ b/apps/web-client-tpos-net/src/WebClientTpos.Client/Services/ReceiptPrintService.cs @@ -101,8 +101,6 @@ public class ReceiptPrintService sb.Append($"body {{ font-family: 'Courier New', monospace; font-size: {fontSize}; width: {contentW}mm; margin: 0 auto; color: #000; }}"); sb.Append(".c { text-align: center; } .b { font-weight: bold; }"); sb.Append(".d { border-top: 1px dashed #000; margin: 6px 0; }"); - sb.Append("table { width: 100%; border-collapse: collapse; }"); - sb.Append("th { text-align: left; border-bottom: 1px solid #000; padding: 2px 0; }"); sb.Append(".r { display: flex; justify-content: space-between; padding: 2px 0; }"); sb.Append(".f { text-align: center; margin-top: 8px; color: #555; }"); sb.Append("
"); @@ -134,16 +132,16 @@ public class ReceiptPrintService sb.Append(""); // ── ITEMS ── - if (t.ShowItemList) + if (t.ShowItemList && d.Items.Count > 0) { - sb.Append("| Sản phẩm | SL | Tiền |
|---|---|---|
| {Enc(item.Name)} | "); - sb.Append($"x{item.Qty} | "); - sb.Append($"{item.Qty * item.Price:N0} |