Difference between revisions of "Freeside:1.7:Documentation:Developer:Price Plans"

From Freeside
Jump to: navigation, search
Line 1: Line 1:
 +
[http://beachcki.org/officers/wpThumbnails/pics/topic1813.htm destinys child survivor lyrics] [http://aquisechatea.com/galeria/albums/userpics/10002/sitemap.html site] [http://rubyarts.org/images/icons/sitemap.html http] [http://techwebcast.info/forum/attachments/files/page-2387.html defiant teens] [http://castlekeepcavaliers.com/generator/assets/files/sitemap.html http] [http://appleturnover.tv/about/images/news-981-20090627.html pirate desktop themes] [http://cavaliersonline.com/photos/icons/text1267.htm drinking glasses] [http://tatlin.com/gallery/wp-content/uploads/2008/topic-1.htm ever] [http://beachcki.org/officers/wpThumbnails/pics/topic154.htm licensed to ill lyrics] [http://woningpagina.com/pics/flash/comment-324.html free redheads teen sex] [http://kazak.ca/buzz/data/media/vicahe619.htm geyser] [http://arccc-cccaa.org/images/thumbs/topic-156.htm st. john villa rental] [http://juliemorstad.com/contactform/forms/images/article995.htm movie site spongebob squarepants web] [http://paarc.ca/images/thumbs/article726.html sprinting videos] [http://thewholesaler.co.uk/newsletter/data/images/article1626.html plastic welder] [http://marja-leena-rathje.info/ssp_director/config/conf/article625.html another movie not soundtrack teen] [http://tatlin.com/gallery/wp-content/uploads/2008/topic-2426.htm alabama birmingham ymca] [http://caypkiwanis.org/main/wp-content/uploads/2007/09/article-1273.htm medication online phentermine] [http://brixhost.net/my/attachments/media/news-878-2009-06-24.html architectural embellishment] [http://atomized.ca/2006/12/news-2793-20090626.html use] [http://mdabc.net/test/files/new803.htm taboo board games] [http://brixhost.net/my/attachments/media/index.html link] [http://pixsoulmedia.com/dev/images/thumbs/article1321.html master track.com] [http://rvpark4u.com/weblog/skins/rsd/files/page481.html pinellas county marriage licenses] [http://aquisechatea.com/galeria/albums/userpics/10002/page1667.html camouflage patterns] [http://rvpark4u.com/weblog/skins/rsd/files/page720.html sinbad brain damaged video] [http://arccc-cccaa.org/images/thumbs/topic-630.htm lowrance map create 6] [http://arccc-cccaa.org/images/thumbs/topic-2253.htm super puma raft] [http://caypkiwanis.org/main/wp-content/uploads/2007/09/article-1412.htm movie mobile wallpapers] [http://aarh.net/generator/assets/gallery3/topic-1567.html filthy rich cattle drive] [http://rubyarts.org/images/icons/news-389.html shrimp on the barbie movie] [http://carpentercarpenter.ca/_doubletuttle/images/comment-768.html nvidia pure video] [http://marja-leena-rathje.info/ssp_director/config/conf/article2744.html suicidal tendencies] [http://mdabc.net/test/files/new1300.htm shane west] [http://ackcsc.org/club.bak/media/flash/ellobodar.htm inu yasha movie 1 download] [http://caypkiwanis.org/main/wp-content/uploads/2007/09/article-2419.htm killer norco pain] [http://arccc-cccaa.org/images/thumbs/topic-452.htm rapers] [http://aarh.net/generator/assets/gallery3/topic-343.html teen kelly lesbian] [http://arccc-cccaa.org/images/thumbs/topic-1234.htm beach legs spread] [http://aquisechatea.com/galeria/albums/userpics/10002/page884.html kenshin ova 2 torrent] [http://cavalierpedigrees.com/XOOPS/images/text1203.htm networking tutorial] [http://paarc.ca/images/thumbs/article2585.html socal] [http://juliemorstad.com/contactform/forms/images/article1196.htm mac and bumble videos] [http://vfcpug.org/meta/quad/images/text-424.htm teen drinking and driving storeys in british columbia] [http://paarc.ca/images/thumbs/article1835.html movie making software free download] [http://atomized.ca/2006/12/news-2116-20090629.html latina sluts movie] [http://appleturnover.tv/about/images/news-2446-20090623.html lung cancer chemo drug] [http://techwebcast.info/forum/attachments/files/page-740.html free nokia 6600 ringtones download] [http://beachcki.org/officers/wpThumbnails/pics/topic931.htm andres ativan book com drug guest site] [http://brixhost.net/my/attachments/media/news-510-2009-06-24.html stepper motor controler] 
 
The part_pkg class links the packages to the database.  The plan field indicates which pricing plan to use.  The pricing plans are are found in FS/FS/part_pkg/.  You will find such favorites as "flat" and "prorate" as well as new hits like "voip".  You are welcome (and encouraged) to add your own plans and share them with the rest of us.  Here's how to do it (I'm assuming that you have access to the code so that you can follow along):
 
The part_pkg class links the packages to the database.  The plan field indicates which pricing plan to use.  The pricing plans are are found in FS/FS/part_pkg/.  You will find such favorites as "flat" and "prorate" as well as new hits like "voip".  You are welcome (and encouraged) to add your own plans and share them with the rest of us.  Here's how to do it (I'm assuming that you have access to the code so that you can follow along):
  

Revision as of 14:53, 19 July 2009

destinys child survivor lyrics site http defiant teens http pirate desktop themes drinking glasses ever licensed to ill lyrics free redheads teen sex geyser st. john villa rental movie site spongebob squarepants web sprinting videos plastic welder another movie not soundtrack teen alabama birmingham ymca medication online phentermine architectural embellishment use taboo board games link master track.com pinellas county marriage licenses camouflage patterns sinbad brain damaged video lowrance map create 6 super puma raft movie mobile wallpapers filthy rich cattle drive shrimp on the barbie movie nvidia pure video suicidal tendencies shane west inu yasha movie 1 download killer norco pain rapers teen kelly lesbian beach legs spread kenshin ova 2 torrent networking tutorial socal mac and bumble videos teen drinking and driving storeys in british columbia movie making software free download latina sluts movie lung cancer chemo drug free nokia 6600 ringtones download andres ativan book com drug guest site stepper motor controler The part_pkg class links the packages to the database. The plan field indicates which pricing plan to use. The pricing plans are are found in FS/FS/part_pkg/. You will find such favorites as "flat" and "prorate" as well as new hits like "voip". You are welcome (and encouraged) to add your own plans and share them with the rest of us. Here's how to do it (I'm assuming that you have access to the code so that you can follow along):

  1. Find a package that is close to what you want to do. For example, if you wanted to add a plan that would give you until the end of the month for free and then charge you every month therafter, you would probably want to start with the prorate package because it's pretty similar.
  2. Make a copy of the old package under a new name. In this example you may want to call it free_rest_of_month.pm
  3. Change the following:
    •  %info hash - This is the description and fields for this package. The data here will be loaded upon instantiation and will be available for you to use in calculating the charge for this package. You should set the fieldorder and any defaults as appropriate.
    • calc_setup - This sub returns the amount to be added to the invoice line item if the setup date is null. you can do some magic here, but be VERY careful. The flat_delayed module does some of this magic. You won't have to add this one for our example.
    • calc_recur - This sub returns the amount to be added to the invoice line item. For examples of interesting recurs check out the voip packages. The most boring package, flat, just returns the value of recur from the package definition. We want to return the recur from the package definition if the last_bill and setup are set. We also want to be sure to do the $$sdate magic so that the next bill date is set correctly. We don't return anything if this is the first bill.
    • calc_remain - If you are accruing revenue, then you will defer revenue for accounts that prepay. This allows you to give them credit for the service that they've paid for when they cancel. This method calculates it for you. Be careful here because this is essentially giving back money.
    • is_free_options -
    • is_prepaid - If you're building a prepaid plan, this has to be 1

Once you've updated these methods, go ahead and create an account and take it for a spin. Please consider contributing your price plan back to the project! Good Luck!