We help IT Professionals succeed at work.
Get Started

Relation creation problem

perbackman
perbackman asked
on
314 Views
Last Modified: 2010-04-27
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
Thanks

   
Comment
Watch Question
lesouef
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE