@things-factory/product-base 8.0.6 → 9.0.0-beta.12
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-server/service/product/product-mutation.js +1 -1
- package/dist-server/service/product/product-mutation.js.map +1 -1
- package/dist-server/service/product/product-query.d.ts +1 -1
- package/dist-server/service/product/product-query.js +5 -7
- package/dist-server/service/product/product-query.js.map +1 -1
- package/dist-server/service/product/product-types.d.ts +2 -8
- package/dist-server/service/product/product-types.js +2 -26
- package/dist-server/service/product/product-types.js.map +1 -1
- package/dist-server/service/product/product.d.ts +2 -7
- package/dist-server/service/product/product.js +1 -24
- package/dist-server/service/product/product.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/server/constants/index.ts +0 -1
- package/server/constants/product.ts +0 -24
- package/server/controllers/index.ts +0 -0
- package/server/index.ts +0 -2
- package/server/middlewares/index.ts +0 -0
- package/server/migrations/index.ts +0 -9
- package/server/service/index.ts +0 -61
- package/server/service/product/index.ts +0 -6
- package/server/service/product/product-mutation.ts +0 -407
- package/server/service/product/product-query.ts +0 -338
- package/server/service/product/product-types.ts +0 -470
- package/server/service/product/product.ts +0 -562
- package/server/service/product/validate-product.ts +0 -42
- package/server/service/product-bundle/index.ts +0 -6
- package/server/service/product-bundle/product-bundle-mutation.ts +0 -140
- package/server/service/product-bundle/product-bundle-query.ts +0 -104
- package/server/service/product-bundle/product-bundle-types.ts +0 -51
- package/server/service/product-bundle/product-bundle.ts +0 -102
- package/server/service/product-bundle-setting/index.ts +0 -6
- package/server/service/product-bundle-setting/product-bundle-setting-mutation.ts +0 -168
- package/server/service/product-bundle-setting/product-bundle-setting-query.ts +0 -139
- package/server/service/product-bundle-setting/product-bundle-setting-types.ts +0 -41
- package/server/service/product-bundle-setting/product-bundle-setting.ts +0 -45
- package/server/service/product-combination/index.ts +0 -6
- package/server/service/product-combination/product-combination-mutation.ts +0 -148
- package/server/service/product-combination/product-combination-query.ts +0 -48
- package/server/service/product-combination/product-combination-type.ts +0 -50
- package/server/service/product-combination/product-combination.ts +0 -116
- package/server/service/product-combination-setting/index.ts +0 -6
- package/server/service/product-combination-setting/product-combination-setting-mutation.ts +0 -248
- package/server/service/product-combination-setting/product-combination-setting-query.ts +0 -176
- package/server/service/product-combination-setting/product-combination-setting-type.ts +0 -44
- package/server/service/product-combination-setting/product-combination-setting.ts +0 -77
- package/server/service/product-detail/index.ts +0 -6
- package/server/service/product-detail/product-detail-mutation.ts +0 -238
- package/server/service/product-detail/product-detail-query.ts +0 -213
- package/server/service/product-detail/product-detail-types.ts +0 -280
- package/server/service/product-detail/product-detail.ts +0 -388
- package/server/service/product-detail-bizplace-setting/index.ts +0 -6
- package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.ts +0 -118
- package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.ts +0 -90
- package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.ts +0 -62
- package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.ts +0 -104
- package/server/service/product-set/index.ts +0 -6
- package/server/service/product-set/product-set-mutation.ts +0 -149
- package/server/service/product-set/product-set-query.ts +0 -114
- package/server/service/product-set/product-set-types.ts +0 -45
- package/server/service/product-set/product-set.ts +0 -95
- package/server/utils/index.ts +0 -1
- package/server/utils/product-util.ts +0 -11
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { Field, Float, InputType, Int, ObjectType } from 'type-graphql'
|
|
2
|
-
|
|
3
|
-
import { ObjectRef } from '@things-factory/shell'
|
|
4
|
-
|
|
5
|
-
import { ProductDetail } from './product-detail'
|
|
6
|
-
|
|
7
|
-
@InputType()
|
|
8
|
-
export class NewProductDetail {
|
|
9
|
-
@Field()
|
|
10
|
-
name: string
|
|
11
|
-
|
|
12
|
-
@Field({ nullable: true })
|
|
13
|
-
gtin?: string
|
|
14
|
-
|
|
15
|
-
@Field({ nullable: true })
|
|
16
|
-
refCode?: string
|
|
17
|
-
|
|
18
|
-
@Field({ nullable: true })
|
|
19
|
-
product?: ObjectRef
|
|
20
|
-
|
|
21
|
-
@Field({ nullable: true })
|
|
22
|
-
isDefault: boolean
|
|
23
|
-
|
|
24
|
-
@Field({ nullable: true })
|
|
25
|
-
packingType?: string
|
|
26
|
-
|
|
27
|
-
@Field(type => Float, { nullable: true })
|
|
28
|
-
packingSize?: number
|
|
29
|
-
|
|
30
|
-
@Field({ nullable: true })
|
|
31
|
-
movement?: string
|
|
32
|
-
|
|
33
|
-
@Field({ nullable: true })
|
|
34
|
-
uom?: string
|
|
35
|
-
|
|
36
|
-
@Field(type => Float, { nullable: true })
|
|
37
|
-
uomValue?: number
|
|
38
|
-
|
|
39
|
-
@Field({ nullable: true })
|
|
40
|
-
childProductDetail?: ObjectRef
|
|
41
|
-
|
|
42
|
-
@Field(type => [ObjectRef], { nullable: true })
|
|
43
|
-
parentProductDetails?: ObjectRef[]
|
|
44
|
-
|
|
45
|
-
@Field(type => Float, { nullable: true })
|
|
46
|
-
childQty?: number
|
|
47
|
-
weightUnit?: string
|
|
48
|
-
|
|
49
|
-
@Field(type => Float, { nullable: true })
|
|
50
|
-
nettWeight?: number
|
|
51
|
-
|
|
52
|
-
@Field(type => Float, { nullable: true })
|
|
53
|
-
grossWeight?: number
|
|
54
|
-
lengthUnit?: string
|
|
55
|
-
|
|
56
|
-
@Field(type => Float, { nullable: true })
|
|
57
|
-
width?: number
|
|
58
|
-
|
|
59
|
-
@Field(type => Float, { nullable: true })
|
|
60
|
-
depth?: number
|
|
61
|
-
|
|
62
|
-
@Field(type => Float, { nullable: true })
|
|
63
|
-
height?: number
|
|
64
|
-
|
|
65
|
-
@Field(type => Float, { nullable: true })
|
|
66
|
-
volume?: number
|
|
67
|
-
|
|
68
|
-
@Field(type => Int, { nullable: true })
|
|
69
|
-
bufferQty?: number
|
|
70
|
-
|
|
71
|
-
@Field(type => Float, { nullable: true })
|
|
72
|
-
minQty?: number
|
|
73
|
-
|
|
74
|
-
@Field(type => Int, { nullable: true })
|
|
75
|
-
maxQty?: number
|
|
76
|
-
|
|
77
|
-
@Field({ nullable: true })
|
|
78
|
-
auxUnit1?: string
|
|
79
|
-
|
|
80
|
-
@Field({ nullable: true })
|
|
81
|
-
auxValue1?: string
|
|
82
|
-
|
|
83
|
-
@Field({ nullable: true })
|
|
84
|
-
auxUnit2?: string
|
|
85
|
-
|
|
86
|
-
@Field({ nullable: true })
|
|
87
|
-
auxValue2?: string
|
|
88
|
-
|
|
89
|
-
@Field({ nullable: true })
|
|
90
|
-
auxUnit3?: string
|
|
91
|
-
|
|
92
|
-
@Field({ nullable: true })
|
|
93
|
-
auxValue3?: string
|
|
94
|
-
|
|
95
|
-
@Field({ nullable: true })
|
|
96
|
-
auxUnit4?: string
|
|
97
|
-
|
|
98
|
-
@Field({ nullable: true })
|
|
99
|
-
auxValue4?: string
|
|
100
|
-
|
|
101
|
-
@Field({ nullable: true })
|
|
102
|
-
auxUnit5?: string
|
|
103
|
-
|
|
104
|
-
@Field({ nullable: true })
|
|
105
|
-
auxValue5?: string
|
|
106
|
-
|
|
107
|
-
@Field({ nullable: true })
|
|
108
|
-
isTrackedAsInventory?: boolean
|
|
109
|
-
|
|
110
|
-
@Field(type => Int, { nullable: true })
|
|
111
|
-
discountId?: number
|
|
112
|
-
|
|
113
|
-
@Field(type => Float, { nullable: true })
|
|
114
|
-
costPrice?: number
|
|
115
|
-
|
|
116
|
-
@Field(type => Float, { nullable: true })
|
|
117
|
-
mrpPrice?: number
|
|
118
|
-
|
|
119
|
-
@Field(type => Float, { nullable: true })
|
|
120
|
-
sellPrice?: number
|
|
121
|
-
|
|
122
|
-
@Field(type => Float, { nullable: true })
|
|
123
|
-
afterTaxCostPrice?: number
|
|
124
|
-
|
|
125
|
-
@Field(type => Float, { nullable: true })
|
|
126
|
-
afterTaxSalesPrice?: number
|
|
127
|
-
|
|
128
|
-
@Field({ nullable: true })
|
|
129
|
-
inventoryAccountCode?: string
|
|
130
|
-
|
|
131
|
-
@Field({ nullable: true })
|
|
132
|
-
cogsAccountCode?: string
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@ObjectType()
|
|
136
|
-
export class ProductDetailList {
|
|
137
|
-
@Field(type => [ProductDetail], { nullable: true })
|
|
138
|
-
items?: ProductDetail[]
|
|
139
|
-
|
|
140
|
-
@Field(type => Int, { nullable: true })
|
|
141
|
-
total?: number
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@InputType()
|
|
145
|
-
export class ProductDetailPatch {
|
|
146
|
-
@Field({ nullable: true })
|
|
147
|
-
id?: string
|
|
148
|
-
|
|
149
|
-
@Field({ nullable: true })
|
|
150
|
-
name?: string
|
|
151
|
-
|
|
152
|
-
@Field({ nullable: true })
|
|
153
|
-
gtin?: string
|
|
154
|
-
|
|
155
|
-
@Field({ nullable: true })
|
|
156
|
-
refCode?: string
|
|
157
|
-
|
|
158
|
-
@Field({ nullable: true })
|
|
159
|
-
product: ObjectRef
|
|
160
|
-
|
|
161
|
-
@Field({ nullable: true })
|
|
162
|
-
isDefault: boolean
|
|
163
|
-
|
|
164
|
-
@Field({ nullable: true })
|
|
165
|
-
packingType?: string
|
|
166
|
-
|
|
167
|
-
@Field(type => Float, { nullable: true })
|
|
168
|
-
packingSize?: number
|
|
169
|
-
|
|
170
|
-
@Field({ nullable: true })
|
|
171
|
-
movement?: string
|
|
172
|
-
|
|
173
|
-
@Field({ nullable: true })
|
|
174
|
-
uom?: string
|
|
175
|
-
|
|
176
|
-
@Field(type => Float, { nullable: true })
|
|
177
|
-
uomValue?: number
|
|
178
|
-
|
|
179
|
-
@Field({ nullable: true })
|
|
180
|
-
childProductDetail?: string
|
|
181
|
-
|
|
182
|
-
@Field({ nullable: true })
|
|
183
|
-
childGtin?: string
|
|
184
|
-
|
|
185
|
-
@Field(type => Float, { nullable: true })
|
|
186
|
-
childQty?: number
|
|
187
|
-
|
|
188
|
-
@Field({ nullable: true })
|
|
189
|
-
weightUnit?: string
|
|
190
|
-
|
|
191
|
-
@Field(type => Float, { nullable: true })
|
|
192
|
-
nettWeight?: number
|
|
193
|
-
|
|
194
|
-
@Field(type => Float, { nullable: true })
|
|
195
|
-
grossWeight?: number
|
|
196
|
-
|
|
197
|
-
@Field({ nullable: true })
|
|
198
|
-
lengthUnit?: string
|
|
199
|
-
|
|
200
|
-
@Field(type => Float, { nullable: true })
|
|
201
|
-
width?: number
|
|
202
|
-
|
|
203
|
-
@Field(type => Float, { nullable: true })
|
|
204
|
-
depth?: number
|
|
205
|
-
|
|
206
|
-
@Field(type => Float, { nullable: true })
|
|
207
|
-
height?: number
|
|
208
|
-
|
|
209
|
-
@Field(type => Float, { nullable: true })
|
|
210
|
-
volume?: number
|
|
211
|
-
|
|
212
|
-
@Field(type => Int, { nullable: true })
|
|
213
|
-
bufferQty?: number
|
|
214
|
-
|
|
215
|
-
@Field(type => Float, { nullable: true })
|
|
216
|
-
minQty?: number
|
|
217
|
-
|
|
218
|
-
@Field(type => Float, { nullable: true })
|
|
219
|
-
maxQty?: number
|
|
220
|
-
|
|
221
|
-
@Field({ nullable: true })
|
|
222
|
-
auxUnit1?: string
|
|
223
|
-
|
|
224
|
-
@Field({ nullable: true })
|
|
225
|
-
auxValue1?: string
|
|
226
|
-
|
|
227
|
-
@Field({ nullable: true })
|
|
228
|
-
auxUnit2?: string
|
|
229
|
-
|
|
230
|
-
@Field({ nullable: true })
|
|
231
|
-
auxValue2?: string
|
|
232
|
-
|
|
233
|
-
@Field({ nullable: true })
|
|
234
|
-
auxUnit3?: string
|
|
235
|
-
|
|
236
|
-
@Field({ nullable: true })
|
|
237
|
-
auxValue3?: string
|
|
238
|
-
|
|
239
|
-
@Field({ nullable: true })
|
|
240
|
-
auxUnit4?: string
|
|
241
|
-
|
|
242
|
-
@Field({ nullable: true })
|
|
243
|
-
auxValue4?: string
|
|
244
|
-
|
|
245
|
-
@Field({ nullable: true })
|
|
246
|
-
auxUnit5?: string
|
|
247
|
-
|
|
248
|
-
@Field({ nullable: true })
|
|
249
|
-
auxValue5?: string
|
|
250
|
-
|
|
251
|
-
@Field({ nullable: true })
|
|
252
|
-
isTrackedAsInventory: boolean
|
|
253
|
-
|
|
254
|
-
@Field(type => Int, { nullable: true })
|
|
255
|
-
discountId?: number
|
|
256
|
-
|
|
257
|
-
@Field(type => Float, { nullable: true })
|
|
258
|
-
costPrice?: number
|
|
259
|
-
|
|
260
|
-
@Field(type => Float, { nullable: true })
|
|
261
|
-
mrpPrice?: number
|
|
262
|
-
|
|
263
|
-
@Field(type => Float, { nullable: true })
|
|
264
|
-
sellPrice?: number
|
|
265
|
-
|
|
266
|
-
@Field(type => Float, { nullable: true })
|
|
267
|
-
afterTaxCostPrice?: number
|
|
268
|
-
|
|
269
|
-
@Field(type => Float, { nullable: true })
|
|
270
|
-
afterTaxSalesPrice?: number
|
|
271
|
-
|
|
272
|
-
@Field({ nullable: true })
|
|
273
|
-
inventoryAccountCode?: string
|
|
274
|
-
|
|
275
|
-
@Field({ nullable: true })
|
|
276
|
-
cogsAccountCode?: string
|
|
277
|
-
|
|
278
|
-
@Field({ nullable: true })
|
|
279
|
-
cuFlag?: string
|
|
280
|
-
}
|
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
import { Field, Float, ID, ObjectType } from 'type-graphql'
|
|
2
|
-
import {
|
|
3
|
-
Column,
|
|
4
|
-
CreateDateColumn,
|
|
5
|
-
Entity,
|
|
6
|
-
Index,
|
|
7
|
-
ManyToOne,
|
|
8
|
-
OneToMany,
|
|
9
|
-
PrimaryGeneratedColumn,
|
|
10
|
-
RelationId,
|
|
11
|
-
UpdateDateColumn
|
|
12
|
-
} from 'typeorm'
|
|
13
|
-
|
|
14
|
-
import { User } from '@things-factory/auth-base'
|
|
15
|
-
import { Domain, roundTransformer } from '@things-factory/shell'
|
|
16
|
-
|
|
17
|
-
import { ProductDetailBizplaceSetting } from '../product-detail-bizplace-setting/product-detail-bizplace-setting'
|
|
18
|
-
import { Product } from '../product/product'
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @prop {string} id - Primary Key.
|
|
22
|
-
* @prop {Object} domain - Stock Owner company domain.
|
|
23
|
-
* @prop {string} name - Product Detail Name.
|
|
24
|
-
* @prop {string} gtin - Global Trade Item Number or Product Detail Barcode. SKU, Manufacturer, and Packaging specific code. For Product Scanning Feature.
|
|
25
|
-
* @prop {?string} refCode - Product Reference Code.
|
|
26
|
-
* @prop {Object} product - Foreign field. Relation to Product Entity / Table.
|
|
27
|
-
* @prop {boolean} isDefault - Default SKU info.
|
|
28
|
-
* @prop {string} packingType - Packing type of current Product Detail.
|
|
29
|
-
* @prop {number} packingSize - Packing size of current Product Detail.
|
|
30
|
-
* @prop {string} movement - Movement of stocks. eg, FAST, NORMAL, SLOW.
|
|
31
|
-
* @prop {string} primaryUnit - UOM unit. eg, unit, kg, g, Lt, foot, m, cm, inch.
|
|
32
|
-
* @prop {number} primaryValue - nett content.
|
|
33
|
-
* @prop {?Object} childProductDetails - Foreign field. Relation to define child packaging level.
|
|
34
|
-
* @prop {?[Object]} parentProductDetails - Foreign field. List of relation to define parent packaging level.
|
|
35
|
-
* @prop {?number} childQty - (To Be Removed: Packing Size will be used instead)Used with packaging level definition to determine in a Child Product Detail contains how many Child Product Detail Qty.
|
|
36
|
-
* @prop {?string} weightUnit - Weight Unit Definition. eg, kg, g, t.
|
|
37
|
-
* @prop {?number} nettWeight - Nett Weight of this Product Detail.
|
|
38
|
-
* @prop {?number} grossWeight - Gross Weight of this Product Detail.
|
|
39
|
-
* @prop {?string} lengthUnit - Length Unit Definition. eg, m, cm, mm, inch, foot.
|
|
40
|
-
* @prop {?number} width - Width length of Product Detail.
|
|
41
|
-
* @prop {?number} depth - Depth length of Product Detail.
|
|
42
|
-
* @prop {?number} height - Height length of Product Detail.
|
|
43
|
-
* @prop {?number} volume - Volume of Product Detail. In m3.
|
|
44
|
-
* @prop {?number} bufferQty - Quantity for reservation.
|
|
45
|
-
* @prop {?number} minQty - Minimum Quantity targetted in inventory. For reporting purposes.
|
|
46
|
-
* @prop {?number} maxQty - Maximum Quantity targetted in inventory. For reporting purposes.
|
|
47
|
-
* @prop {?string} auxUnit1 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
48
|
-
* @prop {?string} auxValue1 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
49
|
-
* @prop {?string} auxUnit2 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
50
|
-
* @prop {?string} auxValue2 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
51
|
-
* @prop {?string} auxUnit3 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
52
|
-
* @prop {?string} auxValue3 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
53
|
-
* @prop {?string} auxUnit4 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
54
|
-
* @prop {?string} auxValue4 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
55
|
-
* @prop {?string} auxUnit5 - Auxiliary Unit or supplementary data for records and reporting purposes.
|
|
56
|
-
* @prop {?string} auxValue5 - Auxiliary Value or supplementary data for records and reporting purposes.
|
|
57
|
-
* @prop {?boolean} isTrackedAsInventory - For accounting integration purposes.
|
|
58
|
-
* @prop {?number} discountId - For accounting integration purposes.
|
|
59
|
-
* @prop {?number} costPrice - For accounting integration purposes.
|
|
60
|
-
* @prop {?number} mrpPrice - For accounting integration purposes.
|
|
61
|
-
* @prop {?number} sellPrice - For accounting integration purposes.
|
|
62
|
-
* @prop {?number} afterTaxCostPrice - For accounting integration purposes.
|
|
63
|
-
* @prop {?number} afterTaxSalesPrice - For accounting integration purposes.
|
|
64
|
-
* @prop {?string} inventoryAccountCode - For accounting integration purposes.
|
|
65
|
-
* @prop {?string} cogsAccountCode - For accounting integration purposes.
|
|
66
|
-
* @prop {?Date} deletedAt - Soft Delete Date and Time.
|
|
67
|
-
* @prop {Date} createdAt - Created Date and Time.
|
|
68
|
-
* @prop {Date} updatedAt - Updated Date and Time.
|
|
69
|
-
* @prop {?Object} creator - Foreign field. Relation to User Entity / Table.
|
|
70
|
-
* @prop {?Object} updater - Foreign field. Relation to User Entity / Table.
|
|
71
|
-
**/
|
|
72
|
-
|
|
73
|
-
@Entity()
|
|
74
|
-
@Index(
|
|
75
|
-
'ix_product_detail_0',
|
|
76
|
-
(productDetail: ProductDetail) => [productDetail.domain, productDetail.gtin, productDetail.product],
|
|
77
|
-
{ unique: true }
|
|
78
|
-
)
|
|
79
|
-
@Index('ix_product_detail_1', (productDetail: ProductDetail) => [productDetail.product])
|
|
80
|
-
@Index('ix_product_detail_2', (productDetail: ProductDetail) => [productDetail.domain, productDetail.refCode], {
|
|
81
|
-
unique: true
|
|
82
|
-
})
|
|
83
|
-
@ObjectType()
|
|
84
|
-
export class ProductDetail {
|
|
85
|
-
constructor(productDetail, extrasOnly = false) {
|
|
86
|
-
if (productDetail) {
|
|
87
|
-
if (!extrasOnly) {
|
|
88
|
-
this.domain = productDetail.domain
|
|
89
|
-
this.name = productDetail.name
|
|
90
|
-
this.creator = productDetail.creator
|
|
91
|
-
this.updater = productDetail.updater
|
|
92
|
-
}
|
|
93
|
-
this.gtin = productDetail.gtin
|
|
94
|
-
this.refCode = productDetail.refCode
|
|
95
|
-
this.product = productDetail.product
|
|
96
|
-
this.isDefault = productDetail.isDefault
|
|
97
|
-
this.packingType = productDetail.packingType
|
|
98
|
-
this.packingSize = productDetail.packingSize
|
|
99
|
-
this.movement = productDetail.movement || 'NORMAL'
|
|
100
|
-
this.uom = productDetail.uom
|
|
101
|
-
this.uomValue = productDetail.uomValue
|
|
102
|
-
this.childProductDetail = productDetail.childProductDetail
|
|
103
|
-
this.childQty = productDetail.childQty
|
|
104
|
-
this.weightUnit = productDetail.weightUnit
|
|
105
|
-
this.nettWeight = productDetail.nettWeight
|
|
106
|
-
this.grossWeight = productDetail.grossWeight
|
|
107
|
-
this.lengthUnit = productDetail.lengthUnit
|
|
108
|
-
this.width = productDetail.width
|
|
109
|
-
this.depth = productDetail.depth
|
|
110
|
-
this.height = productDetail.height
|
|
111
|
-
this.volume = productDetail.volume
|
|
112
|
-
this.bufferQty = productDetail.bufferQty || 0
|
|
113
|
-
this.minQty = productDetail.minQty || 0
|
|
114
|
-
this.maxQty = productDetail.maxQty || 0
|
|
115
|
-
this.auxUnit1 = productDetail.auxUnit1
|
|
116
|
-
this.auxValue1 = productDetail.auxValue1
|
|
117
|
-
this.auxUnit2 = productDetail.auxUnit2
|
|
118
|
-
this.auxValue2 = productDetail.auxValue2
|
|
119
|
-
this.auxUnit3 = productDetail.auxUnit3
|
|
120
|
-
this.auxValue3 = productDetail.auxValue3
|
|
121
|
-
this.auxUnit4 = productDetail.auxUnit4
|
|
122
|
-
this.auxValue4 = productDetail.auxValue4
|
|
123
|
-
this.auxUnit5 = productDetail.auxUnit5
|
|
124
|
-
this.auxValue5 = productDetail.auxValue5
|
|
125
|
-
this.isTrackedAsInventory = productDetail.isTrackedAsInventory
|
|
126
|
-
this.discountId = productDetail.discountId
|
|
127
|
-
this.costPrice = productDetail.costPrice
|
|
128
|
-
this.mrpPrice = productDetail.mrpPrice
|
|
129
|
-
this.sellPrice = productDetail.sellPrice
|
|
130
|
-
this.afterTaxCostPrice = productDetail.afterTaxCostPrice
|
|
131
|
-
this.afterTaxSalesPrice = productDetail.afterTaxSalesPrice
|
|
132
|
-
this.inventoryAccountCode = productDetail.inventoryAccountCode
|
|
133
|
-
this.cogsAccountCode = productDetail.cogsAccountCode
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@PrimaryGeneratedColumn('uuid')
|
|
138
|
-
@Field(type => ID)
|
|
139
|
-
readonly id: string
|
|
140
|
-
|
|
141
|
-
@ManyToOne(type => Domain)
|
|
142
|
-
@Field(type => Domain)
|
|
143
|
-
domain: Domain
|
|
144
|
-
|
|
145
|
-
@RelationId((productDetail: ProductDetail) => productDetail.domain)
|
|
146
|
-
domainId: string
|
|
147
|
-
|
|
148
|
-
@Column()
|
|
149
|
-
@Field()
|
|
150
|
-
name: string
|
|
151
|
-
|
|
152
|
-
@Column()
|
|
153
|
-
@Field()
|
|
154
|
-
gtin: string
|
|
155
|
-
|
|
156
|
-
@Column({ nullable: true })
|
|
157
|
-
@Field({ nullable: true })
|
|
158
|
-
refCode: string
|
|
159
|
-
|
|
160
|
-
@ManyToOne(type => Product)
|
|
161
|
-
@Field(type => Product)
|
|
162
|
-
product: Product
|
|
163
|
-
|
|
164
|
-
@Column({ default: false })
|
|
165
|
-
@Field()
|
|
166
|
-
isDefault: boolean
|
|
167
|
-
|
|
168
|
-
@Column()
|
|
169
|
-
@Field()
|
|
170
|
-
packingType: string
|
|
171
|
-
|
|
172
|
-
@Column('float', { default: 1, transformer: roundTransformer })
|
|
173
|
-
@Field()
|
|
174
|
-
packingSize: number
|
|
175
|
-
|
|
176
|
-
@Column({ default: 'NORMAL' })
|
|
177
|
-
@Field()
|
|
178
|
-
movement: string
|
|
179
|
-
|
|
180
|
-
@Column()
|
|
181
|
-
@Field()
|
|
182
|
-
uom: string
|
|
183
|
-
|
|
184
|
-
@Column('float', { transformer: roundTransformer })
|
|
185
|
-
@Field()
|
|
186
|
-
uomValue: number
|
|
187
|
-
|
|
188
|
-
@ManyToOne(type => ProductDetail, { nullable: true })
|
|
189
|
-
@Field(type => ProductDetail, { nullable: true })
|
|
190
|
-
childProductDetail: ProductDetail
|
|
191
|
-
|
|
192
|
-
@OneToMany(type => ProductDetail, productDetail => productDetail.childProductDetail, { nullable: true })
|
|
193
|
-
@Field(type => [ProductDetail], { nullable: true })
|
|
194
|
-
parentProductDetails: ProductDetail[]
|
|
195
|
-
|
|
196
|
-
@OneToMany(
|
|
197
|
-
type => ProductDetailBizplaceSetting,
|
|
198
|
-
productDetailBizplaceSetting => productDetailBizplaceSetting.productDetail,
|
|
199
|
-
{ nullable: true }
|
|
200
|
-
)
|
|
201
|
-
@Field(type => [ProductDetailBizplaceSetting], { nullable: true })
|
|
202
|
-
productDetailBizplaceSettings: ProductDetailBizplaceSetting[]
|
|
203
|
-
|
|
204
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
205
|
-
@Field({ nullable: true })
|
|
206
|
-
childQty: number
|
|
207
|
-
|
|
208
|
-
@Column({ nullable: true })
|
|
209
|
-
@Field({ nullable: true })
|
|
210
|
-
weightUnit: string
|
|
211
|
-
|
|
212
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
213
|
-
@Field({ nullable: true })
|
|
214
|
-
nettWeight: number
|
|
215
|
-
|
|
216
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
217
|
-
@Field({ nullable: true })
|
|
218
|
-
grossWeight: number
|
|
219
|
-
|
|
220
|
-
@Column({ nullable: true })
|
|
221
|
-
@Field({ nullable: true })
|
|
222
|
-
lengthUnit: string
|
|
223
|
-
|
|
224
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
225
|
-
@Field({ nullable: true })
|
|
226
|
-
width: number
|
|
227
|
-
|
|
228
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
229
|
-
@Field({ nullable: true })
|
|
230
|
-
depth: number
|
|
231
|
-
|
|
232
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
233
|
-
@Field({ nullable: true })
|
|
234
|
-
height: number
|
|
235
|
-
|
|
236
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
237
|
-
@Field({ nullable: true })
|
|
238
|
-
volume: number
|
|
239
|
-
|
|
240
|
-
@Column({ default: 0 })
|
|
241
|
-
@Field()
|
|
242
|
-
bufferQty: number
|
|
243
|
-
|
|
244
|
-
@Column('float', { default: 0, transformer: roundTransformer })
|
|
245
|
-
@Field()
|
|
246
|
-
minQty: number
|
|
247
|
-
|
|
248
|
-
@Column('float', { default: 0, transformer: roundTransformer })
|
|
249
|
-
@Field()
|
|
250
|
-
maxQty: number
|
|
251
|
-
|
|
252
|
-
@Field({ nullable: true })
|
|
253
|
-
sku?: string
|
|
254
|
-
|
|
255
|
-
@Field({ nullable: true })
|
|
256
|
-
productId?: string
|
|
257
|
-
|
|
258
|
-
@Field({ nullable: true })
|
|
259
|
-
brand?: string
|
|
260
|
-
|
|
261
|
-
@Field({ nullable: true })
|
|
262
|
-
description?: string
|
|
263
|
-
|
|
264
|
-
@Field({ nullable: true })
|
|
265
|
-
type?: string
|
|
266
|
-
|
|
267
|
-
@Column({ nullable: true })
|
|
268
|
-
@Field({ nullable: true })
|
|
269
|
-
auxUnit1: string
|
|
270
|
-
|
|
271
|
-
@Column({ nullable: true })
|
|
272
|
-
@Field({ nullable: true })
|
|
273
|
-
auxValue1: string
|
|
274
|
-
|
|
275
|
-
@Column({ nullable: true })
|
|
276
|
-
@Field({ nullable: true })
|
|
277
|
-
auxUnit2: string
|
|
278
|
-
|
|
279
|
-
@Column({ nullable: true })
|
|
280
|
-
@Field({ nullable: true })
|
|
281
|
-
auxValue2: string
|
|
282
|
-
|
|
283
|
-
@Column({ nullable: true })
|
|
284
|
-
@Field({ nullable: true })
|
|
285
|
-
auxUnit3: string
|
|
286
|
-
|
|
287
|
-
@Column({ nullable: true })
|
|
288
|
-
@Field({ nullable: true })
|
|
289
|
-
auxValue3: string
|
|
290
|
-
|
|
291
|
-
@Column({ nullable: true })
|
|
292
|
-
@Field({ nullable: true })
|
|
293
|
-
auxUnit4: string
|
|
294
|
-
|
|
295
|
-
@Column({ nullable: true })
|
|
296
|
-
@Field({ nullable: true })
|
|
297
|
-
auxValue4: string
|
|
298
|
-
|
|
299
|
-
@Column({ nullable: true })
|
|
300
|
-
@Field({ nullable: true })
|
|
301
|
-
auxUnit5: string
|
|
302
|
-
|
|
303
|
-
@Column({ nullable: true })
|
|
304
|
-
@Field({ nullable: true })
|
|
305
|
-
auxValue5: string
|
|
306
|
-
|
|
307
|
-
//// For Accounting Integration ////
|
|
308
|
-
@Column({ nullable: true })
|
|
309
|
-
@Field({ nullable: true })
|
|
310
|
-
isTrackedAsInventory: boolean
|
|
311
|
-
|
|
312
|
-
//// For Accounting Integration ////
|
|
313
|
-
@Column({ nullable: true })
|
|
314
|
-
@Field({ nullable: true })
|
|
315
|
-
discountId: number
|
|
316
|
-
|
|
317
|
-
//// For Accounting Integration ////
|
|
318
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
319
|
-
@Field({ nullable: true })
|
|
320
|
-
costPrice: number
|
|
321
|
-
|
|
322
|
-
//// For Accounting Integration ////
|
|
323
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
324
|
-
@Field({ nullable: true })
|
|
325
|
-
mrpPrice: number
|
|
326
|
-
|
|
327
|
-
//// For Accounting Integration ////
|
|
328
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
329
|
-
@Field({ nullable: true })
|
|
330
|
-
sellPrice: number
|
|
331
|
-
|
|
332
|
-
//// For Accounting Integration ////
|
|
333
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
334
|
-
@Field({ nullable: true })
|
|
335
|
-
afterTaxCostPrice: number
|
|
336
|
-
|
|
337
|
-
//// For Accounting Integration ////
|
|
338
|
-
@Column('float', { nullable: true, transformer: roundTransformer })
|
|
339
|
-
@Field({ nullable: true })
|
|
340
|
-
afterTaxSalesPrice: number
|
|
341
|
-
|
|
342
|
-
//// For Accounting Integration ////
|
|
343
|
-
@Column({ nullable: true })
|
|
344
|
-
@Field({ nullable: true })
|
|
345
|
-
inventoryAccountCode: string
|
|
346
|
-
|
|
347
|
-
//// For Accounting Integration ////
|
|
348
|
-
@Column({ nullable: true })
|
|
349
|
-
@Field({ nullable: true })
|
|
350
|
-
cogsAccountCode: string
|
|
351
|
-
|
|
352
|
-
@Field(type => Float, { nullable: true })
|
|
353
|
-
bundleQty: number
|
|
354
|
-
|
|
355
|
-
@Field({ nullable: true })
|
|
356
|
-
isRequireSerialNumberScanningInbound: boolean
|
|
357
|
-
|
|
358
|
-
@Field({ nullable: true })
|
|
359
|
-
isRequireSerialNumberScanningOutbound: boolean
|
|
360
|
-
|
|
361
|
-
@Column({ nullable: true })
|
|
362
|
-
@Field({ nullable: true })
|
|
363
|
-
deletedAt: Date
|
|
364
|
-
|
|
365
|
-
@CreateDateColumn()
|
|
366
|
-
@Field({ nullable: true })
|
|
367
|
-
createdAt: Date
|
|
368
|
-
|
|
369
|
-
@UpdateDateColumn()
|
|
370
|
-
@Field({ nullable: true })
|
|
371
|
-
updatedAt: Date
|
|
372
|
-
|
|
373
|
-
@ManyToOne(type => User, {
|
|
374
|
-
nullable: true
|
|
375
|
-
})
|
|
376
|
-
creator: User
|
|
377
|
-
|
|
378
|
-
@RelationId((productDetail: ProductDetail) => productDetail.creator)
|
|
379
|
-
creatorId: string
|
|
380
|
-
|
|
381
|
-
@ManyToOne(type => User, {
|
|
382
|
-
nullable: true
|
|
383
|
-
})
|
|
384
|
-
updater: User
|
|
385
|
-
|
|
386
|
-
@RelationId((productDetail: ProductDetail) => productDetail.updater)
|
|
387
|
-
updaterId: string
|
|
388
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ProductDetailBizplaceSetting } from './product-detail-bizplace-setting'
|
|
2
|
-
import { ProductDetailBizplaceSettingMutation } from './product-detail-bizplace-setting-mutation'
|
|
3
|
-
import { ProductDetailBizplaceSettingQuery } from './product-detail-bizplace-setting-query'
|
|
4
|
-
|
|
5
|
-
export const entities = [ProductDetailBizplaceSetting]
|
|
6
|
-
export const resolvers = [ProductDetailBizplaceSettingQuery, ProductDetailBizplaceSettingMutation]
|