@things-factory/operato-wms 4.3.287 → 4.3.290

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.
@@ -7,14 +7,17 @@ import { MultiColumnFormStyles } from '@things-factory/form-ui'
7
7
  import { i18next, localize } from '@things-factory/i18n-base'
8
8
  import { client } from '@things-factory/shell'
9
9
  import { isMobileDevice } from '@things-factory/utils'
10
+ import { VAS_TYPES } from '@things-factory/sales-ui/client/constants/vas'
10
11
 
11
12
  class SelectVasPopup extends localize(i18next)(LitElement) {
12
13
  static get properties() {
13
14
  return {
14
- config: Object,
15
- data: Object,
15
+ vasConfig: Object,
16
+ selectedVasConfig: Object,
17
+ vasData: Object,
16
18
  type: String,
17
- partnerBizplaceIds: Array
19
+ partnerBizplaceIds: Array,
20
+ selectedVasData: Object
18
21
  }
19
22
  }
20
23
 
@@ -55,7 +58,11 @@ class SelectVasPopup extends localize(i18next)(LitElement) {
55
58
  padding: var(--subtitle-padding);
56
59
  font: var(--subtitle-font);
57
60
  color: var(--subtitle-text-color);
58
- border-bottom: var(--subtitle-border-bottom);
61
+ }
62
+ h3 {
63
+ font: var(--subtitle-font);
64
+ color: var(--subtitle-text-color);
65
+ text-align: center;
59
66
  }
60
67
  .grist h2 {
61
68
  font: var(--grist-title-font);
@@ -74,20 +81,34 @@ class SelectVasPopup extends localize(i18next)(LitElement) {
74
81
  constructor() {
75
82
  super()
76
83
  this.partnerBizplaceIds = []
84
+ this.vasData = { records: [], total: 0 }
85
+ this.selectedVasData = { records: [] }
77
86
  }
78
87
 
79
88
  render() {
80
89
  return html`
81
- <search-form id="search-form" .fields=${this._searchFields} @submit=${() => this.dataGrist.fetch()}></search-form>
82
-
90
+ <h3>${this.currentSku.productSKU} (${this.currentSku.batchId})</h3>
83
91
  <div class="container">
84
92
  <div class="grist">
93
+ <search-form id="vas" .fields=${this._vasSearchFields} @submit=${() => this.vasGrist.fetch()}></search-form>
94
+ <h2><mwc-icon>arrow_forward</mwc-icon>${i18next.t('title.vas')}</h2>
85
95
  <data-grist
96
+ id="vas"
86
97
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
87
- .config=${this.config}
98
+ .config=${this.vasConfig}
88
99
  .fetchHandler="${this.fetchVas.bind(this)}"
89
100
  ></data-grist>
90
101
  </div>
102
+
103
+ <div class="grist">
104
+ <h2><mwc-icon>arrow_back</mwc-icon>${i18next.t('title.selected_vas')}</h2>
105
+ <data-grist
106
+ id="selectedVas"
107
+ .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
108
+ .config=${this.selectedVasConfig}
109
+ .data=${this.selectedVasData}
110
+ ></data-grist>
111
+ </div>
91
112
  </div>
92
113
 
93
114
  <div class="button-container">
@@ -103,7 +124,13 @@ class SelectVasPopup extends localize(i18next)(LitElement) {
103
124
  }
104
125
 
105
126
  firstUpdated() {
106
- this.config = {
127
+ // pre-exsiting vas
128
+ if (this.currentSelectedVas) {
129
+ this.selectedVasData.records = this.currentSelectedVas
130
+ this.currentSelectedVas = undefined
131
+ }
132
+
133
+ this.vasConfig = {
107
134
  list: {
108
135
  fields: ['name', 'description', 'type']
109
136
  },
@@ -117,7 +144,28 @@ class SelectVasPopup extends localize(i18next)(LitElement) {
117
144
  },
118
145
  columns: [
119
146
  { type: 'gutter', gutterName: 'sequence' },
120
- { type: 'gutter', gutterName: 'row-selector', multiple: true },
147
+ {
148
+ type: 'gutter',
149
+ gutterName: 'button',
150
+ icon: 'add',
151
+ handlers: {
152
+ click: (columns, data, column, record, rowIndex) => {
153
+ this.selectedVasData = {
154
+ records: [
155
+ ...this.selectedVasData?.records,
156
+ {
157
+ id: record.id,
158
+ name: record.name,
159
+ description: record.description,
160
+ type: record.type
161
+ }
162
+ ]
163
+ }
164
+
165
+ this.firstUpdated()
166
+ }
167
+ }
168
+ },
121
169
  {
122
170
  type: 'string',
123
171
  name: 'name',
@@ -133,34 +181,119 @@ class SelectVasPopup extends localize(i18next)(LitElement) {
133
181
  {
134
182
  type: 'string',
135
183
  name: 'type',
184
+ header: i18next.t('field.type'),
185
+ width: 350
186
+ }
187
+ ]
188
+ }
189
+
190
+ this.selectedVasConfig = {
191
+ list: {
192
+ fields: ['name', 'description', 'type']
193
+ },
194
+ pagination: { infinite: true },
195
+ rows: {
196
+ selectable: {
197
+ multiple: true
198
+ },
199
+ appendable: false
200
+ // handlers: { dblclick: this._dblClickHandler.bind(this) }
201
+ },
202
+ columns: [
203
+ { type: 'gutter', gutterName: 'sequence' },
204
+ {
205
+ type: 'gutter',
206
+ gutterName: 'button',
207
+ icon: 'close',
208
+ handlers: {
209
+ click: (columns, data, column, record, rowIndex) => {
210
+ this.selectedVasGrist.dirtyData?.records.splice(rowIndex, 1)
211
+ this.selectedVasData = { records: this.selectedVasGrist.dirtyData?.records }
212
+ this.firstUpdated()
213
+ }
214
+ }
215
+ },
216
+ {
217
+ type: 'string',
218
+ name: 'name',
219
+ header: i18next.t('field.name'),
220
+ width: 300
221
+ },
222
+ {
223
+ type: 'string',
224
+ name: 'description',
136
225
  header: i18next.t('field.description'),
137
226
  width: 350
227
+ },
228
+ {
229
+ type: 'string',
230
+ name: 'type',
231
+ header: i18next.t('field.type'),
232
+ width: 350
138
233
  }
139
234
  ]
140
235
  }
141
236
 
142
- this._searchFields = [
237
+ const type = VAS_TYPES
238
+
239
+ this._vasSearchFields = [
143
240
  {
144
- label: i18next.t('label.name'),
145
- name: 'name',
241
+ label: i18next.t('label.vas'),
242
+ name: 'vas_info',
146
243
  type: 'text',
147
244
  props: { searchOper: 'i_like' }
245
+ },
246
+ {
247
+ label: i18next.t('field.type'),
248
+ name: 'type',
249
+ type: 'select',
250
+ options: [
251
+ { value: '' },
252
+ ...Object.values(type)
253
+ .map(type => {
254
+ return {
255
+ name: type,
256
+ value: type
257
+ }
258
+ })
259
+ .sort()
260
+ ],
261
+ props: { searchOper: 'eq' }
148
262
  }
149
263
  ]
150
264
  }
151
265
 
152
- get dataGrist() {
153
- return this.shadowRoot.querySelector('data-grist')
266
+ _filterSelectedVas() {
267
+ this.selectedVasSearchForm.getQueryFilters
268
+ }
269
+
270
+ get vasGrist() {
271
+ return this.shadowRoot.querySelector('data-grist#vas')
272
+ }
273
+
274
+ get selectedVasGrist() {
275
+ return this.shadowRoot.querySelector('data-grist#selectedVas')
154
276
  }
155
277
 
156
- get searchForm() {
157
- return this.shadowRoot.querySelector('search-form')
278
+ get vasSearchForm() {
279
+ return this.shadowRoot.querySelector('search-form#vas')
280
+ }
281
+
282
+ get selectedVasSearchForm() {
283
+ return this.shadowRoot.querySelector('search-form#selectedVas')
158
284
  }
159
285
 
160
286
  async fetchVas({ page, limit, sorters = [{ name: 'name' }] }) {
161
- let filters = await this.searchForm.getQueryFilters()
287
+ let filters = await this.vasSearchForm.getQueryFilters()
288
+
289
+ if (this.selectedVasData?.records.length > 0) {
290
+ filters.push({
291
+ name: 'id',
292
+ operator: 'notin',
293
+ value: this.selectedVasData?.records.map(selected => selected.id)
294
+ })
295
+ }
162
296
 
163
- if (this.type) filters = [...filters, { name: 'type', operator: 'eq', value: this.type }]
164
297
  if (this.partnerBizplaceIds && this.partnerBizplaceIds.length > 0)
165
298
  filters = [...filters, { name: 'bizplace_id', operator: 'in', value: this.partnerBizplaceIds }]
166
299
 
@@ -181,7 +314,7 @@ class SelectVasPopup extends localize(i18next)(LitElement) {
181
314
  variables: { filters, pagination: { page, limit }, sortings: sorters }
182
315
  })
183
316
 
184
- return {
317
+ this.vasData = {
185
318
  total: response.data.vass.total || 0,
186
319
  records:
187
320
  response.data.vass.items.map(res => {
@@ -195,12 +328,16 @@ class SelectVasPopup extends localize(i18next)(LitElement) {
195
328
  }
196
329
  }) || []
197
330
  }
331
+
332
+ return {
333
+ total: this.vasData.total,
334
+ records: this.vasData?.records
335
+ }
198
336
  }
199
337
 
200
338
  _selectVas() {
201
- const selectedVas = this.dataGrist.selected
202
- if (selectedVas) {
203
- this.dispatchEvent(new CustomEvent('selected', { detail: this.dataGrist.selected }))
339
+ if (this.selectedVasGrist.dirtyData.records.length > 0) {
340
+ this.dispatchEvent(new CustomEvent('selected', { detail: this.selectedVasGrist.dirtyData.records }))
204
341
  history.back()
205
342
  } else {
206
343
  document.dispatchEvent(new CustomEvent('notify', { detail: { message: i18next.t('text.nothing_selected') } }))
@@ -109,7 +109,8 @@ export class VasTargetproductPopup extends localize(i18next)(LitElement) {
109
109
  targetList: Array,
110
110
  vasGristConfig: Object,
111
111
  vasGristData: Object,
112
- vasList: Array
112
+ vasList: Array,
113
+ selectMultiple: Boolean
113
114
  }
114
115
  }
115
116
 
@@ -225,6 +226,7 @@ export class VasTargetproductPopup extends localize(i18next)(LitElement) {
225
226
  }
226
227
 
227
228
  firstUpdated() {
229
+ this.selectMultiple = this.productSKU ? false : true
228
230
  this.targetData = { records: [...this.targetList] }
229
231
  this.searchFields = [
230
232
  {
@@ -238,7 +240,7 @@ export class VasTargetproductPopup extends localize(i18next)(LitElement) {
238
240
  fields: ['batchId', 'product', 'packingType', 'packQty', 'assignedPackQty', 'totalUomValue', 'assignedUomValue']
239
241
  },
240
242
  pagination: { infinite: true },
241
- rows: { appendable: false, selectable: { multiple: true } },
243
+ rows: { appendable: false, selectable: { multiple: this.selectMultiple } },
242
244
  columns: [
243
245
  { type: 'gutter', gutterName: 'sequence' },
244
246
  {
@@ -105,28 +105,30 @@ class OrderVasReport extends connect(store)(localize(i18next)(PageView)) {
105
105
  props: { searchOper: 'eq' }
106
106
  },
107
107
  {
108
- label: i18next.t('field.executed_at_from_date'),
108
+ label: i18next.t('field.from_date'),
109
109
  name: 'fromDate',
110
110
  type: 'date',
111
111
  props: {
112
- searchOper: 'eq',
112
+ searchOper: 'gte',
113
113
  max: new Date().toISOString().split('T')[0]
114
114
  },
115
+ value: (() => {
116
+ let date = new Date()
117
+ date.setMonth(date.getMonth() - 1)
118
+ return date.toISOString().split('T')[0]
119
+ })(),
115
120
  handlers: { change: this._modifyDateRange.bind(this) }
116
121
  },
117
122
  {
118
- label: i18next.t('field.executed_at_to_date'),
123
+ label: i18next.t('field.to_date'),
119
124
  name: 'toDate',
120
125
  type: 'date',
121
126
  props: {
122
- searchOper: 'eq',
123
- min: (() => {
124
- let date = new Date()
125
- date.setMonth(date.getMonth() - 1)
126
- return date.toISOString().split('T')[0]
127
- })(),
127
+ searchOper: 'lte',
128
128
  max: new Date().toISOString().split('T')[0]
129
- }
129
+ },
130
+ value: new Date().toISOString().split('T')[0],
131
+ handlers: { change: this._modifyDateRange.bind(this) }
130
132
  },
131
133
  {
132
134
  label: i18next.t('field.product_info'),
@@ -484,6 +486,16 @@ class OrderVasReport extends connect(store)(localize(i18next)(PageView)) {
484
486
  }
485
487
 
486
488
  _validate() {
489
+ if (this._fromDateInput.value === '') {
490
+ throw new Error(i18next.t('text.from_date_is_empty'))
491
+ }
492
+ if (this._toDateInput.value === '') {
493
+ throw new Error(i18next.t('text.to_date_is_empty'))
494
+ }
495
+ if (new Date(this._fromDateInput.value) > new Date(this._toDateInput.value)) {
496
+ throw new Error(i18next.t('text.to_date_cannot_be_before_from_date'))
497
+ }
498
+
487
499
  if (!this.searchForm.shadowRoot.querySelector('form').checkValidity())
488
500
  throw new Error(i18next.t('text.invalid_form_value'))
489
501
  if (!this._bizplaceSelector.value) throw new Error(i18next.t('text.no_company_selected'))
@@ -94,7 +94,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
94
94
  name: 'bizplace',
95
95
  type: 'select',
96
96
  options: [
97
- { value: '' },
97
+ { value: '' },
98
98
  ...this._partners
99
99
  .map(partner => {
100
100
  return {
@@ -107,28 +107,30 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
107
107
  props: { searchOper: 'eq' }
108
108
  },
109
109
  {
110
- label: i18next.t('field.latest_execution_from_date'),
110
+ label: i18next.t('field.from_date'),
111
111
  name: 'fromDate',
112
112
  type: 'date',
113
113
  props: {
114
114
  searchOper: 'eq',
115
115
  max: new Date().toISOString().split('T')[0]
116
116
  },
117
+ value: (() => {
118
+ let date = new Date()
119
+ date.setMonth(date.getMonth() - 1)
120
+ return date.toISOString().split('T')[0]
121
+ })(),
117
122
  handlers: { change: this._modifyDateRange.bind(this) }
118
123
  },
119
124
  {
120
- label: i18next.t('field.latest_execution_to_date'),
125
+ label: i18next.t('field.to_date'),
121
126
  name: 'toDate',
122
127
  type: 'date',
123
128
  props: {
124
- searchOper: 'eq',
125
- min: (() => {
126
- let date = new Date()
127
- date.setMonth(date.getMonth() - 1)
128
- return date.toISOString().split('T')[0]
129
- })(),
129
+ searchOper: 'lte',
130
130
  max: new Date().toISOString().split('T')[0]
131
- }
131
+ },
132
+ value: new Date().toISOString().split('T')[0],
133
+ handlers: { change: this._modifyDateRange.bind(this) }
132
134
  },
133
135
  {
134
136
  label: i18next.t('field.vas'),
@@ -141,17 +143,18 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
141
143
  name: 'type',
142
144
  type: 'select',
143
145
  options: [
144
- { value: '' },
145
- ...Object.values(type)
146
- .map(type => { return {
146
+ { value: '' },
147
+ ...Object.values(type)
148
+ .map(type => {
149
+ return {
147
150
  name: type,
148
151
  value: type
149
- }})
152
+ }
153
+ })
150
154
  .sort()
151
-
152
155
  ],
153
156
  props: { searchOper: 'eq' }
154
- },
157
+ }
155
158
  ]
156
159
  }
157
160
 
@@ -159,9 +162,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
159
162
  return {
160
163
  rows: {
161
164
  selectable: false,
162
- groups: [
163
- { column: 'bizplaceName' }
164
- ],
165
+ groups: [{ column: 'bizplaceName' }],
165
166
  totals: ['vasQty']
166
167
  },
167
168
  columns: [
@@ -182,13 +183,13 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
182
183
  width: 600
183
184
  },
184
185
  {
185
- type: 'string',
186
- name: 'type',
187
- header: i18next.t('field.type'),
188
- sortable: false,
189
- imex: { header: i18next.t('field.type'), key: 'type', width: 10, type: 'string' },
190
- width: 150
191
- },
186
+ type: 'string',
187
+ name: 'type',
188
+ header: i18next.t('field.type'),
189
+ sortable: false,
190
+ imex: { header: i18next.t('field.type'), key: 'type', width: 10, type: 'string' },
191
+ width: 150
192
+ },
192
193
  {
193
194
  type: 'number',
194
195
  name: 'vasQty',
@@ -198,13 +199,13 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
198
199
  width: 70
199
200
  },
200
201
  {
201
- type: 'datetime',
202
- name: 'executedAt',
203
- header: i18next.t('field.latest_execution'),
204
- sortable: false,
205
- imex: { header: i18next.t('field.latest_execution'), key: 'executedAt', width: 20, type: 'string' },
206
- width: 160
207
- }
202
+ type: 'datetime',
203
+ name: 'executedAt',
204
+ header: i18next.t('field.latest_execution'),
205
+ sortable: false,
206
+ imex: { header: i18next.t('field.latest_execution'), key: 'executedAt', width: 20, type: 'string' },
207
+ width: 160
208
+ }
208
209
  ]
209
210
  }
210
211
  }
@@ -324,25 +325,20 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
324
325
  }
325
326
 
326
327
  _validate() {
328
+ if (this._fromDateInput.value === '') {
329
+ throw new Error(i18next.t('text.from_date_is_empty'))
330
+ }
331
+ if (this._toDateInput.value === '') {
332
+ throw new Error(i18next.t('text.to_date_is_empty'))
333
+ }
334
+ if (new Date(this._fromDateInput.value) > new Date(this._toDateInput.value)) {
335
+ throw new Error(i18next.t('text.to_date_cannot_be_before_from_date'))
336
+ }
327
337
  if (!this.searchForm.shadowRoot.querySelector('form').checkValidity())
328
338
  throw new Error(i18next.t('text.invalid_form_value'))
329
339
  if (!this._bizplaceSelector.value) throw new Error(i18next.t('text.no_company_selected'))
330
340
  }
331
341
 
332
- _modifyDateRange(e) {
333
- const fromDate = e.currentTarget.value
334
-
335
- if (this._toDateInput.value < fromDate) this._toDateInput.value = fromDate
336
-
337
- let min = new Date(fromDate)
338
- let today = new Date()
339
- today.setHours(0, 0, 0, 0)
340
-
341
- min = min.toISOString().split('T')[0]
342
-
343
- this._toDateInput.min = min
344
- }
345
-
346
342
  _compareValues(key, order = 'asc') {
347
343
  return function innerSort(a, b) {
348
344
  if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
@@ -400,6 +396,20 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
400
396
  }
401
397
  }
402
398
 
399
+ _modifyDateRange(e) {
400
+ const fromDate = e.currentTarget.value
401
+
402
+ if (this._toDateInput.value < fromDate) this._toDateInput.value = fromDate
403
+
404
+ let min = new Date(fromDate)
405
+ let today = new Date()
406
+ today.setHours(0, 0, 0, 0)
407
+
408
+ min = min.toISOString().split('T')[0]
409
+
410
+ this._toDateInput.min = min
411
+ }
412
+
403
413
  _showToast({ type, message }) {
404
414
  document.dispatchEvent(
405
415
  new CustomEvent('notify', {
@@ -6,28 +6,28 @@ module.exports = {
6
6
  subdomainOffset: 2,
7
7
  port: 1100,
8
8
  inspect: '9430',
9
- // ormconfig: {
10
- // name: 'default',
11
- // type: 'postgres',
12
- // database: 'dev',
13
- // username: 'postgres',
14
- // password: 'hatio',
15
- // host: '192.168.0.161',
16
- // port: 15432,
17
- // synchronize: true,
18
- // logging: true
19
- // },
20
9
  ormconfig: {
21
10
  name: 'default',
22
11
  type: 'postgres',
23
- database: 'postgres',
12
+ database: 'dev',
24
13
  username: 'postgres',
25
- password: 'abcd1234',
26
- host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
- port: 55432,
14
+ password: 'hatio',
15
+ host: '192.168.0.161',
16
+ port: 15432,
28
17
  synchronize: false,
29
18
  logging: true
30
19
  },
20
+ // ormconfig: {
21
+ // name: 'default',
22
+ // type: 'postgres',
23
+ // database: 'postgres',
24
+ // username: 'postgres',
25
+ // password: 'abcd1234',
26
+ // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
+ // port: 55432,
28
+ // synchronize: false,
29
+ // logging: true
30
+ // },
31
31
  sellercraftIntegrationConfig: {
32
32
  apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
33
33
  },
@@ -110,7 +110,7 @@ exports.orderVasReport = {
110
110
  `);
111
111
  const result = await tx.query(`
112
112
  select * from temp_vas_order_report
113
- order by "created_at" desc, "order_no", "sku", "batch_no", "order_vas_name"
113
+ order by "order_no" asc,"created_at" desc, "order_no", "sku", "batch_no", "order_vas_name"
114
114
  `);
115
115
  let items = result.map(item => {
116
116
  let data = {
@@ -179,12 +179,6 @@ exports.vasReport = {
179
179
  });
180
180
  await (0, utils_1.rawProductsQuery)(tx, params, bizplace);
181
181
  let extraQueryFilter = '';
182
- if (fromDate) {
183
- extraQueryFilter = `${extraQueryFilter} and executed_at >= '%${fromDate.value}%' `;
184
- }
185
- if (toDate) {
186
- extraQueryFilter = `${extraQueryFilter} and executed_at <= '%${toDate.value}%' `;
187
- }
188
182
  if (vasFilter) {
189
183
  extraQueryFilter = `${extraQueryFilter} and (
190
184
  vas_name ilike '%${vasFilter.value}%'
@@ -203,25 +197,22 @@ exports.vasReport = {
203
197
  (SELECT coalesce(SUM(ovi.vas_qty), 0)
204
198
  FROM order_vas_items ovi
205
199
  inner join order_vass ov on ov.id = ovi.order_vas_id
206
- inner join worksheet_details wd on ov.id = wd.target_vas_id
207
- inner join worksheets w on wd.worksheet_id = w.id
208
- inner join release_goods rg on w.release_good_id = rg.id
200
+ inner join release_goods rg on ov.release_good_id = rg.id
201
+ inner join worksheets w on ov.release_good_id = w.release_good_id
209
202
  inner join bizplaces b on rg.bizplace_id = b.id
210
203
  WHERE ovi.vas_id = v.id
211
- and b.id = $1
204
+ and w.bizplace_id = $1
205
+ and w."type" = 'VAS'
212
206
  and ((w.status <> 'CANCELLED'
213
207
  and rg.status not in ('CANCELLED', 'PENDING_CANCEL'))
214
208
  or (ovi.executed_at notnull and rg.status in ('CANCELLED', 'PENDING_CANCEL')))
209
+ and ovi.executed_at >= $3 and ovi.executed_at <= $4
215
210
  ) as "vas_qty",
216
211
  (SELECT max(ovi2.executed_at)
217
212
  FROM order_vas_items ovi2
218
213
  inner join order_vass ov2 on ov2.id = ovi2.order_vas_id
219
- inner join worksheet_details wd2 on wd2.target_vas_id = ov2.id
220
- inner join worksheets w2 on w2.id = wd2.worksheet_id
221
- inner join release_goods rg2 on rg2.id = w2.release_good_id
222
- inner join bizplaces b2 on b2.id = rg2.bizplace_id
223
214
  WHERE ovi2.vas_id = v.id
224
- and b2.id = $1
215
+ and ov2.bizplace_id = $1
225
216
  ) as "executed_at"
226
217
  from vass v
227
218
  where v.domain_id = $2
@@ -229,7 +220,7 @@ exports.vasReport = {
229
220
  where 1=1
230
221
  ${extraQueryFilter}
231
222
  )
232
- `, [bizplace.id, domain.id]);
223
+ `, [bizplace.id, domain.id, fromDate.value, toDate.value]);
233
224
  const total = await tx.query(`
234
225
  select count(*) from temp_vas_order_report
235
226
  `);
@@ -1 +1 @@
1
- {"version":3,"file":"vas-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/vas-report.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,KAAK,CAAC,cAAc,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC1D,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAC1E,IAAI,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,CAAA;YAC1E,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAA;YAClE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU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