Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Writing a Billing System

by greywolf (Priest)
on Jul 22, 2002 at 18:24 UTC ( #184169=note: print w/replies, xml ) Need Help??


in reply to Writing a Billing System

I'm actually in the middle of doing something fairly similiar to this so I know what you're going through. I can think of 2 possibile solutions off the top of my head.

A) If the action will always be a discount percentage you can just store the discount (15%). This will also help maintenance when the price goes up in 6 months.

B) If there are multiple types of actions you can store 2 fields. 1) reference to type of action (percentage, promo price etc) and 2) value of the action (15%, $9.99 etc). The user would then select a type and a value and be on their merry way.

mr greywolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://184169]
help
Chatterbox?
[james28909]: /msg username message did it
[LanX]: James not /msg [beech] but /msg beech
[james28909]: i havent used the /msg [username] message</c> format
[LanX]: you can also click on beech and message him. ..
[james28909]: jebus
[LanX]: sorry again not [msg://beech]

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-05-24 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?