Introduction
Purpose and scope
Collaborators
Development Department
Description of the issue
There is no way to select "Current fee" for Product's Subscription (it is possible only for Subscription which were assigned to Account directly). "Account" -> "Subscription" tab appears only after Account saving. If Taskstack's "charge_subscription" procedure executes (which runs every hour) right after account creation then Subscription becomes active and advance charge will be applied till the end of the billing period without Multi-Month discount(s).
WI Changes on Account Products tab
- Added Periodic Fee combobox for Products which have Subscription with Multi-Months Discounts. If product doesn't have Subscription with MMD - this field will be hidden.
- If this product subscription is already assigned to account - combobox becomes read-only with selected Current Fee. If no, Admin can select Current Fee from the list and save account. New subscription with selected discount will be applied to the account and marked as 'Pending'. Other changes Admin can make on Subscriptions tab for Account.
- For Available addons list list with Discounts is displayed in Periodic Fee column.
- When Admin add new Addon he can choose Current Fee from the list opposite. If such subscription was already assigned Admin will see read only field with selected Current Fee.
API Changes
- Account/get_subscriptions method extended.
Element name | Type |
---|---|
i_product | int |
i_discount_current | int |
i_discount_next | int |
- Product/get_product_list and Product/get_allowed_addons got new flag in request which indicates whether the Product subscription should be returned
Element name | Type |
---|---|
with_subscription | int |
- ProductInfo also extended with two new elements
Element name | Complex type |
---|---|
subscription_discount_list | pst:SubscriptionDiscountList |
product_subscription | pst:ProductSubscriptionInfo |