Update Credit status field (CDTSTA)

SOLVED

Is there a way to update the credit status field of a sales order on creation?  I have tried setting the value on in APRES_CRE "[M:SOH1]CDTSTA = 4" without any luck.  I have also tried using the entry point TRTVENCDT > CALCREDIT also without any luck.

TRTVENCDT   

$CALCREDIT
  If GREP = "C" and [M:SOH0]SOHTYP = 'YSOH'
    CDTSTA = 4
  Endif
Return

Parents Reply
  • 0 in reply to Kyle Klinger

    I am interested in your function that is run as a batch task on a schedule.  My issue is we have orders on hold.  Then payments are made but field CDTSTA is not updated.  So how can a person "report" orders on hold when the field is not automatically updated by the payment?  The only method I know currently is to "open" the order and then the field updates and is released.  Thanks

Children