@softwear/latestcollectioncore 1.0.82 → 1.0.83
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.d.ts +1 -1
- package/dist/articleStatus.js +2 -1
- package/package.json +1 -1
- package/src/articleStatus.ts +2 -0
package/dist/articleStatus.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare function whichShardsToProcess(dateRange: any, granularity: 'year' | 'mon
|
|
|
14
14
|
*/
|
|
15
15
|
declare function postAgg(v: any, timeFrame: number): void;
|
|
16
16
|
declare function getTimeGrouper(groupers: string[]): TimeGranularityE | undefined;
|
|
17
|
-
declare function runQuery(timeframe: HrTimeframeI, rawAggregations: RaGI, beginStock: boolean, transactions: TransactionI[], selectedGroupsValues: string[], skus: SkuI[], warehouses: any[], subtotalsForOuterGrouper: boolean, computedFilter: string, parentGroupTotals: boolean): RaGI;
|
|
17
|
+
declare function runQuery(timeframe: HrTimeframeI, rawAggregations: RaGI, beginStock: boolean, transactions: TransactionI[], selectedGroupsValues: string[], skus: SkuI[], warehouses: any[], customers: any[], subtotalsForOuterGrouper: boolean, computedFilter: string, parentGroupTotals: boolean): RaGI;
|
|
18
18
|
declare const _default: {
|
|
19
19
|
getDateRangeFromPicker: (inputDates: string[]) => HrTimeframeI;
|
|
20
20
|
getTimeGrouper: typeof getTimeGrouper;
|
package/dist/articleStatus.js
CHANGED
|
@@ -275,7 +275,7 @@ function getTimeGrouper(groupers) {
|
|
|
275
275
|
return types_1.TimeGranularityE.DAY;
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
278
|
-
function runQuery(timeframe, rawAggregations, beginStock, transactions, selectedGroupsValues, skus, warehouses, subtotalsForOuterGrouper, computedFilter, parentGroupTotals) {
|
|
278
|
+
function runQuery(timeframe, rawAggregations, beginStock, transactions, selectedGroupsValues, skus, warehouses, customers, subtotalsForOuterGrouper, computedFilter, parentGroupTotals) {
|
|
279
279
|
const timeGrouper = getTimeGrouper(selectedGroupsValues);
|
|
280
280
|
const aggregationExpression = selectedGroupsValues
|
|
281
281
|
.map((g) => {
|
|
@@ -303,6 +303,7 @@ function runQuery(timeframe, rawAggregations, beginStock, transactions, selected
|
|
|
303
303
|
relations: {
|
|
304
304
|
sku: skus,
|
|
305
305
|
wh: warehouses,
|
|
306
|
+
customers: customers,
|
|
306
307
|
},
|
|
307
308
|
rawAggregations: rawAggregations,
|
|
308
309
|
maxRows: 100000,
|
package/package.json
CHANGED
package/src/articleStatus.ts
CHANGED
|
@@ -325,6 +325,7 @@ function runQuery(
|
|
|
325
325
|
selectedGroupsValues: string[],
|
|
326
326
|
skus: SkuI[],
|
|
327
327
|
warehouses: any[],
|
|
328
|
+
customers: any[],
|
|
328
329
|
subtotalsForOuterGrouper: boolean,
|
|
329
330
|
computedFilter: string,
|
|
330
331
|
parentGroupTotals: boolean
|
|
@@ -351,6 +352,7 @@ function runQuery(
|
|
|
351
352
|
relations: {
|
|
352
353
|
sku: skus,
|
|
353
354
|
wh: warehouses,
|
|
355
|
+
customers: customers,
|
|
354
356
|
},
|
|
355
357
|
rawAggregations: rawAggregations,
|
|
356
358
|
maxRows: 100000,
|