Register   Login
     
  Latest Posts  
RE: Error #2038 on image upload
by ljulien on 3/12/2010 9:47 AM
RE: Error #2038 on Upload Images
by ljulien on 3/12/2010 9:43 AM
RE: Selective access to view article details
by ray-isc on 3/12/2010 8:58 AM
RE: Error #2038 on Upload Images
by ray-isc on 3/12/2010 8:55 AM
RE: Refresh RSS feed or delete all aricles from an imported feed?
by ray-isc on 3/12/2010 8:46 AM
RE: Selective access to view article details
by badri on 3/12/2010 8:39 AM
Error #2038 on Upload Images
by ljulien on 3/12/2010 8:32 AM
RE: Finally a Proper Sitemap Provider that work for Modules (DNN5.3)
by ray-isc on 3/12/2010 8:31 AM
RE: Selective access to view article details
by badri on 3/12/2010 8:22 AM
RE: Latest Properties & Syndication
by ngmxtim on 3/12/2010 7:41 AM
  Forums  
Subject: Change End Date
Prev Next
You are not authorized to post a reply.

Author Messages
Kevin FabrizioUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:15

3/26/2007 8:45 AM  
Is there a way to manually change the End Date for a receipt?  Better yet, is there a way to run a script (sql query?) to change the end date for all people within a certain date range?  For exampe, I want to change all users with an end date of Oct 1 2007 or later to March 31 2008.  I would also like to change the end date date of Sep 30 2007 or ealier to March 31 2007.
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17150


3/27/2007 7:14 AM  
Not currently through the screens, although it would be a simple script to do it.

The problem with allowing direct edit of a receipt, is if there are receipts after it, you would need adjust the start/end dates after it as well.

Scott McCulloch
Site Administrator
Kevin FabrizioUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:15

3/27/2007 11:19 AM  
Since I am not familiar with building a SQL script (I am not a programmer) and it "would be a simple script to do it" could you or anyone else on these boards help me out?

Thanks!
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17150


3/27/2007 7:22 PM  
Sure, you would need to run 2 queries.

One that would run for the receipt table would be:-

UPDATE dnn_DnnForge_SubscriptionTools_Receipt SET DateEnd = [SOMEDATE] WHERE DateStart > [STARTDATE] and DateStart < [ENDDATE]

For the roles, it's a bit more trickier, as you will need to also update those for that range, but it would be something like:-

UPDATE dnn_UserRoles Set ExpiryDate = [NEWEXPIRYDATE] WHERE RoleID = [YOURROLE]

Scott McCulloch
Site Administrator
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17150


3/27/2007 7:23 PM  
One further thing, if your not that good at SQL, you may want to manually do it through the table

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > Modules > Subscription Tools > Change End Date



ActiveForums 3.7