@softwear/latestcollectioncore 1.0.151 → 1.0.152
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/dist/articleStatus.js +11 -4
- package/package.json +1 -1
- package/src/articleStatus.ts +9 -2
package/dist/articleStatus.js
CHANGED
|
@@ -209,10 +209,17 @@ function aggregate({ beginTimestamp, endTimestamp, filterExpression, aggregation
|
|
|
209
209
|
subtotalsForOuterGrouper,
|
|
210
210
|
parentGroupTotals,
|
|
211
211
|
});
|
|
212
|
-
if (!beginStock)
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
if (!beginStock) {
|
|
213
|
+
for (const t of transactions) {
|
|
214
|
+
if (t.type != '0')
|
|
215
|
+
compiledAggregator(t);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
for (const t of transactions) {
|
|
220
|
+
compiledAggregator(t);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
216
223
|
return rawAggregations;
|
|
217
224
|
}
|
|
218
225
|
function whichShardsToProcess(dateRange, granularity) {
|
package/package.json
CHANGED
package/src/articleStatus.ts
CHANGED
|
@@ -301,8 +301,15 @@ function aggregate({
|
|
|
301
301
|
subtotalsForOuterGrouper,
|
|
302
302
|
parentGroupTotals,
|
|
303
303
|
})
|
|
304
|
-
if (!beginStock)
|
|
305
|
-
|
|
304
|
+
if (!beginStock) {
|
|
305
|
+
for (const t of transactions) {
|
|
306
|
+
if (t.type != '0') compiledAggregator(t)
|
|
307
|
+
}
|
|
308
|
+
} else {
|
|
309
|
+
for (const t of transactions) {
|
|
310
|
+
compiledAggregator(t)
|
|
311
|
+
}
|
|
312
|
+
}
|
|
306
313
|
|
|
307
314
|
return rawAggregations
|
|
308
315
|
}
|