Design approach for invoice
Posted on 2008-10-20
I have came across to several suggestions how to achieve the same thing, so I would like to hear from you what are your thought about it? I need it to compare with my thought to see if I am doing something the way t shouldnt be done.
Entities: Article, Buyer, Order, OrderDetails. Order - Buyer (1-0..1), Order-OrderDetails (1-m), OrderDetails-Article (1-1).
1) What design approach would you use, how would you connect them, what patterns would you use, etc?
2) Displaying all orders in a grid,, but having a total ammount column for each order - how would you handle this - strictly in OOP fashion