Prompt For Salesperson Code If Left Blank On Sales Order
  • admin
    Posts:11
    Joined:Thu Jan 01, 1970 10:00 am
    Prompt For Salesperson Code If Left Blank On Sales Order

    by admin » Thu Sep 08, 2005 1:55 am

    * Save this script as R-ORDTEN.MAC
    * and place in \CAPITAL directory

    Declare MySalesman Type Character

    If IsEmpty(Orders->Oorderby)
    MySalesman := LookUp("Comrate", 1)

    If .NOT. IsEmpty(MySalesman) .And. Type("Mysalesman") = "C"
    Orders->OOrderby := MySalesman
    Endif
    Endif
  • BobG
    Posts:4
    Joined:Mon Oct 10, 2005 4:21 pm
    Location:Sydney
    Contact:

    Salesman script for quotation

    by BobG » Mon Oct 10, 2005 4:25 pm

    I think that this script was created for my installation, it looks familiar! What needs to be modified to make the script apply to a quotation?

    Thanks Bob
  • Guest

    by Guest » Mon Oct 10, 2005 11:47 pm

    Try the following script. Be sure to save the text file as 'R-QUOTEN.MAC'

    * Save this script as R-QUOTEN.MAC
    * and place in \CAPITAL directory

    Declare MySalesman Type Character

    If IsEmpty(Quotes->Qorderby)
    MySalesman := LookUp("Comrate", 1)

    If .NOT. IsEmpty(MySalesman) .And. Type("Mysalesman") = "C"
    Quotes->QOrderby := MySalesman
    Endif
    Endif

Who is online

Users browsing this forum: No registered users and 3 guests