Pole Display And The Money And Number Format

0

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,

Question Resolved For: Stock Manager Advance with Point of Sale Module 0 Votes 14 Answers 453 Views
Asked by Mazyad ALArdhi 3 months ago

0

Answered by Mian Saleem

Ah yes, the numbers are converted to strings and zeros in decimals would have been omitted. Please try the attached file. Thanks

0

Answered by Mian Saleem 3 months ago

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

0

Answered by Mazyad ALArdhi 3 months ago

Hello,

We implemented the suggested solution, But still the same.

Any other suggestions to solve it.

Regards,

0

Answered by Mian Saleem 3 months ago

Hello,

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

Thank you

0

Answered by Mazyad ALArdhi 3 months ago

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,

0

Answered by Mian Saleem 3 months ago

Can you show me the modified file?

0

Answered by Mazyad ALArdhi 3 months ago

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.

0

Answered by Mian Saleem 3 months ago

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

0

Answered by Mazyad ALArdhi 3 months ago

Hi,

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

0

Answered by Mian Saleem 2 months ago

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

0

Answered by Mazyad ALArdhi 2 months ago

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.

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.