Skip to content

SudoSOS Back-end API / helpers / reduceMapToReportEntries

Function: reduceMapToReportEntries() ​

ts
function reduceMapToReportEntries(productMap): TransactionReportEntry[];

Transforms an array of SubTransactionRows of a single product to TransactionReportEntries

Parameters ​

ParameterTypeDescription
productMapMap<string, SubTransactionRow[]>-

Returns ​

TransactionReportEntry[]