backend-plus 1.18.5 → 1.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/backend-plus.js
CHANGED
|
@@ -3078,13 +3078,13 @@ AppBackend.prototype.exportacionesGenerico = async function exportacionesGeneric
|
|
|
3078
3078
|
if(fileName){
|
|
3079
3079
|
context.informProgress({message:'armando XLSX'})
|
|
3080
3080
|
var wb = XLSX.utils.book_new();
|
|
3081
|
-
result.map(({
|
|
3081
|
+
result.map(({title, rows})=>{
|
|
3082
3082
|
var rowsA = rows.map(row=>Object.values(row));
|
|
3083
3083
|
if(rows[0]){
|
|
3084
3084
|
rowsA.unshift(Object.keys(rows[0]));
|
|
3085
3085
|
}
|
|
3086
3086
|
var ws = XLSX.utils.aoa_to_sheet(rowsA);
|
|
3087
|
-
XLSX.utils.book_append_sheet(wb, ws,
|
|
3087
|
+
XLSX.utils.book_append_sheet(wb, ws, title);
|
|
3088
3088
|
return ws;
|
|
3089
3089
|
})
|
|
3090
3090
|
context.informProgress({message:`guardando XLSX: ${fileName}`})
|
package/package.json
CHANGED