Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

Metric scale receipt print format with three decimal precision

Posted on by Microsoft Employee

We need to have a scale certified with Weight and Measures Canada and by law the receipt must print trailing zeroes in the quantity entry. I need a quick solution to this. 


I dont mind making the modifications to the receipt template but we need the format to look like this:

XX.XXX kg @ $Y.YY/kg

I need to have three decimal precision all the time. So 1 kg needs to always be 1.000 kg and 50 g needs to be 0.050 kg

If there are commands for Left, Right, Concatenate etc in the receipt compiler language I think I could sort this out myself but havent been able to get that to work yet. 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metric scale receipt print format with three decimal precision

    Emailed

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metric scale receipt print format with three decimal precision

    If you don't mind.  Can you post the code.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metric scale receipt print format with three decimal precision

    Yeah, everything is in KG (it is Canada ;) )

    Anyway, on Friday and this morning I added some code to the receipt template to get around this issue. All good.

    Need to call Weight and Measures back to get the scales certified.

    Thanks!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Metric scale receipt print format with three decimal precision

    I have a question.  Are all your items within RMS entered in the price per KG.  If not then this will be impossible to accomplish.

    You can try to use Instr and Len and some IF and Condition statements.  It will be complicated and will need tested.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,302 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans