Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
slapos.core
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 18
    • Merge Requests 18
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexedi
  • slapos.core
  • Merge Requests
  • !370

Open
Opened Mar 21, 2022 by Romain Courteaud@romain
  • Report abuse
Report abuse

WIP: allow to define custom prices

This is still a WIP (commit are not clean for example) and the goal is only to make my ongoing changes more visible.

Here is non complete list of important changes:

  • one Open Sale Order per Instance Tree instead of one Open Sale Order per user
  • create one Hosting Subscription per Open Sale Order line
  • Software Instance are not allocated if the Open Sale Order is not created yet. The goal is to use the Sale Trade Condition to setup the Instance Tree related documents security (instead of custom project)
  • use the wechat/payzen payment_mode instead of the user language to define the expected payment behaviour
  • use the price_currency to define the taxes
  • allow defining inherited Sale Trade Condition trees, to define custom price per project/organisation/user/software.
  • the Subscription Condition specify which Sale Trade Condition to use
  • drop the prices based on service variation. Instead, create a new Sale Trade Condition for a specific software release
  • stop copying properties from the Subscription Condition to the Subscription Request

TODO:

  • migrating existing Open Sale Order / Hosting Subscription
  • specify the expected behaviour of a console based request
  • update the rapid space web site if needed
  • create custom Service for some software releases
  • ...
Edited Mar 21, 2022 by Romain Courteaud

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch https://lab.nexedi.com/romain/slapos.core.git customprice
git checkout -b romain/slapos.core-customprice FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/master
git merge --no-ff romain/slapos.core-customprice

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 1
  • Commits 25
  • Changes 201
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: nexedi/slapos.core!370
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7