finalize the receipt

This commit is contained in:
buzzcode2007 2024-02-28 10:44:56 +08:00
parent 0860bcecf5
commit a37e9240bb

View file

@ -81,7 +81,7 @@ public class receipt {
return(content);
};
public static String headers() {
private static String headers() {
/* Generate the headers.
*/
@ -164,5 +164,18 @@ public class receipt {
return(data.get("payment"));
};
private static String footer() {
data.put("footer", "Thank you for shopping with us. Have a good day. "); // POC. must replace
refresh();
return(data.get("footer"));
}
public static String finish() {
footer();
refresh();
return(content);
}
}