Sage 100

 View Only
  • 1.  Customer/Item Last Purchase History is Missing Invoices

    Posted 11-19-2025 08:01

    Version 2022 Premium.  Sales Order, Setup, Customer/Item Last Purchase Maintenance.  When the flashlight located to the right of the Customer No. field is clicked, the list of all invoices and sales orders for every item code is supposed to be listed.  For at least one item there are missing records.  The records exist in AR_InvoiceHistoryDetail.  I have cleared the table and also clicked rebuild, and the records still do not appear.  Any ideas why one of the invoice items for the same customer appears in the list yet the same customer item doesn't appear on other invoices?



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------


  • 2.  RE: Customer/Item Last Purchase History is Missing Invoices

    Posted 11-19-2025 08:23
    Edited by David Overholt 11-19-2025 08:23

    Doug, 

    Customer Last Purchase History table only keeps the most recent record (Invoice and order) for each customer/item. it does not keep a full history of every time that customer purchases each item. 



    ------------------------------
    David Overholt
    Programmer/Project Manager
    DWD Technology Group
    Fort Wayne IN
    (260) 399-8655
    ------------------------------



  • 3.  RE: Customer/Item Last Purchase History is Missing Invoices

    Posted 11-19-2025 08:42

    Thank you @David Overholt  Are you sure about that?  This customer has been using that report for 30 years.  I wonder if he just noticed this.  It does makes sense though... thus the name... LAST Purchase History.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 4.  RE: Customer/Item Last Purchase History is Missing Invoices

    Posted 11-19-2025 08:56

    Yes, I'm certain, The Key for that table SO_LastPurchaseHistory  is ARDivisionNo+CustoemrNo+ItemCode+DocumentType. With the DocumentType field being "I"-Invoice or "O"-Order.  Since the Invoice Number or Sales Order Number is not part of the key, each time an order is created it replaces the "O" record and each time an invoice is created, it replaces the "I" record, so it is always the most recent one in there. I even wrote a customization for a client to keep the last 2 instances of each order/invoice. 



    ------------------------------
    David Overholt
    Programmer/Project Manager
    DWD Technology Group
    Fort Wayne IN
    (260) 399-8655
    ------------------------------



  • 5.  RE: Customer/Item Last Purchase History is Missing Invoices

    Posted 11-19-2025 09:06

    Thank you @David Overholt !!  This user has been exporting the info to Excel for 30+ years and is now just noticing only the most recent invoice is on the data.  



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 6.  RE: Customer/Item Last Purchase History is Missing Invoices

    Posted 11-19-2025 14:05

    Sometimes we get into a rut after that many years.



    ------------------------------
    Jeff Schwenk
    Owner
    Bottomline Software, Inc.
    Waynesboro VA
    (540) 221-4444

    Improving bottom lines for over 25 years!
    ------------------------------