Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Codecrew / Moya

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 30
  • Merge Requests 2
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
Merged
Merge Request !364 opened Apr 03, 2017 by Tuomas Riihimäki@tuomari

Add product dependecy possibility

This allows products do depend on other products, ie you must buy computerplace to buy vip lounge entrances

Edited Apr 13, 2017
Request to merge tuomari:dependant-products into master

Merged

  • The changes were merged into master.
  • The source branch has been removed.
  • Discussion 2
  • Commits 2
  • Changes 13
  • {{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Tuomas Riihimäki @tuomari

    Added 9 commits:

    • 212f0657...c402ca8c - 8 commits from branch codecrew:master
    • f0138f61 - Add product dependecy possibility
    Apr 09, 2017

    Added 9 commits:

    • 212f0657...c402ca8c - 8 commits from branch codecrew:master
    • f0138f61 - Add product dependecy possibility
    Toggle commit list
  • 2a54e04ac87f85d4d091c3be1c8f9cea?s=80&d=identicon
    Tuukka Kivilahti
    @tkfftk started a discussion on the diff Apr 10, 2017
    code/moya-database/src/main/java/fi/codecrew/moya/model/ProductDependency.java 0 → 100644
    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;
    • Tuukka Kivilahti @tkfftk commented Apr 10, 2017
      Owner

      Mikä tämä on ja mihin sitä käytetään?

  • E653e45857f523ba676b9ae7a0bab5dd?s=80&d=identicon
    Tuomas Riihimäki
    @tuomari started a discussion on the diff Apr 10, 2017
    code/moya-database/src/main/java/fi/codecrew/moya/model/ProductDependency.java 0 → 100644
    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;
    • Tuomas Riihimäki @tuomari commented Apr 10, 2017
      Owner

      Ajatus oli lisätä jossain vaiheessa "jos ostat 10 saat yhden pipon" tyyppinen toiminnallisuus tuohon jossain vaiheessa.

  • Tuomas Riihimäki @tuomari

    Added 13 commits:

    • f0138f61...b70320be - 11 commits from branch codecrew:master
    • 488fc14f - Add product dependecy possibility
    • 9c07bb3c - add product dependency i18n, delete, etc
    Apr 12, 2017

    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
  • Tuukka Kivilahti @tkfftk

    mentioned in commit 8d71ba5f

    Apr 13, 2017

    mentioned in commit 8d71ba5f

    Toggle commit list
  • Tuukka Kivilahti @tkfftk

    Status changed to merged

    Apr 13, 2017

    Status changed to merged

    Toggle commit list
  • Write
  • Preview
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
  • Please register or sign in to post a comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: codecrew/moya!364
×

Revert this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
×

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.