Dear freinds. I'm stuck.
I was tierd on my time tracking and order creation system so I started on one of my own.
I'm stuck on invoice creation.
I have a table with what I'w done day by day hour by hour. Let's call it a times-Table In that table I also store customer ID on all lines.
I work for some companies so today I have to create 8 different invoices for the last week, from the Time Table.
The lines that was not invoiced jet.
I guess I could do that by exporting all lines and importig it to invoice lines table. But I do not want an invoiceline table. I would like to use the lines that I create every day. That way all my notations and ivoicing would be trackable.
I have started like this:
I find out what to invoice. The lines that are ready and have no invoice Nr.
I export the customer ID. Grouped by customed ID. That makes a little table with a unik customer N:o.
I import that Table to InvoiceHead table. That Creates an invoicehead for each customer that should have an invoice.
Here is my problem: Now I need to tell the Times-Table Lines what Invoice they should belong to.
Probebly I could do some kind of import from InvoiceHeads but I guess I would need some kind of relation between empty invoices and TimeTable Lines to do that. The TimeTable lines are also more by numers then the Invoiceghead's.
Please advice me on this