Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Complicated Invoice tracking.

    Scenario:


    We have four orders:

    1-75 jobs
    2-100 jobs
    3-73 jobs
    4-200 jobs

    But we can be working on all of the orders at the same time. The period of time for this work to be complete is years so we cant wait for payment.

    So for example in a week we do 5 jobs from each order. That's 20 jobs we have done.

    Problem:
    our client wants to use the budget in sequential order. They want to pay for all of order 1 before they pay for any of 2. (no matter what the work is or what order the work is in)

    Current System:
    I press a button that will generate a report for the costs and once those costs/jobs have been put in the report, the same button does an update query to add todays (whatever day that day is) date to "invoiced date" for that job.


    What I need:
    I need to track how many jobs this 'current system' has invoiced. Then I need to make sure it doesn't exceed order 1.
    When it reaches 75 I need to use the order number from invoice 2.

    This has to be fool proof, I cant rely on temperamental code. (referring to my own code haha)

    Ideas:

    Please criticise or add to any ideas I have.

    * add another event to the macro that generates the report and updates.
    This macro would run BEFORE the update macro and do a count...

    but with that information I'm really confused as to what to do. Or how to make the system deal with it.

    All questions welcome.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    The accounting systems I am familiar with don't associate payments with specific orders. Invoice and payment transactions are associated with account, the net difference is balance on account.

    I say let the customer keep track of what order they want to associate payment against in their database - instead of wrecking your time and materials cost accounting.

    Otherwise, you have a significant challenge to overcome.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I do not understand the idea of the different orders. I imagine being able to sort by date and all 'orders' would be clumped together. If you need to sort by orders, then I suppose a separate query would retrieve orders with a status of 'Active'.

  4. #4
    bigot is offline Advanced...ish
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    37
    I'd have to see a database diagram to help out here. But some suggestions to get you going:


    Are jobs tracked in a separate table?
    If a job is completed, is there a "jobCompleted" boolean column that tracks that?
    Are you only doing 1 job at a time? (you won't do 4 jobs when 73/75 are complete, and overflow into 77/75)
    If yes to all then it's super simple (untested query):
    Code:
    SELECT TOP 1 jobID (select other columns if you want)
    FROM tblJobs
    JOIN tblOrders on tblJobs.FK = tblOrders.PK (join other columns if you want)
    WHERE jobCompleted=FALSE
    ORDER BY tblOrders.orderNum ASC, tblJobs.jobNum ASC

    I'm basing that query on absolutely nothing, lol. Please provide some table structures so I can help better.


    EDIT: Do you provide a job number on the invoices (for example "order #1 job #1", "order #1, job #2", etc.)? Or do you just bill for unidentified jobs (example "order #1 job", "order #1 job", etc.), and don't need to identify them?
    Last edited by bigot; 11-06-2015 at 02:04 AM.

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Itsme:

    the orders are for work in x amount of locations (75 in order one). Those locations are defined at the very start.... BUT I cant assign the locations to the job even though they should be.

    Our client has a cost structure they need to keep to and that means we need to get the funds sequentially from orders. So I know now the orders we do have are useless and Im basically working backwards pushing jobs in orders just so we are paid.

    June:
    we do have to track this ourselves but you made some good points there.

    Bigot:
    yes, yes and no. haha.

    Thanks to some thinking and reading your posts, I'm tempted to leave this to the accounting department.

    My concern was to see what's been invoiced, what we need to invoice, and what payments need chasing. But If I just track invoicing, I can pass the rest on for someone to manually do it.

    However, Its still interesting to me if this problem can be over come. I may come back to this when I have a bit less 'Work'.

    I could probably use auto number on a new table to pull everything <76 in one report and they only get added to that table once they are complete.. something like that.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Your requirement reminds me of a FIFO inventory management system. I have seen db designed to deal with that.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    bigot is offline Advanced...ish
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    37
    Quote Originally Posted by Homegrownandy View Post
    Bigot:
    yes, yes and no. haha.
    Ok, in that case, the "no" is your only problem. Solve that by processing one job at a time using my query. Problem solved.

    Also if it's just this one client, I wouldn't bother changing up my entire system for them. If the costs are fixed, can you pre-prepare all the invoices, then send it to them as jobs get done? (Lol what a bad idea)

  8. #8
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Quote Originally Posted by bigot View Post
    Ok, in that case, the "no" is your only problem. Solve that by processing one job at a time using my query. Problem solved.

    Also if it's just this one client, I wouldn't bother changing up my entire system for them. If the costs are fixed, can you pre-prepare all the invoices, then send it to them as jobs get done? (Lol what a bad idea)
    totally agree, but they are about half of our business. My current solution is to pass all the data to the accounts department and they manually solve it. Im fairly happy with that. haha.

    thanks for the sugestions/time

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Seems most appropriate solution to me. Accounting should be issuing and tracking invoices.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 09-14-2015, 09:01 AM
  2. Need inventory tracking and invoice forms
    By jayvan39 in forum Forms
    Replies: 33
    Last Post: 02-23-2013, 01:12 AM
  3. Replies: 3
    Last Post: 11-19-2012, 05:05 PM
  4. Replies: 1
    Last Post: 10-10-2012, 01:05 PM
  5. Invoice tracking
    By Amber in forum Database Design
    Replies: 1
    Last Post: 02-02-2012, 12:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums