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
[file]11766[/file]
[file]11767[/file]
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
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
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
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.
[quote]
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
[/quote]
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.
[file]11774[/file]
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)
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)
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
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
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
Donate
You don't have enough funds in your account Top up