web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

View loyalty balance from POS and and print on Reciept

(0) ShareShare
ReportReport
Posted on by 595

I am on R3, and the pos functions include display loyalty balance which I added to the button.  But it displays a message saying will work for specific country and I going out it works for legal entity's in Russia.  Is there anyway I can remove the restriction or any other options to display loyalty balance on screen and print on Reciept as well?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    echo Profile Picture
    595 on at

    I got it done using BlankOperation - For Reference here is the code i used

                       ILoyaltyCardData cd;

                       cd= Application.Services.Loyalty.GetLoyaltyBalanceInfo(rt.LoyaltyItem.LoyaltyCardNumber);

                       comment.AppendLine("Loyalty Card    :" + cd.CardNumber);

                       comment.AppendLine("Customer        :" + cd.CustomerName);

                       comment.AppendLine("Card Type       :" + cd.CardTypeString);

                       comment.AppendLine();

                       comment.AppendLine("Issued Points   :" + cd.IssuedPoints.ToString("#,##0.00"));

                       comment.AppendLine("Used Points     :" + cd.UsedPoints.ToString("#,##0.00"));

                       comment.AppendLine("Expired Points  :" + cd.ExpiredPoints.ToString("#,##0.00"));

                       comment.AppendLine();

                       comment.AppendLine("Balance Points  :" + cd.BalancePoints.ToString("#,##0.00"));

                       using (LSRetailPosis.POSProcesses.frmMessage dialog = new LSRetailPosis.POSProcesses.frmMessage(comment.ToString(), MessageBoxButtons.OK, MessageBoxIcon.None))

                           {

                               LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSForm(dialog);

                           }                      

                           operationInfo.OperationHandled = true;

  • Suggested answer
    Shahzad Iqbal Profile Picture
    40 on at

    Hi Echo,

    Just faced the same issue and found that this functionality is only available for Rusian Region.

    Solution:

    I just changed the ISO is functionality profile to "RU" and it worked.

    Thanks.

  • Suggested answer
    Shahzad Iqbal Profile Picture
    40 on at

    Hi Echo,

    Just faced the same issue and found that this functionality is only available for Russian Region.

    Solution:

    I just changed the ISO is functionality profile to "RU" and it worked.

    Thanks.

  • Community Member Profile Picture
    on at

    Dear Shahzad,

    Kindly tell me how can configure step by step ...please  

  • Community Member Profile Picture
    on at

    how change the ISO and if can change what effect that in other moduels

  • Suggested answer
    Mr.FouaDMohammeD Profile Picture
    2 on at

    Inkeduntitled_5F00_LI.jpg

    From

    Retail -==> Setup -==> POS -==> Profiles -==>functionality profile

     

     

    Thank you

  • mohammed.mqi Profile Picture
    2,050 on at

    [quote user="echo"]

    I got it done using BlankOperation - For Reference here is the code i used

                       ILoyaltyCardData cd;

                       cd= Application.Services.Loyalty.GetLoyaltyBalanceInfo(rt.LoyaltyItem.LoyaltyCardNumber);

                       comment.AppendLine("Loyalty Card    :" + cd.CardNumber);

                       comment.AppendLine("Customer        :" + cd.CustomerName);

                       comment.AppendLine("Card Type       :" + cd.CardTypeString);

                       comment.AppendLine();

                       comment.AppendLine("Issued Points   :" + cd.IssuedPoints.ToString("#,##0.00"));

                       comment.AppendLine("Used Points     :" + cd.UsedPoints.ToString("#,##0.00"));

                       comment.AppendLine("Expired Points  :" + cd.ExpiredPoints.ToString("#,##0.00"));

                       comment.AppendLine();

                       comment.AppendLine("Balance Points  :" + cd.BalancePoints.ToString("#,##0.00"));

                       using (LSRetailPosis.POSProcesses.frmMessage dialog = new LSRetailPosis.POSProcesses.frmMessage(comment.ToString(), MessageBoxButtons.OK, MessageBoxIcon.None))

                           {

                               LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSForm(dialog);

                           }                      

                           operationInfo.OperationHandled = true;

    [/quote]

    after trying this code i got this error message 

    cap.JPG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans