Skip to content

Commit 8dcea4d

Browse files
committed
add new internal location to AppConfig
1 parent a20f6d5 commit 8dcea4d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/config/AppConfig.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export enum LOCATION_KEY {
2626
WARD = 'ward',
2727
NO_PICK_AND_PUTAWAY_STOCK = 'noPickAndPutawayStockDepot',
2828
BIN_LOCATION = 'internalLocation',
29+
BIN_LOCATION2 = 'internalLocation2',
2930
}
3031

3132
export enum PRODUCT_KEY {
@@ -270,6 +271,19 @@ class AppConfig {
270271
type: LocationTypeCode.BIN_LOCATION,
271272
parentLocation: env.get('LOCATION_MAIN').required().asString(),
272273
}),
274+
275+
internalLocation2: new LocationConfig({
276+
id: env.get('LOCATION_INTERNAL_TWO').asString(),
277+
key: LOCATION_KEY.BIN_LOCATION,
278+
name: this.uniqueIdentifier.generateUniqueString('bin-location2'),
279+
requiredActivityCodes: new Set([
280+
ActivityCode.PICK_STOCK,
281+
ActivityCode.PUTAWAY_STOCK,
282+
]),
283+
required: false,
284+
type: LocationTypeCode.BIN_LOCATION,
285+
parentLocation: env.get('LOCATION_MAIN').required().asString(),
286+
}),
273287
};
274288

275289
this.products = {

0 commit comments

Comments
 (0)