Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
fix: POS Print Ticket. (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt authored Aug 29, 2023
1 parent eb1ce6c commit 55d9ae8
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,16 +579,22 @@ function getPrintTicketFromGRPC (printTicketToConvert) {
if (!printTicketToConvert) {
return undefined;
}

const resultValues = {};
printTicketToConvert.getResultValuesMap().forEach((value, key) => {
resultValues[key] = value;
});
return {
summary: printTicketToConvert.getSummary(),
is_error: printTicketToConvert.getIsError(),
file_name: printTicketToConvert.getFileName(),
mime_type: printTicketToConvert.getMimeType(),
output_stream: printTicketToConvert.getOutputStream(),
result_type: printTicketToConvert.getResultType(),
result_values: Object.entries(
printTicketToConvert.getReturnValuesMap()
)
// result_values: Object.fromEntries(
// printTicketToConvert.getResultValuesMap()
// )
resultValues: resultValues
};
}

Expand Down

0 comments on commit 55d9ae8

Please sign in to comment.