1b.app
Link copied -

The action of copying additional product fields needs to be improved

Action "Copy values of additional fields of the process product to the parent process product"
The option "Distribute the quantity specified in the numeric additional field to identical products in accordance with the quantity of these products in the process" is needed.
It is necessary that the quantity from the additional field of the process product is distributed among identical products when copying, but not more than the quantity of each product in the process.
If the quantity in the additional field is greater than the total quantity of goods in the process to which we are copying, then the surplus is added to the last product. For example:
Products in the subprocess:
Product A - 7 pcs.
Product B - 1 pc
Products in the process (Product A total of 6 pcs):
Product A - 3 pcs.
Product A - 2 pcs.
Product B - 1 pc
Product A - 1 piece
Result after copying:
Product A - 3 pcs - additional field = 3
Product A - 2 pcs - additional field = 2
Product B - 1 pc - additional field = 1
Product A - 1 pc - additional field = 2
Original question is available on version: ru

Answers:

Good afternoon
Such modification of the specified action will take 3 hours.
15.01.2025, 11:18
Original comment available on version: ru

ok, waiting for the bill

Tindik Maxim Vadimovich
OneBox production wrote:
exactly in the specified action

Please tell me, are there any other actions that can be used to implement this task?
Clarification: if the quantity in the additional field is less than the total quantity of goods in the process we are copying to, then we distribute it equally:
Products in the subprocess:
Product A - 4 pcs.
Product B - 1 pc
Products in the process (Product A total of 6 pcs):
Product A - 3 pcs.
Product A - 2 pcs.
Product B - 2 pcs.
Product A - 1 piece
Result after copying:
Product A - 3 pcs - additional field = 3
Product A - 2 pcs - additional field = 1
Product B - 2 pcs - additional field = 1
Product A - 1 pc - additional field = empty
15.01.2025, 17:05
Original comment available on version: ru

in this form - it seems not
I remember there was an action that divided the sum from the additional field relative to a part of the sums of the subprocesses
15.01.2025, 17:17
Original comment available on version: ru

The invoice hasn't been sent yet, maybe a transfer from the balance will be faster?
16.01.2025, 16:24
Original comment available on version: ru


Rodion wrote:
the bill hasn't been sent yet,

You have not confirmed that you agree and you need to issue an invoice

Rodion wrote:
maybe transferring from the balance will be faster?

as you wish
issue an invoice or will you make a transfer to the user with id=9 in the amount of $108?
16.01.2025, 17:15
Original comment available on version: ru

I will do the translation
16.01.2025, 20:04
Original comment available on version: ru


the setting "Distribute the quantity specified in the additional numerical field to identical products in accordance with the quantity of these products in the desired process" has been improved
the algorithm of work is implemented according to the provided examples
uploaded to one-box.shine-bright.com.ua
23.01.2025, 12:26
Original comment available on version: ru

super, thanks, everything works as it should
23.01.2025, 16:36
Original comment available on version: ru

please give an answer in this topic, you specifically added logs, I sent examples of errors
https://1b.app/ru/forum/integration-with-cashier-and-software-ppo/18868-fiskaliz...
23.01.2025, 17:59
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