2009-10-29 01:14:44 UTC
hey, I'm new to p4a , and I gotta say that I find this framework really cool ..
Well..so I've got some question .. let's say I wanna make quotes from my products table (from the demo app for example) .. but I also want the possibilty to change the price (by perecents , or set a new one) , add quantity , and such .. some kind of "modified products" .. I came into difficulties when I planned the db structure , how can I connect between the quotes and the modified products ?
I thought about making some string splitting function .. that gets the products(ids) ,quantity,discount , for example split(23,2,20) will get TWO id 23 products and take 20% off their price .. that way doesnt look really promising ...so....how would you do that the p4a way ?
Thanks !