1b.app
Link copied -

Problems with the Promo Codes functionality. Liabilities and Fiscalization

Есть необходимость работы с про в системе?
Мы создали специально для этого компонент!
Компонент позволяет создавать промо акции относительно ваших продаж. Вы можете планировать промо программы и планировать установку цен, применение скидок, начисление бонусов и многое другое. Посмотреть компонент
The functionality of promotional codes is used in the process
The promo code is applied as a total discount for the process
Problem #1
Liabilities are set incorrectly.
After the shipment of the goods from the warehouse, our obligations are surplus, because. the default obligation (not an automatic action) upon shipment of the goods is set to the amount of the shipment. So the coupon discount is not taken into account.

Problem #2
During the fiscalization of the process with a coupon, all products were priced at 1 UAH, and the price for the last product was equal to the sum of the process minus the remaining products at 1 UAH. Such logic, apparently, someone's refinement? Why isn't the process discount simply passed, as it works for all other discounts?
In an order with one product with a coupon, a discount of UAH 1 was set during fiscalization, as a result, an incorrect amount was fiscalized.
[file]9280[/fil
Original question is available on version: ru

Answers:


Farkhshatov Rodion wrote:
Problem #1
Liabilities are set incorrectly.
After the shipment of the goods from the warehouse, our obligations are surplus, because. the default obligation (not an automatic action) upon shipment of the goods is set to the amount of the shipment. So the coupon discount is not taken into account.

Corrected.

Farkhshatov Rodion wrote:
Problem #2
During the fiscalization of the process with a coupon, all products were priced at 1 UAH, and the price for the last product was equal to the sum of the process minus the remaining products at 1 UAH. Such logic, apparently, someone's refinement? Why isn't the process discount simply passed, as it works for all other discounts?
In an order with one product with a coupon, a discount of UAH 1 was set during fiscalization, as a result, an incorrect amount was fiscalized.
https://one-box.shine-bright.com.ua/admin/customorder/order/216107/edit/

On the example of the above process - the price of the goods was already transferred at a discount, because such a setting is indicated in the fiscalization action.
To transfer any discount - I do not observe such. If this can now be repeated on some process - indicate which one, I will temporarily add logging of the transferred data to the API.
13.08.2021, 12:36
Original comment available on version: ru


Tyndyk Maxim Vadimovich
OneBox production wrote:
Corrected

Thanks

Tyndyk Maxim Vadimovich
OneBox production wrote:
On the example of the above process - the price of the goods was already transferred at a discount, because such a setting is indicated in the fiscalization action.
To transfer any discount - I do not observe such. If this can now be repeated on some process - indicate which one, I will temporarily add logging of the transmitted data to the API.

In the action settings, there is a transfer of the price of the product, taking into account the discount (discount on the product) and the total discount of the process. In this situation, the total discount of the process was transferred as a product discount + UAH 1 was transferred to the total discount of the receipt.

In fact, everything is simple. If there is a process discount, then you just need to transfer it to the check as a check discount. In the check there is a field of the general discount.
Here is the process https://one-box.shine-bright.com.ua/admin/customorder/order/213743/edit/ , it uses a manual discount and it is applied in the check as a general discount
A coupon is the same general discount for the process, but the logic of transferring the discount to the receipt is completely different for some reason + as a result, an error occurs in the amount of fiscalization. And this is a big problem.
15.08.2021, 16:52
Original comment available on version: ru


Farkhshatov Rodion wrote:
Here is the process https://one-box.shine-bright.com.ua/admin/customorder/order/213743/edit/ , it uses a manual discount and it is applied in the receipt as a total discount

Where in this process can I switch to check what is transferred to the Checkbox (without real transfer)?
16.08.2021, 15:11
Original comment available on version: ru

In this process, nowhere. Here is the test process https://one-box.shine-bright.com.ua/admin/customorder/order/217017/edit/ go to the Fiscalize stage, a fiscal receipt will be created. I'll make a return later. In this process, there is a discount for the product and a total discount for the process.
16.08.2021, 15:19
Original comment available on version: ru

Here is the body of the request that is sent when fiscalizing a check:
{"delivery":{"email":"rodionfrkhshtv@gmail.com"},"goods":[{"good":{"code":"455474","name":" \u0423\u0432\u043b\ u0430\u0436\u043d\u044f\u044e\u0449\u0438\u0439 \u041a\u043e\u043d\u0434\u0438\u0446\u0438\u043e\u043d\u0435\u0440 [\u0442\u0435\u0440\u0430\u043f\u0435 \u0432\u0442] Evo The Therapist Hydrating Conditioner 300 \u043c\u043b","barcode":"","price":65700},"quantity":1000,"is_return":false}],"discounts":[ {"type":"DISCOUNT","mode":"VALUE","value":50000}],"payments":[{"type":"CARD","value":15700,"label":" \u041a\u0430\u0440\u0442\u043a\u0430"}]}
At first glance, everything is correct - and we do not transfer any discounts of 1 UAH.
You need to check with Checkbox why it creates a discount of 1 UAH for such a request
16.08.2021, 16:00
Original comment available on version: ru

It was a process with a regular discount, the problem is when a coupon is in the process. I can do a test later with a coupon
16.08.2021, 16:13
Original comment available on version: ru

The process is the same, the coupon was applied to the order
17.08.2021, 01:11
Original comment available on version: ru


Farkhshatov Rodion wrote:
The process is the same, the coupon was applied to the order

{"delivery":{"email":"rodionfrkhshtv@gmail.com"},"goods":[{"good":{"code":"455474","name":" \u0423\u0432\u043b\ u0430\u0436\u043d\u044f\u044e\u0449\u0438\u0439 \u041a\u043e\u043d\u0434\u0438\u0446\u0438\u043e\u043d\u0435\u0440 [\u0442\u0435\u0440\u0430\u043f\u0435 \u0432\u0442] Evo The Therapist Hydrating Conditioner 300 \u043c\u043b","barcode":"","price":82100},"quantity":1000,"is_return":false}],"payments":[ {"type":"CARD","value":15700,"label":"\u041a\u0430\u0440\u0442\u043a\u0430"}]}
in the request I do not observe that the price 1 is transmitted
17.08.2021, 15:22
Original comment available on version: ru

The check is not created, the error says that the Amount of payments cannot be lower than the amount of the check, but the amount of payments and the amount of the process are equal to
18.08.2021, 15:43
Original comment available on version: ru


Farkhshatov Rodion wrote:
The check is not created, the error says that the Amount of payments cannot be less than the lower amount of the check, but the amount of payments and the amount of the process are equal

Because this action does not know how to work with promotional codes.
If I add the transfer of the promotional code discount as a separate discount item, will this solve your problem?
18.08.2021, 15:48
Original comment available on version: ru

If a promo code discount is transferred to the check in the same way as the registered discount is transferred manually in the process, then yes, of course it will be solved, thank you very much.
19.08.2021, 03:00
Original comment available on version: ru

Added that when transferring a discount through the process - if there is a promotional code - it is summed up to the discount amount.
That is, if there is a discount of 100 and there is no promotional code, it will send 100; if there is no discount and there is a promotional code of 500, it will send 500; if the discount is 100 and the promotional code is 500, it will send 600.
19.08.2021, 15:27
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