- Local time
- Today, 15:02
- Joined
- Sep 12, 2006
- Messages
- 16,121
The thing is the client wants to group a bunch of order lines and invoice it. So if there are 10 Order lines in an order, she may want to invoice it as 3 invoices (6 Orderlines in 1, 4 in the next, 1 in the last etc.)
I'm really confused as to what to do.
I know invoicing the order as a whole would be the easiest.
But, I'm thinking if the user can select (using a tickbox) from the Orders form which of the OrderLines to invoice then and then comeback later on and invoice the rest? Not too sure how to implement this though.
This is the key statement to deciding what you want to do. It isn't what is easiest . It's what you have to do to solve the problem.
If you want, you could store an invoice number in the order lines table - then its easy to construct an invoice for selected order lines. But the problem then comes down to what happens if the whole orderl ine cannot be supplied. eg - someone orders 10 things, you supply 6 now, and 4 later. So, instead of trying to "fudge" a less than perfect solution - the best thing in my opinion is to use a properly normalised table structure, as I explained in an earlier post.