on 04-22-2015 9:22 AM
I want to use the predefined number series for orders, which is possible by setting local properties keygen.order.code.start=. But the order numbers are getting increment by 2(default behavior of hybris), whenever the order is placed it should get increased by 1. Is there any way to change or control the increment value by 1.
You should specify : numberseries.cache.size.NUMBERSERIESKEY = 1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Otherwise, you can override CreateOrderFromCartStrategy injected by your customOrderCodeGenerator to use your sequence for the orders created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since Cnd Order uses the 'orderCodeGenerator', everytime alternatively Order code is increased by 2. Instead of using the same orderCodeGenerator, you can create a new KeyGenerator injected with configService to read the property of local.properties and incremented by 1000 everytime server restarts. Have to be cautious about getting duplicates using the custom orderCodeGenerator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That depends on several things, eg. whether you you the same series for carts and orders, what your numberseries cache size is, whether your system is clustered or whether it is rebootet in the meantime, etc.
Search the wiki for "scaling like hulk" (yes, really) for a description on the numberseries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.