1b.app
Link copied -

Rounding product prices in a document template

In the BP in the product table, it rounds the price to the nearest integer, but when printing the document, it displays the price with kopecks, how can I fix it? so that the rounded price is also displayed in the document
Original question is available on version: ru

Answers:

For rounding, you need to use the settings in the document template
[#2] - for example, for order amount
{ordersumm[#2]} - thus the document will indicate rounding to 2 characters
28.10.2021, 21:22
Original comment available on version: ru

where 2 is the number of rounding signs
28.10.2021, 21:23
Original comment available on version: ru


Gubko Alexander Sergeevich
SheBo wrote:
For rounding, you need to use the settings in the document template
[#2] - for example, for order amount
{ordersumm[#2]} - thus the document will indicate rounding to 2 characters

Alexander, the mechanism is correct, but Dmitry wrote that he needs to ROUND in the document for a turnover. That is, remove [#2] from the variable.
28.10.2021, 22:27
Original comment available on version: ru

thanks for the replies, but what about the amount of payment? it's also not rounded.
29.10.2021, 09:11
Original comment available on version: ru

these are different settings, the document template and rounding when making a payment - different questions, it's better to create a new ticket, the likelihood that you will be answered will be greater)
29.10.2021, 09:22
Original comment available on version: ru

about rounding in the document template...
I didn’t have anything written in brackets at all, there were no brackets at all
put brackets and registered rounding to 0 - it worked)
it remains now to solve the problem with the sum of the process
29.10.2021, 09:36
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment