1b.app
Link copied -

Rounding not working correctly (revision)

Here is an order
https://ppikc.crm-onebox.com/407943/
It has a payment
https://ppikc.crm-onebox.com/app/payments/114855/control/
for 280 UAH
There is a procedure that makes fiscalization
https://ppikc.crm-onebox.com/app/workflow/42/procedure/48/

We see that the order amount should be rounded 267.8, exactly as much as the payment amount

But if there is a checkbox in the checkbox action and I want to ifskalize the order, I get an error that the payment amount cannot be less than the order amount
Although they are equal, what is the payment amount, what is the order amount
And if you uncheck the box, then everything works, but there is simply no rounding

Why is that? How to make CRM give the correct amount of payment?
Original question is available on version: ru

Answers:

Specify in full what amounts are transferred in the check for all positions? You can't see it in your last screenshot.
10.01.2022, 11:38
Original comment available on version: ru

here is a new example
https://ppikc.crm-onebox.com/408807/
Fiscalizes here (procedure on click)
https://ppikc.crm-onebox.com/app/workflow/19/procedure/39/

If the checkbox is

It gives an error that the amount of payment cannot be less than the amount of the check
Unchecked - everything was created successfully

why is that ?
10.01.2022, 17:13
Original comment available on version: ru

Here is what is passed to the API:
{"goods":[{"good":{"code":"1146790","name":"\u0424\u043e\u0440\u043c\u0430 \u0441\u0438\u043b\u0438\u043a\u043e\u043d\ u043e\u0432\u0430\u044f \u043f\u043e\u043b\u0443\u0441\u0444\u0435\u0440\u044b \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435 \u0438\u0437 12 \u0448 \u0442.","barcode":"","price":7780},"quantity":1000,"is_return":false}],"payments":[{"type":"CARD","value" :7776,"label":"\u041a\u0430\u0440\u0442\u043a\u0430"}]}
You round the price of the product 77.76 to 77.8 in the output to the table and round this price when passing it to the Checkbox API
But you have a payment in the amount of 77.76 - so you get an error. The amounts must be equal.
11.01.2022, 16:11
Original comment available on version: ru

Well, look at the order
https://ppikc.crm-onebox.com/409059/
Paid even more, more precisely as much as needed when rounding up

but does not allow to create a check

why? do the amounts match?
11.01.2022, 16:56
Original comment available on version: ru

Well, duck, you also have the setting "% error between the order amount and the payment amount, at which to transfer the payment for the process amount:" - the order amount is 81.16 - that's what it transmits as the payment amount.
If to transfer specifically payment - that has to work.
12.01.2022, 15:57
Original comment available on version: ru

Well here's an example
By order

https://ppikc.crm-onebox.com/410377/
When the 1% discrepancy was removed
16.01.2022, 18:10
Original comment available on version: ru

The checkbox wants all amounts to be rounded to 1 decimal place?
17.01.2022, 16:28
Original comment available on version: ru

The problem occurs only with goods that are in dollars. If the price is in UAH and 2 decimal places - everything is OK
That is, we can assume that we are somehow transmitting the payment amount in a wrong way and because of this, the value does not match
And often because of this, such errors

And in the check

On the example of this order
https://ppikc.crm-onebox.com/410453/
How can we make the rounding with checkmarks and settings correct so that the same value is always rounded to 2 characters?
That is, how to set the settings so that it allows you to create and rounds up to 2 characters?
19.01.2022, 12:33
Original comment available on version: ru


Nikita Bidenko wrote:
The problem occurs only with goods that are in dollars. If the price is in UAH and 2 decimal places - everything is OK

What amounts are transferred by position? Take normal screenshots, because it is not clear from them where the sum of the positions did not agree
19.01.2022, 16:23
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