Skip to content

Commit

Permalink
Add ESCPOS-Option to render seat name (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
pc-coholic authored Nov 2, 2021
1 parent c32fc3e commit 47b73bb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,13 @@ class ESCPOSRenderer(private val receipt: JSONObject, private val charsPerLine:
}
}
}
"seat" -> {
try {
receipt.getJSONObject("seat").optString(content[1])
} catch (ex: JSONException) {
""
}
}
else -> {
if (fullContent.startsWith("datetime")) {
getDate(receipt.getString(fullContent))
Expand Down

0 comments on commit 47b73bb

Please # to comment.