Results 1 to 7 of 7
  1. #1
    Thomasso is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Nov 2016
    Location
    Czech Republic
    Posts
    250

    Partial invoice of a sales order

    Hi all,



    I have the following issue:
    • typical SalesOrders / SalesOrderDetails scenario (a detail is something like Product 1, quantity: 5, unit price: 100
    • Invoice / InvoiceDetails (when a SalesOrderDetail gets invoiced, it gets assigned the InvoiceDetailID, so I can see that this item has already been invoiced - at least I think this is a good way).


    But the problem is, that sometimes I need to divide the Sales Order Detail into multiple Invoices. Let's say that there are 5 units in the order, but I only have 3 on stock. So I invoice those and when I receive the 2, I invoice the rest. This is a problem for the design mentioned above.

    The desired result is that I will look at the sales order and I will see - Okay there are 5 units in this order and 3 have been invoiced already - so the entire order will be marked as "Partially Invoiced".


    Can you recommend me the best way to do this? Thank you.

    Tomas

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    something like:

    Code:
    if ItemInStock< ItemsInOrder then
       orderFillStat = "Paritally Invoiced"
    else
       orderFillStat = "Full Invoice"
    endif

  3. #3
    Thomasso is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Nov 2016
    Location
    Czech Republic
    Posts
    250
    Thanks but I don't see how this solves my main issue?

  4. #4
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,001
    In your invoice records, record the qty invoiced and the sales order line number from your order details table.
    If the qty Invoiced < the qty on the order you can calculate that it is partially invoiced.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #5
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    I'm not suggesting this as *the best way* to do this as you've requested but this is what came to my mind. I'm sure Minty, randman, et al can make suggestions or point you to an existing model somewhere. @Orange for example usually has links to existing models to start from.

    Click image for larger version. 

Name:	Untitled.png 
Views:	33 
Size:	47.0 KB 
ID:	46802

  6. #6
    Thomasso is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Nov 2016
    Location
    Czech Republic
    Posts
    250
    Sorry for my late reply. Thank you kd2017, I modeled this on paper and it seems that it will work well! :-) I will also use it for partial shipments.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    @kd2017 Thanks for the favourable comment.

    @Thomasso You may get some ideas from this free data model involving partial deliveries/shipments from Barry Williams' site. He separates Orders/OrderDetails, Shipments/ShippedItems, Invoices/InvoiceShipmentItems.

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

Similar Threads

  1. SALES ORDER DESIGN that will fit our procedure.
    By Summit_IT in forum Programming
    Replies: 0
    Last Post: 04-15-2021, 02:32 PM
  2. Replies: 17
    Last Post: 04-02-2020, 09:53 AM
  3. Loop Through Sales Order and Update Pricing, etc...
    By Kaloyanides in forum Programming
    Replies: 1
    Last Post: 08-03-2017, 02:23 PM
  4. Replies: 2
    Last Post: 09-14-2015, 09:01 AM
  5. Replies: 0
    Last Post: 12-11-2006, 04:55 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