Add product dependecy possibility
This allows products do depend on other products, ie you must buy computerplace to buy vip lounge entrances
-
Added 9 commits:
-
212f0657...c402ca8c - 8 commits from branch
codecrew:master - f0138f61 - Add product dependecy possibility
Toggle commit list -
212f0657...c402ca8c - 8 commits from branch
-
14 15 public static enum DependencyType { 16 // Dependant product can be bought maximum of supported product number of times 17 MAX_SUPPORTED_COUNT, 18 } 19 20 @Enumerated(EnumType.STRING) 21 @Column(nullable = false, name="dependency_type") 22 private DependencyType dependencyType; 23 24 // Order, in which dependencies will be parsed 25 @Column(nullable = false, name="priority") 26 private int priority = 1000; 27 28 @Column(name = "multiplier", nullable = false, precision = 24, scale = 6) 29 private BigDecimal multiplier = SCALE6_ONE; -
Owner
Mikä tämä on ja mihin sitä käytetään?
-
-
14 15 public static enum DependencyType { 16 // Dependant product can be bought maximum of supported product number of times 17 MAX_SUPPORTED_COUNT, 18 } 19 20 @Enumerated(EnumType.STRING) 21 @Column(nullable = false, name="dependency_type") 22 private DependencyType dependencyType; 23 24 // Order, in which dependencies will be parsed 25 @Column(nullable = false, name="priority") 26 private int priority = 1000; 27 28 @Column(name = "multiplier", nullable = false, precision = 24, scale = 6) 29 private BigDecimal multiplier = SCALE6_ONE; -
Ajatus oli lisätä jossain vaiheessa "jos ostat 10 saat yhden pipon" tyyppinen toiminnallisuus tuohon jossain vaiheessa.
-
-
Added 13 commits:
-
f0138f61...b70320be - 11 commits from branch
codecrew:master - 488fc14f - Add product dependecy possibility
- 9c07bb3c - add product dependency i18n, delete, etc
Toggle commit list -
f0138f61...b70320be - 11 commits from branch
-
-
Status changed to merged
Toggle commit list
-
Please register or sign in to post a comment