Question: Pole Display And The Money And Number Format

Pole Display And The Money And Number Format

Hello Support, As you will see in the attached screenshots that in the Settings, "Money and Number Format" the Decimals is Disabled. We are using customer Pole displays, the total invoic

MA

Mazyad ALArdhi

Asked

Hello Support,

As you will see in the attached screenshots that in the Settings, “Money and Number Format” the Decimals is Disabled. We are using customer Pole displays, the total invoice value displayed on the Pole screen is different than the acual invoice value!

I would like to know your feedback and how to get this issue solve?

Regards,

  • MS

    Mian Saleem

    Answered

    Hello,

    Yes, pole display script adds decimals. If you want to remove it, please edit themes/default/admin/assets/pos/js/pole.js and search for .toFixed(2) around line no 62 and delete the .toFixed(2)

    Thank you

  • MA

    Mazyad ALArdhi

    Answered

    Hello,

    We implemented the suggested solution, But still the same.

    Any other suggestions to solve it.

    Regards,

  • MS

    Mian Saleem

    Answered

    Hello,

    No, that’s the only code that added the decimals. Please clear browser cache after modifying the code then test.

    Thank you

  • MA

    Mazyad ALArdhi

    Answered

    Hi Saleem,

    We did clear for the browser cache and it did not solve the problem! And, even though that we tried and tested by using a different pole display from other brand and yet the problem remaining there!

    What it could be the reason?

    Regards,

  • MS

    Mian Saleem

    Answered

    Can you show me the modified file?

  • MA

    Mazyad ALArdhi

    Answered

    Hi,

    Attached are snapshots taken from the js file, the first is the exact line before the change and the other is it after the change.

  • MS

    Mian Saleem

    Answered

    Hello,

    Please search the themes/default/admin/assets/pos/js/pole.js and remove all .toFixed(2)

    This files added decimals to grand total and the item prices too. Once you remove it should follow your system settings for decimals.

    Thank you

  • MA

    Mazyad ALArdhi

    Answered

    Hi,

    Please refer to your first response to this question. This response is the same and did not have any effect as mentioned previously!

  • MS

    Mian Saleem

    Answered

    Hello,

    Please download the attached pole.zip file and extract it to get pole.js file. You can copy the pole.js and replace themes/default/admin/assets/pos/js/pole.js

    Once done, please clear browser cache and if you are using any other cache plugin/module on your server like CloudFlare or any other please clear that cache too before testing it.

    Thank you

    Attachments
  • MA

    Mazyad ALArdhi

    Answered

    Hello Saleem,

    We replaced the js file with the one you share with us, the three digits are solved but the comma separator not showing in the pole. And, when more than one product sales added the lines are interfering and non readable at the pole display. Attached screenshots for your reference for more clarify about the issue. If you want to test it by your self, just let me know, so I can share with you the login details on private message.

    I am keen to hear from you soon,

    Mazyad.

  • Login to Reply