provide more space on item names
to prevent wrongly-spaced tabs
This commit is contained in:
parent
1c9feb9eaf
commit
666daaa623
1 changed files with 2 additions and 2 deletions
|
@ -124,11 +124,11 @@ public class receipt {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (data.get("cart").toString().isBlank()) {
|
if (data.get("cart").toString().isBlank()) {
|
||||||
data.put("cart", "Quantity\tItem\tPrice\tTotal");
|
data.put("cart", "Quantity\tItem\n\tPrice\tTotal");
|
||||||
};
|
};
|
||||||
|
|
||||||
data.put("cart", data.get("cart").toString().concat("\n"));
|
data.put("cart", data.get("cart").toString().concat("\n"));
|
||||||
String item_current = String.join("\t", String.valueOf(QUANTITY), NAME, String.valueOf(PRICE), String.valueOf(TOTAL));
|
String item_current = String.join("\t", String.valueOf(QUANTITY), NAME, "\n", String.valueOf(PRICE), String.valueOf(TOTAL));
|
||||||
data.put("cart", data.get("cart").toString().concat(item_current));
|
data.put("cart", data.get("cart").toString().concat(item_current));
|
||||||
|
|
||||||
// Refresh.
|
// Refresh.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue