Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

Sales order: Hide a message in packing slip

$
0
0

Hi all, I'm newbie in dynamic AX, and I'm having a question.

On packing slip we showing a message in the footer by calling the display method:

display FormLetterTxt Txt()
{
 return FormLetterRemarks.Txt;

}

I need hide this message in case when we do an international process. As a filter I can use  ItemID(where all international items are starting with prefix: INT)

If I could use simple logic:

display FormLetterTxt Txt()

{
 str name;
 str res;
;
 name = 'INT-WX350';
 res = substr(name,1,3);

   if(res == 'INT')
    {
      return ' ';
    }
     else
     {
        return FormLetterRemarks.Txt;
      }
}

Any thoughts?

Thanks much for the help!

Alex


Viewing all articles
Browse latest Browse all 15740

Trending Articles