Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] Many to many price schema



I have to create a price schema according to my database.
This is the problem...for any product the customer can insert various prices
according to item quantity for any users or for a specifical user.
So i have a many to many relationship table with products and userdb tables
with the following structure:

COUNTER - SKU - USER ID - QUANTITY RANGE - PRICE

So i can have for a single product (example: sku=1) many prices according to
quantity and users....

1 - 1 - 1 - 0,10 - 100   SKU=1 PRICE=100 QUANTITY RANGE = from 0 to 10 price
specific for USERID = 1
2 - 1 -  - 0,10 - 110   SKU=1 PRICE=110 QUANTITY RANGE = from 0 to 10 price
for any users (except for userid =1)

3 - 1 - 1 - 10,20 - 90   SKU=1 PRICE=90 QUANTITY RANGE = from 10 to 20 price
specific for USERID = 1
4 - 1 -  - 10,20 - 100   SKU=1 PRICE=100 QUANTITY RANGE = from 10 to 20
price for any users (except for userid =1)

and so on....

How can i solve this problem ??

Best Regards
Renato Enea

_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: