1b.app
Link copied -

finalization of the action of creating a check for cash on delivery

Нужна разработка функционал?
Вы можете создать топик на нашем форуме и там описать необходимую работу. Наши партнеры-интеграторы с радостью рассмотрят топик и предоставят вам ответ. Создать топик
please consider modifying the action
Creation of a sales receipt, its fiscalization and delivery to the client by email
why
the buyer, according to the idea, should receive a check in the place with the parcel.
those. the check must be printed before sending the parcel,
there is no need to talk about the presence of a payment in the process, since cash on delivery
If there is no payment, then the check is not processed.
what to do
you need to send a payment with the value "type": "CASH", "label": "Payment" and take the amount of the process
"payments": [
{
"type": "CASH",
value: 0
"label": "string"
},
to make sure it's a lie.
put a check on the value of an additional field of the process.
there should also be the possibility of partial prepayment.
i.e. the buyer paid 50 UAH out of 200 UAH.
in the check you need to transfer one payment as usual for 50 UAH,
and create the second payment as &quot
Original question is available on version: ru

Answers:

good afternoon we will take on improvement
02.11.2020, 08:23
Original comment available on version: ru

Good afternoon
how is the queue here?
16.11.2020, 17:25
Original comment available on version: ru

Added setting "Send the difference between the amount of the process and the amount of payments as a payment "After payment"".
When it is enabled, 2 more settings are available for checking for the value of the additional field (equals).
If there are payments in the process and the above setting is set, the post-payment amount is calculated as the difference between the process amount in the base currency and the amount of actual payments for the process.
30.12.2020, 10:44
Original comment available on version: ru

15.01.2021, 21:35
Original comment available on version: ru


Mironenko Dmitry wrote:
if it worked it would be great!

All questions in the style of "why Checkbox forbids transferring 2 payments of the same form of payment" should be sent to Checkbox.
As I understand it, if you transfer as part of the payment to the card (CARD) + overlay (CASH) - it should work.
18.01.2021, 10:25
Original comment available on version: ru

I set up so that the payments were of different forms of payment.
please explain how the integration works in this case?
and why 2 payments of the same form of payment?
18.01.2021, 10:28
Original comment available on version: ru


Mironenko Dmitry wrote:
I set up so that the payments were of different forms of payment.
please explain how the integration works in this case?
and why 2 payments of the same form of payment?

Explain where and how you set it up?
18.01.2021, 10:32
Original comment available on version: ru

checked settings

got a check
https://prnt.sc/x41j5x
Thank you for the incorrectly issued fiscal check!!!!
I asked you to explain how to set up...
Why two payments by "Card"?
the second payment is cash on delivery...
18.01.2021, 10:48
Original comment available on version: ru


Mironenko Dmitry wrote:
Thank you for the incorrectly issued fiscal check!!!!
I asked you to explain how to set up...

Now carefully read my last comment - I did NOT ask you to create a check, I asked you to describe what and how you configure. All actions outside my request are your decision.
Created a procedure for this process https://adapter.crm-onebox.com/admin/customorder/order/8052/edit/ ?
18.01.2021, 15:45
Original comment available on version: ru

of course on this.
what was to be done? Before that, you wrote "Added the setting "Send the difference between the amount of the process and the amount of payments as a payment "After payment"".
And there are no other options to see how the action works.
18.01.2021, 23:47
Original comment available on version: ru

if you put the cash form of payment - you get two cash payments.
if you put on a card, then both payments on the card turned out.
18.01.2021, 23:50
Original comment available on version: ru

in theory, if you take any process where there is no payment and cash payment is set - and print a check, then you should get "after payment".
18.01.2021, 23:56
Original comment available on version: ru


Mironenko Dmitry wrote:
in theory, if you take any process where there is no payment and cash payment is set - and print a check, then you should get "after payment".

Must. And this will be the case if there is no payment in the process, or there is 1 payment to the CARD with a smaller amount than the amount of the process.
You received 2 payments as a CARD because there are 2 of them in the process https://adapter.crm-onebox.com/admin/customorder/order/8052/edit/, and not as a result of our settings.
Our setting, if the amount of payments in the process is less than the amount of the process, will add the difference to the array of payments as "type" => "CASH" (cash) and the name "label" => "Payment" (and not CARD).
And since the transfer of several cash payments is prohibited on the Checkbox side, it means that there should be no payments, or only on the card.
19.01.2021, 16:43
Original comment available on version: ru

1.payment is created and tied to the process?
2. If there is no advance payment in the process at all, how will it work?
20.01.2021, 11:18
Original comment available on version: ru


Mironenko Dmitry wrote:
1.payment is created and tied to the process?

The action does not create any payments.
You have already created payments in the process for the amount of the process, 2 pieces.

Mironenko Dmitry wrote:
2. If there is no advance payment in the process at all, how will it work?

As described above - 1 payment will be transferred to the API with the CASH type (cash) and the name "Payment"
20.01.2021, 16:06
Original comment available on version: ru

[/quote]
As described above - 1 payment will be transferred to the API with the CASH type (cash) and the name "Payment"
[/quote]
how do the actual payment settings in the process affect this virtual check payment?
20.01.2021, 22:35
Original comment available on version: ru


Mironenko Dmitry wrote:
how do the actual payment settings in the process affect this virtual check payment?

Read the last 2 lines from your topic description.
21.01.2021, 16:29
Original comment available on version: ru

[/quote]
Read the last 2 lines from your topic description.
[/quote]
if you read two lines - this is an instruction, I would not want it to work like that.
If you read 4 lines - this is already an example ....
22.01.2021, 09:56
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