Welcome Guest, Not a member yet? Register   Sign In
Software Design Problem: VPN Accounts
#5

[eluser]parham90[/eluser]
Yes, The subscription_type table is the services table. My problem, however, is not the cost, but the number of days. Let's say that the user has paid for 30 days subscription, but has mistakenly chosen 10 days subscription. He tells the admin to change it for him. Now, if the admin changes the subscription_type_id to the other one, yes, the cost and such could be obtain by looking it up in the table containing types of subscriptions and their associated prices. However, the start_date and the end_date somehow have to be calculated, and the end_date needs to be changed. Just now though, something occurred to me. When the admin confirms the new subscription, the number of days for that particular subscription could be obtained (E.G. 30 days) and then added to the start_date, and then the end_date could be replaced by the new result. Smile That could work?


Messages In This Thread
Software Design Problem: VPN Accounts - by El Forum - 08-04-2010, 05:32 AM
Software Design Problem: VPN Accounts - by El Forum - 08-04-2010, 06:07 AM
Software Design Problem: VPN Accounts - by El Forum - 08-04-2010, 06:26 AM
Software Design Problem: VPN Accounts - by El Forum - 08-04-2010, 06:43 AM
Software Design Problem: VPN Accounts - by El Forum - 08-04-2010, 07:02 AM
Software Design Problem: VPN Accounts - by El Forum - 08-04-2010, 07:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB