Scripting

  • 1.  We wrote a little script for Sales Order Header th

    Posted 03-23-2018 14:53
      |   view attached
    We wrote a little script for Sales Order Header that checks to see if the customer has old invoices, and if so, offers to place the customer on credit hold (via a Yes/No messagebox). Now our customer wants a script to automatically take their customer off credit hold during cash receipts entry, also via a Yes/No messagebox telling the user that the customer is on credit hold...do you want to remove the hold? It's working, but the only field I could find to validate on was the PostingAmt (i.e ""Amount Received"" on the Cash Receipts screen). Am I missing something, or are the CustomerNo and ARDivisionNo fields missing from the Column Post-Validate (and Column Pre-Validate) field list?


  • 2.  RE: We wrote a little script for Sales Order Header th

    Posted 03-23-2018 15:00
    One rule I've heard is that columns that are part of the primary key are not available for column events, you can instead use the table post read event as it will be triggered even when a new key is created.


  • 3.  RE: We wrote a little script for Sales Order Header th

    Posted 03-23-2018 15:01
    I'd trigger the script Pre-Write on the header.


  • 4.  RE: We wrote a little script for Sales Order Header th

    Posted 03-23-2018 15:18
    Ah, makes sense. This is my first Cash Receipts script. Thanks guys.


  • 5.  RE: We wrote a little script for Sales Order Header th

    Posted 03-23-2018 15:30
    You may also be able to do a UI script and trigger it post-load.


  • 6.  RE: We wrote a little script for Sales Order Header th

    Posted 03-24-2018 06:21
    I know you're looking for a scripting solution but FYI I think DSD has a modification that can remove credit hold upon cash receipts.