Skip to main content

Determine if new Business Partner address is Bill To or Ship To

Answered

Comments

2 comments

  • Official comment
    Dave Gutman

    Hi Jennifer,

     

    You can set a @STORE variable which you can test against.  For example:

    @STORE1 = SQL(SELECT T0.[AdresType] FROM CRD1 T0 WHERE {your logic} ) ;

    IF (@STORE1 = 'S')

    BEGIN

       MESSAGEBOX(Ship To Address);

    END

  • Sean Archer - Business Evolution

    Hi Jennifer,

    A quick way to work around it might be to add TRY/CATCH around your code that is setting the tax fields

    TRY
    BEGIN
    Set($[$item.col.type]|valueToSet);
    END
    CATCH
    BEGIN
    // Do nothing
    END

    Otherwise you could setup a line loop to detect whether the selected row in Item 69 (The address list) is before or after the "Ship To" line...I haven't tried this but assume it would work.  Then execute your UF if the line loop criteria is met.

Please sign in to leave a comment.