Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Gasoline Item - XML receipt configuration

Posted on by 90

Due to the Gas Station configuration of the pumps, I do not want to show the details of the transaction on the receipt. Meaning: qty @ price each, which is the second line printed for multiple items of the same.

What condition do I need to check in the Receipt XML to skip printing this information ?

I know that I can remove the line for all the items but I do not want to do this.

*This post is locked for comments

  • Westsail Profile Picture
    Westsail 90 on at
    RE: Gasoline Item - XML receipt configuration

    Replaced <>  for !=

    Changed third <THEN> for </THEN>

    Worked.  THANKS for your help.

  • Verified answer
    Antonijo Todorovik Profile Picture
    Antonijo Todorovik 4,025 on at
    RE: Gasoline Item - XML receipt configuration

    Well, then it should be something like this:

    - this is the original code (if you using standard receipt.xml)

                        <IF>

                               <CONDITION> Entry.Quantity <> 1 </CONDITION>

                        <THEN>

                            <ROW> "|" Entry.Quantity " @ " Entry.Price "|"                                      </ROW>

                        </THEN>

                        </IF>

    - this is how the new code should look like (haven't test it, don't have time in the moment)

    <IF>

          <CONDITION> Entry.Quantity <> 1 </CONDITION>

      <THEN>

                          <IF>

                                 <CONDITION> Entry.Item.ItemType <> 5 </CONDITION>

                                 <THEN>

                            <ROW> "|" Entry.Quantity " @ " Entry.Price "|"   </ROW>

                                 <THEN>

                           </IF>

                   </THEN>

    </IF>

    This is becouse Gasoline ItemType is number 5, so it will print out this line only for Item who are not of this type.

    Update me with the results... If the answer is correct, please mark the question as solved.

    Kind regards, A.

  • Westsail Profile Picture
    Westsail 90 on at
    RE: Gasoline Item - XML receipt configuration

    Yes, it is for Gasoline only item.

    Need to know the property and how to check it.

    The reason is that the price per item is not known when the customer prepay given that the cashier authorizes only money to the pump and is the customer who selects the fuel type at the pump, therefore, the price per item shown on the receipt might not be correct. I want to only show the Total amount of gasoline paid.

    Thanks,

  • Antonijo Todorovik Profile Picture
    Antonijo Todorovik 4,025 on at
    RE: Gasoline Item - XML receipt configuration

    If is this only for the Gasoline Items, maybe we can use the Item Type for the condition? Can You confirm that this is only for Gasoline Items??

    Regards, A.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans