module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Aug 9, 2022
License: MIT
Opens a new window with license information.
README
¶
Flowchart
flowchart TB
classDef Type fill: #4287f5
classDef SameLogic fill: #777
Member([Member]):::Type --> Prodcut([Product]):::Type
Prodcut --> Promotion([Promotion]):::Type
%% A
Promotion --> |"A (None)"| ResultA(Price x 1)
%% B
Promotion --> |"B (Membership)"| MembershipLevelB([MembershipLevel]):::Type
MembershipLevelB --> |VIP 0| ResultB1(Price x 1)
MembershipLevelB --> |VIP 1| ResultB2(Price x 0.95)
MembershipLevelB --> |VIP 2| ResultB3(Price x 0.9)
MembershipLevelB --> |VIP 3| ResultB4(Price x 0.85)
%% C
Promotion --> |"C (Point)"| ResultC1(Price - Points x Exchange rate):::SameLogic
%% D (Extend from C)
subgraph ExtendFromC [ ]
direction TB
MembershipLevelC([MembershipLevel]):::Type --> |VIP > 0 && Points >= 100| ResultC2(Price after deducting points x 0.9)
end
ResultC1 -.-> |New promotion| ExtendFromC
%% Link stlye
linkStyle 10 stroke:#ff3,color:yellow;
Directories
¶
|
|
|
|
|
|
example
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.